Use the parameter -examples to get an example of a cmdlet

With more than 300 cmdlets available to manage your Exchange 2007 environment, you might be looking for some example usages of cmdlets. When you use the built-in PowerShell cmdlet Get-Help you can request information about a certain cmdlet, and when you include the parameter -examples, you will be given a few example usages of the given cmdlet.

PS C:\> get-help New-Service -examples

NAME
    New-Service

SYNOPSIS
    Creates a new entry for a Windows Service in the registry and the Service D
    atabase.

    ————————– EXAMPLE 1 ————————–

    C:\PS>new-service testservice "C:\WINDOWS\System32\svchost.exe -k netsvcs"


    This command creates a new entry in the registry and Service Database for a
     service named "testservice".

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top