March 2011 - Power Tips

Share |

Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Powershell Plus

13 Free SQL Tools from Idera

Free Ebook: Mastering Powershell


Welcome to the archive of tips delivered through Tobias' Tip of the Day RSS Feed and Your Power Tip of the Day email. Subscribe in the sidebar to get the latest tips!

Sort by: Most Recent | Most Viewed | Most Commented
  • Changing Service Start Mode the PowerShell Way

    When you list services with Get-Service, you will find that a lot of properties may seem to be missing. You can still set such properties when you pipe a service to Set-Service. The following code will change the start mode of the Spooler service (provided...
  • 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 much faster. ReTweet this Tip!
  • Out-GridView Requirements

    Out-GridView is a great way to present results in a “mini-Excel” sheet: Get-Process | Out-GridView However, Out-GridView has two requirements:.NET Framework 3.51 and the built-in script editor ISE must both be installed. ISE is not installed...
  • 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 while you are playing with it. This is how you dump all Help information for Get-Process: Get-Help -Name...
  • Writing Registry Key Default Value

    If you need to set the default value for a registry key, you can use either of these approaches: Set-ItemProperty -Path HKCU:\Software\Somekey -Name ‘ ( Default ) ’ -Value MyValue Or, you can just do this: Set-Item -Path HKCU:\Software\Somekey...
  • 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!
  • Getting AD Terminal Server Settings

    On client operating systems, such as Windows 7, there are some Support libraries missing that you will need to display terminal server settings stored in the AD. So when you query a user in your AD, all terminal server settings will be missing or blank...
  • Use Where-Object to Filter Results

    You can always use Where-Object when you need to filter results. This cmdlet expects a filter script to determine the results you want. Here are some examples: Try this to find only files greater than 1MB: dir $env:windir | Where-Object { $_ . Length...
Copyright 2012 All rights reserved.