Search Tools Links Login

Browsing PowerShell Code Cache

Prev   Next

Find Shutdown Events
Just a quick PowerShell one-liner to display all the shutdown events on a computer.
Posted:2022-07-08, 209 views

Setting the IP Address from the Command Line
When you are building a Windows server from the command line, GUI interfaces are not available.
Posted:2022-03-23, 423 views

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.
Posted:2021-11-11, 498 views

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.
Posted:2021-06-09, 393 views

Start SCOM Maint Mode with PowerShell
Turns on Maintenance Mode for a specific computer monitored by SCOM (System Center Operations Manager).
Posted:2017-12-13, 560 views

Get Windows Product Key with PowerShell
Retrieve the windows product key of a specified machine using WMI, via PowerShell.
Posted:2017-12-10, 953 views

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.
Posted:2017-12-17, 863 views

Prev   Next