Category Archives: Windows Server 2012

Solutions for Windows Server 2012

azure active directory

Force local active directory to sync to Office 365 with Azure ADSync

Use the following from an Elevated Powershell Prompt to force an AD sync to your O365 admin portal. You will be performing this on the server where Azure AD Sync is installed. When running this command you will need to wait 5 minutes before checking your portal to verify it is working. In larger environments this can take a longer time.

Import-Module “C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1”
Start-ADSyncSyncCycle -PolicyType Delta

Let me know in the comments below if you have any issues or this solution doesn’t work for you.

cleanup space on server

Cleanup Server WinSxS Free Space on Server 2008 and Server 2012

Run the following commands if you are running low on C: drive space. Do this in your PowerShell prompt and you will free up a substantial amount of space.

Please Note: You have to run updates on Windows Server 2008 if you are far behind and these commands don’t exist!

MASTER CLEANUP: (Run this First)
Dism.exe /online /Cleanup-Image /SPSuperseded

Windows 2008 Use: Dism.exe /online /Cleanup-Image /StartComponentCleanup
Windows 2012 Use: Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase