powertips

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

Creating Temp File Names

Whenever you write information to disk, it makes sense to use unique temporary file names. If you use static file names and run your code more than...

read more

File System Stress Test

If you’d like to generate super large files for stress test purposes, you don’t have to waste time pumping data into a file to make it...

read more
1 22 23 24 25 26 122