Scripting‎ > ‎

Note: Using PowerShell Help

Each cmdlet has a help file that you can access by typing:

 

get-help <cmdlet-name> -detailed

 

To find out what type of object a cmdlet is getting, use the pipeline operator (|) to sent the results of a "get" command to the Get-Member command. For example, the following command sends the objects retrieved by a Get-Service command to Get-Member.

 

get-service | get-member

 

To find the values of all of the properties of a particular object, use the pipeline operator (|) to send the results of a "get" command to a Format-List or Format-Table command. Use the Property parameter of the format cmdlets with a value of all (*). For example, to find all of the properties of the Schedule service on the system, type:

 

get-service schedule | format-list -property *

Comments