ExternalScriptInfo ExternalScriptInfo ExternalScriptInfo ExternalScriptInfo Class


Provides information for MSH scripts that are directly executable by MSH but are not built into the runspace configuration.

public ref class ExternalScriptInfo : System::Management::Automation::CommandInfo
public class ExternalScriptInfo : System.Management.Automation.CommandInfo
type ExternalScriptInfo = class
    inherit CommandInfo
Public Class ExternalScriptInfo
Inherits CommandInfo


CommandType CommandType CommandType CommandType

Gets the type of the command

(Inherited from CommandInfo)
Definition Definition Definition Definition

Gets the path to the script file.

Module Module Module Module

The module that defines this cmdlet. This will be null for commands that are not defined in the context of a module.

(Inherited from CommandInfo)
ModuleName ModuleName ModuleName ModuleName

The module name of this command. It will be empty for commands not imported from either a module or snapin.

(Inherited from CommandInfo)
Name Name Name Name

Gets the name of the command.

(Inherited from CommandInfo)
OriginalEncoding OriginalEncoding OriginalEncoding OriginalEncoding

Gets the original encoding of the script.

OutputType OutputType OutputType OutputType

The output type(s) is specified in the script block

Parameters Parameters Parameters Parameters

Return the parameters for this command.

(Inherited from CommandInfo)
ParameterSets ParameterSets ParameterSets ParameterSets

Gets the information about the parameters and parameter sets for this command.

(Inherited from CommandInfo)
Path Path Path Path

Gets the path to the script file.

RemotingCapability RemotingCapability RemotingCapability RemotingCapability

The remoting capabilities of this cmdlet, when exposed in a context with ambient remoting.

(Inherited from CommandInfo)
ScriptBlock ScriptBlock ScriptBlock ScriptBlock

The script block that represents the external script

ScriptContents ScriptContents ScriptContents ScriptContents

Gets the original contents of the script.

Source Source Source Source

Gets the source of this command

Version Version Version Version

Gets the source version (shown by default in Get-Command)

(Inherited from CommandInfo)
Visibility Visibility Visibility Visibility

Determine the visibility for this script...


ResolveParameter(String) ResolveParameter(String) ResolveParameter(String) ResolveParameter(String)

Resolves a full, shortened, or aliased parameter name to the actual cmdlet parameter name, using PowerShell's standard parameter resolution algorithm.

(Inherited from CommandInfo)
ToString() ToString() ToString() ToString()

for diagnostic purposes

(Inherited from CommandInfo)
ValidateScriptInfo(PSHost) ValidateScriptInfo(PSHost) ValidateScriptInfo(PSHost) ValidateScriptInfo(PSHost)

Validates the external script info

Applies to