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.
| Class | Description | |
|---|---|---|
![]() | AddTypeCompilerError | Compile error or warning. |
![]() | AliasProvider | 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. |
![]() | AliasProviderDynamicParameters | |
![]() | BasicHtmlWebResponseObject | The response object for html content without DOM parsing. Introduced in Windows PowerShell 3.0. |
![]() | ByteCollection | ByteCollection is used as a wrapper class for the collection of bytes. |
![]() | CertificateNotFoundException | Exception thrown by Windows PowerShell cmdlets when a certificate cannot be found. |
![]() | CertificateProvider | 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. |
![]() | CertificateProviderItemNotFoundException | 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. |
![]() | CertificateStoreLocationNotFoundException | Exception thrown by Windows PowerShell cmdlets when the location of a certificate store cannot be found. |
![]() | CertificateStoreNotFoundException | 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. |
![]() | ComputerChangeInfo | 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. |
![]() | ControlPanelItem | Represent a control panel item. Introduced in Windows PowerShell 3.0. |
![]() | ConvertFromJsonCommand | Converts a Json string representation to a JsonObject. |
![]() | DebugProcessCommand | 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. |
![]() | DnsNameProperty | The class for the DNSNameList. Introduced in Windows PowerShell 3.0. |
![]() | EnhancedKeyUsageProperty | Describes the enhanced key useage property. Introduced in Windows PowerShell 3.0. |
![]() | EnvironmentProvider | 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. |
![]() | FileSystemClearContentDynamicParameters | Defines the dynamic parameters used by the Clear-Content cmdlet. Introduced in Windows PowerShell 3.0. |
![]() | FileSystemContentDynamicParametersBase | 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. |
![]() | FileSystemContentReaderDynamicParameters | 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. |
![]() | FileSystemContentWriterDynamicParameters | 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. |
![]() | FileSystemItemProviderDynamicParameters | Provides the dynamic parameters for test-path on the file system. Introduced in Windows PowerShell 3.0. |
![]() | FileSystemProvider | 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. |
![]() | FileSystemProviderGetItemDynamicParameters | Provides the dynamic parameters for the Get-Item function on the file system. Introduced in Windows PowerShell 3.0. |
![]() | FileSystemProviderRemoveItemDynamicParameters | Provides the dynamic parameters for the Remove-Item cmdlet on the file system. Introduced in Windows PowerShell 3.0. |
![]() | FormObject | The FormObject used in HtmlWebResponseObject. Introduced in Windows PowerShell 3.0. |
![]() | FormObjectCollection | The FormObjectColletion used in HtmlWebResponseObject. Introduced in Windows PowerShell 3.0. |
![]() | FunctionProvider | 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. |
![]() | FunctionProviderDynamicParameters | 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. |
![]() | GenericMeasureInfo | Object returned by the Measure-Object cmdlet. |
![]() | GenericObjectMeasureInfo | Class output by Measure-Object. Introduced in Windows PowerShell 3.0. |
![]() | GetDateCommand | 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. |
![]() | GetEventPSSnapIn | Represents the snap-in for the Get-WinEvent cmdlet provided by Windows PowerShell. This class is introduced in Windows PowerShell 2.0. |
![]() | GetHelpCodeMethods | The helper methods used as a PowerShell extension from a types file. Introduced in Windows PowerShell 3.0. |
![]() | GetProcessCommand | 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. |
![]() | GetServiceCommand | 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. |
![]() | GetWmiObjectCommand | 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. |
![]() | GroupInfo | The output object of the Group-Object cmdlet (when the NoElement parameter is not specified). |
![]() | GroupInfoNoElement | The output object of the Group-Object cmdlet when the NoElement parameter is specified. |
![]() | HelpCategoryInvalidException | 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. |
![]() | HelpNotFoundException | 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. |
![]() | HistoryInfo | This object is returned by the Get-History cmdlet and is the input object for the Add-History and Invoke-History cmdlets. |
![]() | HtmlWebResponseObject | The response object for html content. Introduced in Windows PowerShell 3.0. |
![]() | InternalSymbolicLinkLinkCodeMethods | The internal symbolic link code methods. This element is introduced in Windows PowerShell 5.0. |
![]() | InvokeWmiMethod | 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. |
![]() | JsonObject | Represents a Json object. Introduced in Windows PowerShell 3.0. |
![]() | MatchInfo | This object is returned by the Select-String cmdlet. It provides information about the results of a match. |
![]() | MatchInfoContext | 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. |
![]() | MeasureInfo | This object is returned by the Measure-Object cmdlet. |
![]() | MemberDefinition | 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. |
![]() | ModuleSpecification | Represents a module specification written in a module manifest (that is, in the RequiredModules property). Introduced in Windows PowerShell 3.0. |
![]() | MultipleServiceCommandBase | 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. |
![]() | NewServiceCommand | 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. |
![]() | NounArgumentCompleter | Provides a method to complete noun arguments. |
![]() | ProcessBaseCommand | 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. |
![]() | ProcessCommandException | 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. |
![]() | PSHostProcessInfo | PowerShell host process information class. |
![]() | PSRunspaceDebug | The PowerShell runspace debug class. This element is introduced in Windows PowerShell 5.0. |
![]() | PSUserAgent | Constructs the Useragent string. Introduced in Windows PowerShell 3.0. |
![]() | PSWorkflowExecutionOption | Specifies workflow-related options in the Register-PSSessionConfiguration. Introduced in Windows PowerShell 3.0. |
![]() | RegistryProvider | 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. |
![]() | RegistryProviderSetItemDynamicParameter | 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. |
![]() | RemoveWmiObject | 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. |
![]() | RenameComputerChangeInfo | 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. |
![]() | RestartComputerTimeoutException | 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. |
![]() | RestartServiceCommand | 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. |
![]() | ResumeServiceCommand | 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. |
![]() | SelectXmlInfo | 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. |
![]() | SendAsTrustedIssuerProperty | Class for SendAsTrustedIssuer. Introduced in Windows PowerShell 3.0. |
![]() | ServiceBaseCommand | 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. |
![]() | ServiceCommandException | 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. |
![]() | ServiceOperationBaseCommand | 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. |
![]() | SessionStateProviderBase | 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. |
![]() | SessionStateProviderBaseContentReaderWriter | 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. |
![]() | SetServiceCommand | 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. |
![]() | SetWmiInstance | 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. |
![]() | StartServiceCommand | 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. |
![]() | StopProcessCommand | 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. |
![]() | StopServiceCommand | 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. |
![]() | SuspendServiceCommand | 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. |
![]() | TextMeasureInfo | Returned by the Measure-Object cmdlet. |
![]() | UtilityResources | Utility class to contain resources for the Microsoft.PowerShell.Utility module. Introduced in Windows PowerShell 4.0. |
![]() | VariableProvider | 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. |
![]() | WaitProcessCommand | 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. |
![]() | WebCmdletElementCollection | A WebCmdletElementCollection for elements in html web responses. Introduced in Windows PowerShell 3.0. |
![]() | WebRequestSession | The WebRequestSession for holding session information. Introduced in Windows PowerShell 3.0. |
![]() | WebResponseObject | Represents a web response. Introduced in Windows PowerShell 3.0. |
![]() | WmiBaseCmdlet | 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. |
![]() | WriteErrorException | 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. |
![]() | WSManConfigurationOption | Implementing type for WSManConfigurationOption Introduced in Windows PowerShell 3.0. |
![]() | X509StoreLocation | 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. |
| Structure | Description | |
|---|---|---|
![]() | DnsNameRepresentation | Defines the type of DNS string the structure contains, the Punycode name and the Unicode name. Introduced in Windows PowerShell 3.0. |
![]() | EnhancedKeyUsageRepresentation | Defines the type of EKU string the structure contains, the friendly name and the EKU oid. Introduced in Windows PowerShell 3.0. |
| Enumeration | Description | |
|---|---|---|
![]() | BreakpointType | Defines the type of breakpoints that the Get-PSBreakpoint cmdlet can retrieve. This class is introduced in Windows PowerShell 2.0. |
![]() | ClipboardFormat | Defines the different type supported by the clipboard. |
![]() | DisplayHintType | Defines what information is displayed by the Get-Date cmdlet. This topic is included in this SDK for completeness only. |
![]() | ExportAliasFormat | Defines the formats that the Export-Alias cmdlet uses when exporting the aliases to a file. |
![]() | FileSystemCmdletProviderEncoding | 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.. |
![]() | JoinOptions | Options for joining a computer to a domain. Introduced in Windows PowerShell 3.0. |
![]() | Language | 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. |
![]() | OpenMode | 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. |
![]() | OutputAssemblyType | 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. |
![]() | OutputModeOption | The enumeration for the SelectionMode parameter. Introduced in Windows PowerShell 3.0. |
![]() | OutTarget | The output modes available to the Receive-PSSession cmdlet. Introduced in Windows PowerShell 3.0. |
![]() | RestReturnType | Enumeration for the rest return type. Introduced in Windows PowerShell 3.0. |
![]() | SessionFilterState | Runspace states that can be used as filters for querying remote runspaces. Introduced in Windows PowerShell 3.0. |
![]() | TestPathType | 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. |
![]() | TextEncodingType | 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. |
![]() | WaitForServiceTypes | Defines the services that Restart-Computer can wait on. Introduced in Windows PowerShell 3.0. |
![]() | WebRequestMethod | The enumerations for the web request method. Introduced in Windows PowerShell 3.0. |
![]() | WmiState | 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. |


