Printer Friendly Version      Send     
Click to Rate and Give Feedback
System.Management.Automation Namespace
System.Management.Automation Namespace
This is the root namespace for Windows PowerShell. It contains the classes, enumerations, and interfaces that a cmdlet developer needs to implement their own cmdlets. In particular, the Cmdlet and PSCmdlet classes are the base classes from which all cmdlet classes must be derived. For more information about cmdlets, see Windows PowerShell Cmdlets in the Windows PowerShell Programmer's Guide.
ClassDescription
ActionPreferenceStopException The exception that is thrown when the pipeline is stopped because of a Stop or Inquire policy.
AliasAttribute Defines one or more user-friendly names for a cmdlet parameter.
AliasInfo Provides information about an alias used to invoke a command, such as a description of the alias and the name of the command the alias refers to.
AllowEmptyCollectionAttribute Allows an empty collection as the argument to a mandatory collection parameter.
AllowEmptyStringAttribute Allows an empty string to be used as an argument for a mandatory string parameter.
AllowNullAttribute Allows null as the argument of a mandatory cmdlet parameter.
ApplicationFailedException The exception thrown when an application fails.
ApplicationInfo Provides information for applications that are not directly executable by Windows PowerShell.
ArgumentTransformationAttribute Serves as a base class for attributes that perform argument transformation.
ArgumentTransformationMetadataException The exception that is thrown when the ArgumentTransformationAttribute attribute encounters an error.
AuthorizationManager Represents an authorization manager for a runspace.
ChildItemCmdletProviderIntrinsics Exposes the child items of the Windows PowerShell providers to the cmdlet base class.
Cmdlet Serves as a base class for derived cmdlets that do not depend on the Windows PowerShell runtime and that can be called directly from within another cmdlet.
CmdletAttribute Identifies a .NET class as a cmdlet, and defines the verb and noun name pair used to invoke the cmdlet.
CmdletInfo Provides information about a cmdlet, such as its definition (usage pattern), noun and verb name, and the Windows Powershell snap-in used to register the cmdlet.
CmdletInvocationException The exception thrown when a cmdlet encounters a terminating error.
CmdletProviderInvocationException Exception thrown when a Windows PowerShell provider encounters a terminating error that originated with a provider.
CmdletProviderManagementIntrinsics Provides access to Windows PowerShell provider information for the session.
CommandInfo Serves as a base class for information classes that describe cmdlets, functions, scripts, and other types of commands.
CommandInvocationIntrinsics Provides access to application programming interfaces (APIs) that cmdlets can use to build script blocks and execute scripts.
CommandNotFoundException The exception thrown when a command cannot be found.
CommandParameterInfo Provides information about a parameter for a particular parameter set.
CommandParameterSetInfo Provides information about a parameter set that is declared by the cmdlet.
ContentCmdletProviderIntrinsics Exposes the content of the Windows PowerShell provider provider items to the cmdlet base class.
ConvertThroughString Enables the LanguagePrimitives.ConvertTo method to convert a type to another type using a string conversion.
CredentialAttribute Defines the attribute used to designate a cmdlet parameter as one that should accept credentials.
CustomPSSnapIn Serves as a base class for Windows Powershell snap-ins that are used to register a list of cmdlets and Windows PowerShell providers.
DriveManagementIntrinsics Provides access to information for monitoring and managing the Windows PowerShell drives that are used by the Windows PowerShell providers.
DriveNotFoundException Exception thrown when a drive that is referenced by an operation could not be found.
EngineIntrinsics Provides access to the host, command, provider, and session-state information for this instance of the Windows PowerShell runtime.
ErrorCategoryInfo Provides access to information about the category of the error, such as the Microsoft® Windows® PowerShell defined name of the error category, what was going on when the error occurred, the reason for the error, and more.
ErrorDetails Provides additional error information, such as a more detailed replacement error message, for an error record.
ErrorRecord Describes a terminating or nonterminating error that occurred while a cmdlet was processing of a record.
ExtendedTypeSystemException The exception thrown when an extended type system (ETS) runtime error occurs.
ExternalScriptInfo Provides information about Windows PowerShell scripts that are directly executable by Windows PowerShell but are not built into the Runspace configuration.
FilterInfo Provides information about a filter that is stored in the session state.
FunctionInfo Provides information about a function that is stored in the session state.
GettingValueExceptionEventArgs Represents the arguments for events that are triggered by exceptions thrown by the GetValue method of a PSObjectPropertyDescriptor object.
GetValueException The exception thrown by Windows PowerShell runtime when it recognizes that an error has occurred while getting the value of an extended member (property, method, or parameterized property) of an object.
GetValueInvocationException The exception thrown by the underlying getter of a referenced member when it recognizes that an error has occurred while getting the value of an extended member (property, method, or parameterized property) of an object.
HaltCommandException Thrown when the cmdlet or Windows PowerShell provider wants to terminate the running command without the error condition being considered an error.
IncompleteParseException Exception thrown when an incomplete parse error occurs while parsing Windows PowerShell script text.
InvocationInfo Provides information about invoked commands, such as the name of the command, the string used to invoke the command, and where the command is in the pipeline.
ItemCmdletProviderIntrinsics Exposes the Windows PowerShell provider items to the cmdlet base class.
ItemNotFoundException Exception thrown when an item cannot be found for a specified path that contains no wildcard characters.
LanguagePrimitives Provides script language semantics that can be used when consuming objects.
MetadataException Exception thrown when errors occur while processing metadata. In this case, the term "metadata" refers to the attributes declared in cmdlets and Windows PowerShell providers.
MethodException Exception thrown when Windows PowerShell detects that an error has occurred while invoking a method.
MethodInvocationException Exception thrown when the referenced method detects that an error has occurred while invoking the method.
ParameterAttribute Identifies a field in the cmdlet class as a parameter of the cmdlet.
ParameterBindingException Exception thrown if the specified value cannot be bound to a parameter of a command.
ParentContainsErrorRecordException The exception class contained in an ErrorRecord object when that object is contained in a parent exception implementing IContainsErrorRecord. This prevents the ErrorRecord property of the parent exception and the ErrorRecord object from containing mutual references to one another.
ParseException Exception thrown when an error occurs while parsing a script.
ParsingMetadataException Exception thrown for all parameter-binding exceptions that are related to metadata attributes.
PathInfo Provides information about a Windows PowerShell path.
PathInfoStack Represents a stack of locations.
PathIntrinsics Provides information about a path for Windows PowerShell providers.
PipelineClosedException Exception thrown when an attempt is made to write to an asynchronous pipeline source that is already closed.
PipelineStoppedException Exception thrown when a cmdlet or a Windows PowerShell provider attempts to write to the pipeline or perform a number of other Windows PowerShell operations after the pipeline has been terminated. The pipeline could have been terminated before the call was made or during the call.
ProgressRecord Represent the status of an ongoing operation at a point in time.
PropertyCmdletProviderIntrinsics Exposes the Windows PowerShell provider properties to the cmdlet base class.
ProviderInfo Provides information about a loaded Windows PowerShell provider.
ProviderIntrinsics Exposes the Windows PowerShell providers to the Cmdlet base class. The methods of this class use the providers to perform operations.
ProviderInvocationException Exception thrown when a provider encounters an error.
ProviderNameAmbiguousException Exception thrown when more than one provider exists for a given name and the request does not contain the snap-in name qualifier.
ProviderNotFoundException Exception thrown when the provider, referenced by an operation, cannot be found.
PSAliasProperty Serves as an alias to another property member.
PSArgumentException An exception thrown when a parameter contains an invalid argument.
PSArgumentNullException Exception thrown when a non-null value is expected and a parameter contains a null value.
PSArgumentOutOfRangeException Exception thrown when a parameter contains an argument that is outside the range expected by the Windows PowerShell runtime.
PSCmdlet Serves as a base class for derived cmdlets that depend on access to the Windows PowerShell runtime, and therefore execute within a runspace.
PSCodeMethod Serves as an additional method for a PSObject object.
PSCodeProperty Serves as an additional code property for a PSObject object.
PSCredential Represents a set of security credentials such as a user name and a password.
PSCustomObject Serves as a placeholder object that is used when the PSObject constructor, which has no parameters, is used.
PSDriveInfo Provides information about a Windows PowerShell drive for a Windows PowerShell provider.
PSInstaller Serves as a base class for the EngineInstaller and PSSnapInInstaller classes.
PSInvalidCastException Exception thrown when an error occurs during type conversions.
PSInvalidOperationException Exception thrown when an invalid operation is requested.
PSMemberInfo Serves as a base class for all ETS member types that provide information about extended members added to a PSObject object.
PSMemberInfoCollection Serves as a collection of members in an PSObject or PSMemberSet object.
PSMemberSet Serves as a set of members.
PSMethod Provides access to a method that is defined on the base object or made accessible through an adapter. These methods are referred to as Windows PowerShell methods.
PSMethodInfo Serves as a base class for all extended member classes that act like methods, such as the PSScriptMethod and PSCodeMethod classes.
PSNoteProperty Serves as an additional note property for a PSObject object.
PSNotImplementedException Thrown when a requested operation is not implemented.
PSNotSupportedException The exception thrown when a requested operation is not supported.
PSObject Encapsulates a base-object of type Object or PSCustomObject to allow for a consistent view of any object within the Windows PowerShell environment.
PSObjectDisposedException Exception thrown when a target object has already been disposed of.
PSObjectPropertyDescriptor Provides information about a property of an adapted object or a PSObject object.
PSObjectTypeDescriptionProvider Retrieves a PSObjectTypeDescriptor object that provides information about the properties of an object of type PSObject.
PSObjectTypeDescriptor Provides information about the properties of a PSObject object.
PSParameterizedProperty Provides access to parameterized properties of a base object.
PSProperty Serves as an adapted or base property of a base object.
PSPropertyInfo Serves as a base class for all members that behave like properties.
PSPropertySet Represents a set of properties.
PSReference Defines an object that is a value or variable reference in the Windows PowerShell scripting language.
PSScriptMethod Represents a method defined in the Windows PowerShell language. These methods are used to extend objects, and are referred to as script methods.
PSScriptProperty Serves as a script property that has getter and setter scripts.
PSSecurityException A wrapper for the SecurityException class.
PSSnapIn Serves as a base class for Windows Powershell snap-ins that are used to register all the cmdlets and Windows PowerShell providers in an assembly.
PSSnapInInfo Provides information about a Windows Powershell snap-in. Snap-ins are used to add and remove a cmdlet or Windows PowerShell provider from the session.
PSSnapInInstaller Serves as a base class for classes used to create Windows Powershell snap-ins.
PSTraceSource Represents a TraceSource object that is used by the Windows PowerShell runtime to produce trace output.
PSTypeConverter Defines a base class used to implement a type converter for a specific target class.
PSVariable Represents a variable used in the Windows PowerShell language.
PSVariableIntrinsics Provides access to variable information for the session.
ReadOnlyPSMemberInfoCollection Serves as a read only collection of members.
RedirectedException Exception added to an ErrorRecord object when the object is sent to the error stream.
RemoteException Exception used to wrap an error coming from a remote instance of Windows PowerShell.
RunspaceInvoke Allows the execution of commands from a CLR language.
RuntimeDefinedParameter Represents a parameter that is constructed at runtime.
RuntimeDefinedParameterDictionary Represents a collection of parameters that can be constructed at runtime.
RuntimeException Serves as a base class for Windows PowerShell exceptions that may occur while a command is running.
ScriptBlock Represents a precompiled block of script text.
ScriptCallDepthException An exception thrown when the number of session state objects of a specific type and in a specific scope exceeds the configured maximum number allowed.
ScriptInfo Provides information about scripts that are directly executable by Windows PowerShell.
ScriptRequiresException Exception thrown when a script cannot run because its requirements, specified by #requires statements, are not met.
SecurityDescriptorCmdletProviderIntrinsics Provides the Windows PowerShell provider security APIs to the cmdlet base class.
SessionState Provides access to data that describes the current Windows PowerShell session. The properties of this class retrieve objects that can then be used to either monitor or modify the session-state data for the session.
SessionStateException The exception that is thrown when an error occurs while working with session-state objects such as variables, aliases, functions, filters, drives, and providers.
SessionStateOverflowException Exception thrown when the number of session-state objects of this type in this scope exceeds the maximum number allowed.
SessionStateUnauthorizedAccessException Exception thrown when a change to a session-state object cannot be completed because the object is read-only, because the object is a constant, or because the object that is declared as a constant cannot be removed or made a nonconstant.
SettingValueExceptionEventArgs Represents the arguments for events that are triggered by exceptions thrown by the SetValue method of a PSObjectPropertyDescriptor object.
SetValueException The exception thrown by Windows PowerShell when it recognizes that an error has occurred while setting the value of an ETS member (property, method, or parameterized property).
SetValueInvocationException The exception thrown by the underlying setter of a referenced member when it recognizes that an error has occurred while setting the value of an ETS member (property, method, or parameterized property).
Signature Represents a digital signature on a signed file.
ValidateArgumentsAttribute Serves as the base class for all argument validation attributes that validate parameter arguments.
ValidateCountAttribute Defines the maximum and minimum limits that the Windows PowerShell runtime uses to validate the number of arguments that a cmdlet parameter accepts.
ValidateEnumeratedArgumentsAttribute Serves as a base class for argument validation attributes that validate each argument of a parameter.
ValidateLengthAttribute Defines the minimum and maximum limits that the Windows PowerShell runtime uses to validate the length of a cmdlet parameter argument.
ValidateNotNullAttribute Validates that the argument of an optional parameter is not null.
ValidateNotNullOrEmptyAttribute Validates that the argument of an optional parameter is not null, an empty string, or an empty collection.
ValidatePatternAttribute Defines a regular expression that the Windows PowerShell runtime uses to validate the pattern of a cmdlet parameter argument.
ValidateRangeAttribute Defines the minimum and maximum values that the Windows PowerShell runtime uses to validate a cmdlet parameter argument.
ValidateSetAttribute Defines a set of valid values that the Windows PowerShell runtime uses to validate a cmdlet parameter argument.
ValidationMetadataException The exception thrown when an error occurs while validating input for any validation attribute.
VerbsCommon Defines the common verb names that can be used to name cmdlets.
VerbsCommunications Defines the communication verb names that can be used to name cmdlets.
VerbsData Defines the data verb names, such as Import, Export, Merge, Update, and Restore, that can be used to name cmdlets.
VerbsDiagnostic Defines the diagnostic verb names that can be used to name cmdlets.
VerbsLifecycle Defines the life-cycle verb names that can be used to name cmdlets that manipulate the life cycle of something.
VerbsOther Defines canonical verb names that do not fit into a specific verb name category such as data or security verb names.
VerbsSecurity Defines the security verb names that can be used to name cmdlets.
WildcardPattern Represents a wildcard pattern that is used for matching.
WildcardPatternException Thrown when a wildcard pattern is invalid.
InterfaceDescription
ICommandRuntime This class provides a mechanism for overriding the default cmdlet behavior when cmdlets are directly executed through the Invoke method.
IContainsErrorRecord Provides an API that is used to add an error record to an exception.
IDynamicParameters Provides an application programming interface (API) for getting the dynamic parameters for a cmdlet.
IResourceSupplier Provides an API for obtaining a resource string based on a base name and resource identifier.
StructureDescription
SwitchParameter Defines a parameter as a switch parameter. This class is used by the Windows PowerShell runtime to determine if a parameter was specified on the command line.
EnumerationDescription
ActionPreference Defines what actions that the takes when an error occurs.
CommandOrigin Defines the dispatch origin of a command.
CommandTypes Defines the types of commands that Windows PowerShell can execute.
ConfirmImpact Defines the impact level of the action performed by the cmdlet. For example, cmdlets may have a high, medium, or low risk of losing data.
CopyContainers Defines how a copy operation acts on a container.
ErrorCategory Defines the categories used to group errors when interpreting error records. Windows PowerShell uses the error category to display groups of errors.
ProgressRecordType Defines which record of an operation is being processed.
PSCredentialTypes Defines the types of Windows PowerShell credentials.
PSCredentialUIOptions Defines the options that are available, such as different validation options, when prompting for credentials.
PSMemberTypes Defines the types of ETS members.
PSTraceSourceOptions Defines the tracing options based on the types of tracing that are enabled. For example, tracing can be enabled to trace methods, properties, errors, and more.
ReturnContainers Defines what type containers are returned.
ScopedItemOptions Defines options for how session-state data is used.
SessionStateCategory Defines the type of session-state resource that was being accessed when an error occurred.
ShouldProcessReason Defines the reason why a call to ShouldProcess returned what it returned.
SignatureStatus Defines the status of a signature for a file.
SigningOption Defines the options that control what data is embedded in the signature blob.
WildcardOptions Defines the options that are available to modify the matching of wildcard patterns.

Send comments about this topic to Microsoft.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker