Windows remote rename (AD) computers

# oldname, newname
$Computers = import-csv .\Rename.csv
$adminUser = Get-Credential
# "PREFIX- +" "+ $SerNum"
$Computers = Import-Csv ServerNames.csv -Header OldName, NewName
Foreach ( $Computer in $Computers ) 
{
	Rename-Computer -ComputerName $Computer.OldName -NewName $Computer.NewName -DomainCredential $adminUser -Force -PassThru
}

Windows Update Error 0x80073712

Run the DISM tool

  1. tap Search.
  2. Enter command prompt in the search box.
  3. In the list of results, swipe down on or right-click Command Prompt, and then tap or click Run as administrator.
  4. In the Administrator: Command Prompt window, type the following commands. Press the Enter key after each command:
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
  1. To close the Administrator: Command prompt window, type Exit, and then press Enter.
  2. Run Windows Update again.

Sophos Root partition is filling up

Root partition is filling up – please check. Current usage: 85%
Sophos UTM-9
HA Status          : HA MASTER (node id: 1)
System Uptime      : 60 days 6 hours 27 minutes
System Load        : 1.43
System Version     : Sophos UTM 9.715-4
Please refer to the manual for detailed instructions.

Solution

/etc/init.d/postgresql92 rebuild
/etc/init.d/postgresql92 start

Create an Empty Branch in Git

To create a new empty branch in Git, we can use the --orphan command line option

git checkout --orphan 

The command above creates the new empty branch and switches into it.
Once the empty branch s created, we can can delete files from the working directory, so they are not committed in to the new branch

git rm -rf .

Now you are in the empty branch without any inherited files or commits.
If you want to push your empty branch to a remote repository, do the following

git commit --alow-empty -m "Init"
git push origin 

Note, that if you try to merge another branch into the empty one, you will receive the error: fatal: refusing to merge unrelated histories

Use the --allow-unrelated-history option to force the merge into the empty branch.

git merge --allow-unrelated-history 

Archive for category Technik

Archives by Month: