Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Microsoft.PowerShell.Commands Namespace

 

Updated: April 27, 2016

Applies To: Windows PowerShell

The Microsoft.PowerShell.Commands namespace contains the classes of the cmdlets and providers that are implemented by Windows PowerShell and any .NET Framework types that are associated with them. Similarly, it is strongly suggested that you create your own Commands namespace for those cmdlets and providers that you implement.

ClassDescription
System_CAPS_pubclassAddTypeCompilerError

Compile error or warning.

System_CAPS_pubclassAliasProvider

Represents the implementation of the Alias provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassAliasProviderDynamicParameters

Defines the dynamic parameters that are added to the New-Item and Set-Item cmdlets implemented by the Alias provider. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassBasicHtmlWebResponseObject

The response object for html content without DOM parsing. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassByteCollection

ByteCollection is used as a wrapper class for the collection of bytes.

System_CAPS_pubclassCertificateNotFoundException

Exception thrown by Windows PowerShell cmdlets when a certificate cannot be found.

System_CAPS_pubclassCertificateProvider

Represents the implementation of the Certificate provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassCertificateProviderItemNotFoundException

Exception thrown by Windows PowerShell cmdlets when a certificate provider item cannot be found. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassCertificateStoreLocationNotFoundException

Exception thrown by Windows PowerShell cmdlets when the location of a certificate store cannot be found.

System_CAPS_pubclassCertificateStoreNotFoundException

Exception thrown by Windows PowerShell cmdlets when a certificate store cannot be found. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassComputerChangeInfo

Provides information about a change made as a result of running the Add-Computer and Remove-Computer cmdlets. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassControlPanelItem

Represent a control panel item. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassConvertFromJsonCommand

Converts a Json string representation to a JsonObject.

System_CAPS_pubclassDebugProcessCommand

The Debug-Process cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassDnsNameProperty

The class for the DNSNameList. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassEnhancedKeyUsageProperty

Describes the enhanced key useage property. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassEnvironmentProvider

Represents the implementation of the Environment provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFileSystemClearContentDynamicParameters

Defines the dynamic parameters used by the Clear-Content cmdlet. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFileSystemContentDynamicParametersBase

Serves as a base class that defines dynamic parameters for FileSystem provider cmdlets. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFileSystemContentReaderDynamicParameters

Defines the dynamic parameters for content readers that are added at runtime. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFileSystemContentWriterDynamicParameters

Defines the content writer dynamic parameters that are added at runtime. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFileSystemItemProviderDynamicParameters

Provides the dynamic parameters for test-path on the file system. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFileSystemProvider

Represents the FileSystem provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFileSystemProviderGetItemDynamicParameters

Provides the dynamic parameters for the Get-Item function on the file system. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFileSystemProviderRemoveItemDynamicParameters

Provides the dynamic parameters for the Remove-Item cmdlet on the file system. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFormObject

The FormObject used in HtmlWebResponseObject. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFormObjectCollection

The FormObjectColletion used in HtmlWebResponseObject. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassFunctionProvider

Represents the implementation of the Function provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassFunctionProviderDynamicParameters

Represents the dynamic parameters that can be added to the provider cmdlets of the Function provider. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassGenericMeasureInfo

Object returned by the Measure-Object cmdlet.

System_CAPS_pubclassGenericObjectMeasureInfo

Class output by Measure-Object. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassGetDateCommand

The Get-Date cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassGetEventPSSnapIn

Represents the snap-in for the Get-WinEvent cmdlet provided by Windows PowerShell. This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassGetHelpCodeMethods

The helper methods used as a PowerShell extension from a types file. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassGetProcessCommand

The Get-Process cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassGetServiceCommand

The Get-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassGetWmiObjectCommand

The Get-WmiObject cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassGroupInfo

The output object of the Group-Object cmdlet (when the NoElement parameter is not specified).

System_CAPS_pubclassGroupInfoNoElement

The output object of the Group-Object cmdlet when the NoElement parameter is specified.

System_CAPS_pubclassHelpCategoryInvalidException

The exception thrown by the Get-Help cmdlet when a Help category that is not valid is specified by the Category parameter. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassHelpNotFoundException

Exception thrown by the Get-Help cmdlet when it cannot find a Help topic. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassHistoryInfo

This object is returned by the Get-History cmdlet and is the input object for the Add-History and Invoke-History cmdlets.

System_CAPS_pubclassHtmlWebResponseObject

The response object for html content. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassInternalSymbolicLinkLinkCodeMethods

The internal symbolic link code methods.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubclassInvokeWmiMethod

The Invoke-WMIMethod cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassJsonObject

Represents a Json object. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassMatchInfo

This object is returned by the Select-String cmdlet. It provides information about the results of a match.

System_CAPS_pubclassMatchInfoContext

Provides pre-condition and post-conditions about the context of a match. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassMeasureInfo

This object is returned by the Measure-Object cmdlet.

System_CAPS_pubclassMemberDefinition

Describes a member used by Windows PowerShell cmdlets. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassModuleSpecification

Represents a module specification written in a module manifest (that is, in the RequiredModules property). Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassMultipleServiceCommandBase

Serves as a base class for the Windows PowerShell cmdlets that act on multiple services, such as the Start-Service and Stop-Service cmdlets. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassNewServiceCommand

The New-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassNounArgumentCompleter

Provides a method to complete noun arguments.

System_CAPS_pubclassProcessBaseCommand

Serves as a base class for process cmdlets provided by Windows PowerShell that use an InputObject parameter This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassProcessCommandException

Exception thrown by the process cmdlets that are provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassPSHostProcessInfo

PowerShell host process information class.

System_CAPS_pubclassPSRunspaceDebug

The PowerShell runspace debug class.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubclassPSUserAgent

Constructs the Useragent string. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassPSWorkflowExecutionOption

Specifies workflow-related options in the Register-PSSessionConfiguration. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassRegistryProvider

Represents the implementation of the Registery provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassRegistryProviderSetItemDynamicParameter

Defines the dynamic parameters added to the Set-Item cmdlet by the Registry provider. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassRemoveWmiObject

The Remove-WmiObject cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassRenameComputerChangeInfo

Provides information about a change made when running the Rename-Computer cmdlet. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassRestartComputerTimeoutException

This exception that is thrown when the timeout expires before a computer finishes restarting. This class cannot be inherited. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassRestartServiceCommand

The Restart-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassResumeServiceCommand

The Resume-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSelectXmlInfo

The output object returned by the Select-Xml cmdlet. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassSendAsTrustedIssuerProperty

Class for SendAsTrustedIssuer.

Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassServiceBaseCommand

Represents the base class for service cmdlets, such as the New-Service, Get-Service, and Start-Service cmdlets. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassServiceCommandException

The exception thrown by Windows PowerShell cmdlets when acting on services. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassServiceOperationBaseCommand

Represents a base class for Windows PowerShell service cmdlets such as the Start-Service and Stop-Service cmdlets This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSessionStateProviderBase

Serves as a base class for a providers such as the Alias provider, Function provider, and Variable provider. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSessionStateProviderBaseContentReaderWriter

Represents the content reader or writer for all providers deriving from the SessionStateProviderBase class. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSetServiceCommand

The Set-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSetWmiInstance

The Set-WmiInstance cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassStartServiceCommand

The Start-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassStopProcessCommand

The Stop-Process cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassStopServiceCommand

The Stop-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassSuspendServiceCommand

The Suspend-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassTextMeasureInfo

Returned by the Measure-Object cmdlet.

System_CAPS_pubclassUtilityResources

Utility class to contain resources for the Microsoft.PowerShell.Utility module.

Introduced in Windows PowerShell 4.0.

System_CAPS_pubclassVariableProvider

Represents the implementation of the Variable provider that is provided by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassWaitProcessCommand

The Wait-Process cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassWebCmdletElementCollection

A WebCmdletElementCollection for elements in html web responses. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassWebRequestSession

The WebRequestSession for holding session information. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassWebResponseObject

Represents a web response. Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassWmiBaseCmdlet

Serves as a base class for cmdlets that use WMI connection options. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubclassWriteErrorException

The exception thrown by the Write-Error cmdlet when an error occurs while writing the error to the error stream. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubclassWSManConfigurationOption

Implementing type for WSManConfigurationOption Introduced in Windows PowerShell 3.0.

System_CAPS_pubclassX509StoreLocation

Provides information about an X509 store location for cmdlets exposed by the Certificate provider. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

StructureDescription
System_CAPS_pubstructureDnsNameRepresentation

Defines the type of DNS string the structure contains, the Punycode name and the Unicode name. Introduced in Windows PowerShell 3.0.

System_CAPS_pubstructureEnhancedKeyUsageRepresentation

Defines the type of EKU string the structure contains, the friendly name and the EKU oid. Introduced in Windows PowerShell 3.0.

EnumerationDescription
System_CAPS_pubenumBreakpointType

Defines the type of breakpoints that the Get-PSBreakpoint cmdlet can retrieve. This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubenumClipboardFormat

Defines the different type supported by the clipboard.

System_CAPS_pubenumDisplayHintType

Defines what information is displayed by the Get-Date cmdlet. This topic is included in this SDK for completeness only.

System_CAPS_pubenumExportAliasFormat

Defines the formats that the Export-Alias cmdlet uses when exporting the aliases to a file.

System_CAPS_pubenumFileSystemCmdletProviderEncoding

Defines the values that can be specified by the Encoding parameter for cmdlets that derive from the FileSystemContentDynamicParametersBase class. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes..

System_CAPS_pubenumJoinOptions

Options for joining a computer to a domain. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumLanguage

Used by the Add-Type cmdlet to specify the language used to implement a .NET Framework type. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubenumOpenMode

Defines how an item, such as a file, is opened. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubenumOutputAssemblyType

Defines the assembly types that can be used by the OutputAssembly parameter. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubenumOutputModeOption

The enumeration for the SelectionMode parameter. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumOutTarget

The output modes available to the Receive-PSSession cmdlet. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumRestReturnType

Enumeration for the rest return type. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumSessionFilterState

Runspace states that can be used as filters for querying remote runspaces. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumTestPathType

Defines the type of paths that can be tested by the Test-Path cmdlet. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

System_CAPS_pubenumTextEncodingType

Defines the types of encoding that is supported. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

System_CAPS_pubenumWaitForServiceTypes

Defines the services that Restart-Computer can wait on. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumWebRequestMethod

The enumerations for the web request method. Introduced in Windows PowerShell 3.0.

System_CAPS_pubenumWmiState

Defines the state of a Windows Management Instrumentation (WMI) action. This enumeration is used by cmdlets that use WMI to connect to remote computers. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class is introduced in Windows PowerShell 2.0.

Return to top
Show: