Expand Minimize

CommandTypes Enumeration

Defines the types of commands that Windows PowerShell can execute.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As CommandTypes

public enum CommandTypes
/** @attribute FlagsAttribute() */ 
public enum CommandTypes
public enum CommandTypes

Member nameDescription
AliasThe command is an alias that refers to another command.
AllThe command can be any type of command.
ApplicationThe command is an existing application (console or GUI).
CmdletThe command is a cmdlet.
ExternalScriptThe command is a Windows PowerShell script (*.ps1 file).
FilterThe command is a script filter that is defined by a script block.
FunctionThe command is a script function that is defined by a script block.
ScriptThe command is a script that is built into the runspace configuration.
WorkflowThe command is a workflow.


Target Platforms

© 2014 Microsoft