Important
Some information relates to prerelease product that may be substantially modified before itâs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the types of commands that PowerShell can execute.
This enumeration supports a bitwise combination of its member values.
public enum class CommandTypes
[System.Flags]
public enum CommandTypes
[<System.Flags>]
type CommandTypes =
Public Enum CommandTypes
Aliases create a name that refers to other command types. Aliases are only persisted within the execution of a single engine.
Function 2Script functions that are defined by a script block. Functions are only persisted within the execution of a single engine.
Filter 4Script filters that are defined by a script block. Filters are only persisted within the execution of a single engine.
Cmdlet 8A cmdlet.
ExternalScript 16An PowerShell script (*.ps1 file)
Application 32Any existing application (can be console or GUI). An application can have any extension that can be executed either directly through CreateProcess or indirectly through ShellExecute.
Script 64A script that is built into the runspace configuration.
Workflow 128A workflow
Configuration 256A Configuration.
All 511All possible command types. NOTE: a CommandInfo instance will never specify All as its CommandType but All can be used when filtering the CommandTypes.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4