Here are a lot of the commands I use on a daily basis!
SFC / DISM
Componant cleanup:
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Check health (no repairs):
DISM /Online /Cleanup-Image /CheckHealth
Scan Health (repairs):
DISM /Online /Cleanup-Image /ScanHealth
Restore Health:
DISM /Online /Cleanup-Image /RestoreHealth
System File Check:
sfc /scannow
Powershell Azure Sync
Start-ADSyncSyncCycle -PolicyType Delta
Quick local user creation
Create the user:
net user *username* *password* /add
Assign the user a group (administrator for example):
net localgroup administrators *username* /add
Connect to MSOnline
Install the MSOnline module if this is first use:
Install-Module MSOnline
Add the MSOnline module to the PowerShell session:
Import-Module MSOnline
Get credentials of Azure admin:
$Credentials = Get-Credential
Connect:
Connect-MsolService -Credential $Credentials