Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PSLanguageMode Enum

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

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.

This enum defines what subset of the PowerShell language is permitted when calling into this execution environment.

public enum class PSLanguageMode
public enum PSLanguageMode
type PSLanguageMode = 
Public Enum PSLanguageMode
Inheritance
PSLanguageMode

Fields

Name Value Description
FullLanguage 0

All PowerShell language elements are available.

RestrictedLanguage 1

A subset of language elements are available to external requests.

NoLanguage 2

Commands containing script text to evaluate are not allowed. You can only call commands using the Runspace APIs when in this mode.

ConstrainedLanguage 3

Exposes a subset of the PowerShell language that limits itself to core PowerShell types, does not support method invocation (except on those types), and does not support property setters (except on those types).

Applies to