PowerShell launches Windows applications asynchronously. It only waits for the console application so you should use -wait if you want to launch a...
database-tools
Open Current Folder in Your Explorer
If you are stuck in the console and would like to move over to the Explorer GUI, the next line opens your current folder in an Explorer window:...
Search for Localized Keywords
Finding the appropriate command for a task is important. With a little trick, PowerShell can help you. Have a look: function ??($keywords) {...
Filter is Faster Than Include
A number of cmdlets provide two parameters that seem to work very similar: -filter and -include: Dir $env:windir -filter *.logDir $env:windir...
Use Online Help
"To ship is to choose", so the Help files provided by PowerShell are sometimes outdated. You should use their online versions if you want...
Get to know Parameter Sets
Sometimes, you may run into issues like this once you learned more about the parameters a given cmdlet supports: Get-Random -Minimum 1 -Maximum 50...
Finding Positional Parameters
Positional parameters can be great time savers as many cmdlets assign a parameter position to its most widely used parameters. This way you do not...
Finding All Background Information About Operators or Remoting
Since Get-Help accepts wild cards, you can easily list all white papers available for a specific topic. Use this to get you all topics that deal...
Sending Information to the Clipboard
Beginning with Vista, there is a new console tool called clip.exe, which copies whatever you pipe to it to your clipboard. You should try this if...
Overwriting Pre-Defined Aliases
PowerShell protects its own pre-defined aliases so you normally cannot override and redefine them. It will still work if you use the correct...
A Better more.com
Whenever you want to break up a lot of information in separate page views, you can traditionally pipe to more.com, which is an external executable....
Reading Help with Page Breaks
Help information is typically pretty extensive. If you'd like to make the information more readable, you could always pipe the result to the...
Opening PowerShell White Papers Directly
The following line opens the folder that stores all the PowerShell white papers. You can open them in your word processor or print them for future...
Discovering PowerShell Background Information
PowerShell comes with lots of white papers. However, you do not need to know the exact title of the white paper to find information about a specific...
Retrieving Event Logs Remotely
PowerShell v.2 has added remote capabilities to a number of cmdlets, including Get-EventLog. So now you are able to collect important events...
Changing Execution Policy without Admin Rights
In PowerShell v.2, a number of parameters have been added to Set-ExecutionPolicy, which allows you to change this setting without Admin privileges,...
Smart Auto-Completion
When you press Tab to auto-complete, PowerShell will look at what you have entered so far to find the most appropriate suggestion. One little known...
Auto-Completion Reverse
You probably already know how to invoke code completion: simply press Tab. You will then see that a new suggestion is displayed each time you do...
Listing Installed Software
You will find that listing installed software can be somewhat difficult as WMI provides the Win32_Product class, which only covers managed installs...
Out-GridView Dirty Tricks
Out-Gridview is a new cmdlet in PowerShell v.2 which allows you to output objects to a "mini" excel sheet like this: Get-Process |...
Remote Access Without Admin Privileges
In PowerShell v.2, remote access is available only to users who hold local administrator privileges. So, even if you do have appropriate remote...
Using MS Access Drivers on 64Bit
Although 64bit machines have become common place, some techniques are still only 32bit. For example, whenever a PowerShell script tries to access a...
Running PowerShell Scripts as a Service
You should call powershell.exe with the options -noprofile -command like this to run a PowerShell script externally: Powershell.exe -noprofile...
Finding Cmdlets by Keyword
You can easily discover the cmdlets suitable for a specific job with the help of a little function: function ??($keywords) { Get-Help * | ? {...