How you can programmatically login to Azure/Office 365 in a script.
Start Powershell script in Task Scheduler
An easy way to get the output from a script in a log file. Save this as a cmd and use it as the trigger.
Continue reading “Start Powershell script in Task Scheduler”
Computer info template/example (quick and dirty)
A quick and dirty script to get computer info
Continue reading “Computer info template/example (quick and dirty)”
Windows Commands Reference PDF
The complete list Continue reading “Windows Commands Reference PDF”
Add BitLocker to AD after the disk has been encrypted
How you can add the recovery password to AD after the disk has been encrypted
Continue reading “Add BitLocker to AD after the disk has been encrypted”
PS AppDeploy Blocked Progams
If you block an application while you run a PS AppDeploy script and the script fails, you can manually remove the the lock in registry.
Office 365 repair remotely with Powershell
You can use PS remoting to almost everything – like fixing Outlook
Continue reading “Office 365 repair remotely with Powershell”
Remove Orphaned ADMX GPO values
http://blog.jocha.se/tech/remove-orphaned-admx-gpo-values
Example:
1 | Remove-GPRegistryValue -Name "My Group Policy" -key "HKLM\Software\Policies\Microsoft\Windows\Skydrive" -ValueName DisableFileSync |
Connect to Office 365 Powershell
1 2 3 | $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $cred -Authentication Basic -AllowRedirection Import-PSSession $session |
Unable to delete shadow copies
Diskshadow
delete shadows all
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskshadow