Appendix A. cmdlets

If you need detailed information on any of the cmdlets listed in this Appendix, please execute the cmdlet Get-Help with the name of the cmdlet you are interested in as a parameter, as shown below:

Get-Help Get-WMIObject -Full

For more information about Get-Help, refer to Chapter 2.

If you need detailed information on some of the cmdlets' related programming, snapins, please execute cmdlet Get-Help as shown below:

Get-Help About_PSSnapins

To get the list of available help related to About*, execute the cmdlet Get-Help as shown below:

Get-Help About*

cmdlets Related to Core Snap-ins

Add-History cmdlet: Adds entries to the end of the session history—that is, the list of commands entered during the current session. You can use the Get-History cmdlet to get the commands and pass them to Add-History, or export the commands to a CSV or XML file and then import the commands, and pass the imported file to Add-History. You can use this cmdlet to add specific commands to the history or to create a single history file that includes commands from more than one session.

Add-PSSnapIn cmdlet: Adds one or more registered Windows PowerShell snap-ins to the current session. After the snap-ins are added, you can use the cmdlets and providers that the snap-in supports in the current session. To add the snap-in to all future Windows PowerShell sessions, add an Add-PSSnapin command to your Windows PowerShell profile. For more information about profiles, refer to Chapter 4.

Clear-History cmdlet: ...

Get Microsoft® SQL Server® 2008 Administration with Windows PowerShell™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.