PowerShell Pointers

PowerShell has many built-in Cmdlets that provide information about the language itself. When you're learning PowerShell, you'll likely find the following Cmdlets helpful:

Aliases. PowerShell supports aliases that you can use to reference Cmdlets. For example, you can use Foreach or % to reference the Foreach-Object Cmdlet. For a list of aliases, enter

Get-Alias

at the PowerShell command prompt. For general information about aliases, enter

Get-Help About_Alias

Cmdlets. For a list of Cmdlets, enter

get-help -category Cmdlet

To retrieve detailed information about a Cmdlet, including the parameters it supports, enter

get-help CmdletName -detailed

where CmdletName is the name of the Cmdlet you want to get information about. For example, to retrieve information about the Get-Service Cmdlet, enter

get-help get-service -detailed

ForEach-Object Cmdlet versus ForEach statement. the Foreach-Object Cmdlet and Foreach statement aren't the same. to learn how they differ, enter

Get-Help About_ForEach

Help. to retrieve information about how to use PowerShell help, enter

Get-help get-help

Operators. to learn about operators (e.g., -replace, -gt, -ne), enter

Get-Help About_Operator

PowerShell security. to learn about PowerShell security, enter

Get-Help Set-ExecutionPolicy

WMI classes. For information about how to access WMI classes, enter

Get-Help Get-WMIObject

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering SharePoint 2013: Succeeding, Not Just Surviving

Building on the success of the “Mastering SharePoint 2010” seminars, the presenters have updated the content to cover the latest and greatest SharePoint product: SharePoint 2013. While SharePoint 2013 is relatively new on the marketplace, the presenters have been working with SharePoint 2013 for well over a year, and have implemented it with a number of clients in production environments.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.