Powershell

Locking Workstation

If you’d like to lock the current workstation from within PowerShell, you can take advantage of the fact that PowerShell can run executables....

read more

Detecting WinPE

PowerShell can run inside WinPE environments. If you’d like to detect whether your PowerShell script runs inside a WinPE environment, you can...

read more

Dumping ZIP Archive Content

PowerShell comes with new cmdlets like Extract-Archive that can extract (all) files from a ZIP file container. However, there is no way to just list...

read more

Validating Variable Content

Beginning in PowerShell 5, you can assign a validator to a variable. The validator can take a regular expression, and once you assign new values to...

read more

Using Profile Scripts

PowerShell by default “forgets” most settings on restart. If you’d like to “keep” settings, you use a profile script....

read more

Checking for USB Devices

If you’d like to know whether a specific device is attached to your computer, you can use WMI to dump the names of all plug&play devices:...

read more

Using PSGraph

PSGraph is an awesome free PowerShell library that you can use to visualize relationships. Before you can use PSGraph, you need to install its...

read more
1 29 30 31 32 33 130