Powershell

Safely Embedding Variables

When you use double quotes in PowerShell, you can add variables to a string, and PowerShell automatically replaces these with their content –...

read more

Playing Sound Files

In the previous tip we explained how PowerShell can play system sounds. For a bit more flexibility, PowerShell can also play arbitrary *.wav sound...

read more

Playing Sounds

If all you need is a beep, then PowerShell can help you easily: $frequency = 800 $durationMS = 2000 [console]::Beep($frequency, $durationMS) If...

read more

Backing Up Event Logs

There are a number of useful cmdlets to manage event logs, however one functionality is missing: PS> Get-Command -Noun EventLog CommandType Name...

read more

Uncover Tiny URLs

Tiny URLs like “http://bit.ly/e0Mw9w” are short and convenient to use, however they often mask the true origin as well. PowerShell can...

read more

Reading Excel Cells

Occasionally, you may have to read information from Excel spreadsheets. PowerShell can access the Microsoft Excel object model albeit it is quite...

read more
1 34 35 36 37 38 130