Powershell

Finding Software Updates

In Windows Vista/Server 2008, Microsoft introduced many new service and application specific log files. PowerShell can access those with...

read more

Encrypt Files With EFS

You should first access the file using Get-Item to encrypt a file with EFS: $file = Get-Item c:\somefile.txt Next, call its Encrypt() method....

read more

Split Special Characters

PowerShell’s new –split operator can split text into parts. Usually, you will submit a delimiter character to tell –split where to...

read more

Learn About Operators

Operators are an important part of the PowerShell language. Try this to learn more about them: Help operators This will list all the different kinds...

read more

Output Data in Color

When you pipe results to Write-Host to output them in color, you may be in for a surprise: Get-Process | Write-Host -ForegroundColor Yellow The...

read more

Resolve IP-Addresses

This one-liner accepts one or more IP-addresses and will try to resolve the address. If DNS returns valid information, you will receive the host...

read more

Find True Property Names

Sometimes, the column names you see when you run cmdlets do not really correspond with the true object property names. For example, Get-Process will...

read more

List Registry Hives

Use the provider name instead of a drive name when you need to get a list of all registry hives:   Dir Registry::   ReTweet this Tip!

read more

Dumping Help

You can start by dumping all Help information into a file to learn more about a PowerShell cmdlet. You can then read all details about the cmdlet...

read more

Use CTRL+Arrow!

Inside the PowerShell console, you can hold CTRL while pressing the arrow key to move the cursor word-by-word. This way, you can move the cursor...

read more