Browsing PowerShell Code Cache
Find Shutdown Events
Just a quick PowerShell one-liner to display all the shutdown events on a computer.
Setting the IP Address from the Command Line
When you are building a Windows server from the command line, GUI interfaces are not available.
Create a New Domain with PowerShell
If you're standing up a new domain, this bit of PowerShell will get you there without the need to run through the wizard.
See who rebooted a server
Let’s say one of the production servers got rebooted unexpectedly and you would like to find out who rebooted it and when the server got rebooted.
Start SCOM Maint Mode with PowerShell
Turns on Maintenance Mode for a specific computer monitored by SCOM (System Center Operations Manager).
Get Windows Product Key with PowerShell
Retrieve the windows product key of a specified machine using WMI, via PowerShell.
Use WMI to create a VM with PowerShell
A function to create a new Hyper-V virtual machine using WMI, with the ability to create the VM on a remote host.