Force Manual Synchronisation When Using Azure AD Connect

The method to force a synchronisation of you on premise active directory with Office 365 has changed from the method previously used with Dirsync when using the newer Azure AD Connect. In order to force a synchronisation you now need to navigate to:

C:\Program Files\Microsoft Azure AD Sync\Bin 

Then run:

DirectorySyncClientCmd delta

Determine Which Version of Powershell is installed

If you need to find out which version of Powershell is installed on a machine simply open Powershell and type:

$PSVersionTable.PSVersion

Find Out if an Update, Hotfix or KB is installed on a Windows Server Using Powershell

In Powershell versions 2 and above you can use the get-hotfix command to determine whether a particular update, KB or hotfix is installed on a Windows Server or client. Simply open Powershell and run the following command:

get-hotfix -id KBxxxxxx

Where KBxxxxxx is the name of the update you wish to search for.

Windows Backup encountered an error. There is not enough space on the disk

Under normal circumstances Windows Server Backup should manage disk space and remove the oldest backups automatically. This works fine normally but the other day I discovered that one of my servers had not been backing up due to the following error:

“Windows Backup encountered an error while writing to the backup target. Detailed Error: There is not enough space on the disk”

For a detailed explanation on how Windows Server Backup manages storage space please refer to the following link:

http://blogs.technet.com/b/filecab/archive/2011/03/14/windows-server-backup-automatic-disk-usage-management.aspx

It turns out the backup disk was so full, there was not enough space to run the backup. In order to clear the oldest backups, keeping the number of backups that you require use the following command:

wbadmin delete backup -keepversions:X

Where X is the number of backups that you want to keep. For example if you wanted to keep the last 30 backups use:

wbadmin delete backup -keepversions:30