Introduction



PowerShell is Microsoft's shell for their product lines. It's now on version 3.0. If you miss the power of the command line while using Windows on either your laptop or servers, PowerShell provides that power.





Important concepts:

Almost all aspects of the Microsoft ecosystem are objects within an overarching structure. You query and manipulate this structure and its objects with PowerShell. This includes all aspects of SharePoint, Active Directory, and Exchange. Other companies, like VMware (see below) have also written PowerShell modules.This "object nature" means that PowerShell pipes pass objects and properties, not just text. Variables store data-structures of objects.

One-liners



Note: Unwrap the code lines before you use them.



Get Help



Get the usage of the command "Select-Object":



Get-Help Select-Object



Built-in examples for the command "Select-Object":



Get-Help Select-Object -examples | more



Get the list of all commands and sort it:



…