Browsing PowerShell Code Cache
PowerShell/WMI to Force Shutdown
You can use this PowerShell and WMI combo one-liner to force a shutdown or restart of a remote computer.
PowerShell & NetSH to Get Wifi Passwords
This is for instructional purposes only.
QFE Patch List with PowerShell
This handy little script will give you a list of recently installed security updates via the Win32_QuickFixEngeering WMI class (watch out for line wrap!).
Backup NTFS Permissions
Use the following PowerShell script to backup NTFS permissions.
Find Inactive Users in Active Directory
Search for people who haven't logged on to a domain in the past 180 days.
Check Exchange Queues
Get-Queue cmdlet allows to check mail queues on the Exchange server.
Check Exchange Service Status
This command is helpful in quickly seeing which services are running particularly after a reboot.