powertips

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

Exploiting Select-Object

Select-Object is a basic cmdlet that most PowerShell users use frequently. However, it has some tricks that are not well known. In its most basic...

read more

Reading RunOnce Key

The RunOnce key in the Windows Registry stores all auto-starting executables. It may be empty. To check for auto-starting applications, try this:...

read more

Creating Random Passwords

Here is another small script to produce random passwords consisting of a defined number of capitals, letters, numbers, and special characters:...

read more

Piping Files and Folders

Let’s assume you want to create a function that accepts a file path. There are numerous tasks that can be done with files. You may want to...

read more

Simple WMI Browser

WMI is a powerful information repository – if you know the names of WMI classes: Get-CimInstance -ClassName Win32_BIOS Get-CimInstance...

read more
1 27 28 29 30 31 122