22description : Explains language modes and their effect on PowerShell sessions.
33Locale : en-US
44ms.date : 08/03/2021
5+ no-loc : [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
56online version : https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-5.1&WT.mc_id=ps-gethelp
67schema : 2.0.0
78title : about Language Modes
@@ -23,7 +24,7 @@ PowerShell supports the following language modes:
2324- ** RestrictedLanguage**
2425- ** NoLanguage**
2526
26- ### WHAT IS A LANGUAGE MODE ?
27+ ### What is a language mode ?
2728
2829The language mode determines the language elements that are permitted in the
2930session.
@@ -44,13 +45,13 @@ language mode of the session. To specify the session configuration of a
4445PSSession, use the ConfigurationName parameter of cmdlets that create a
4546session.
4647
47- ### LANGUAGE MODES
48+ ### Language modes
4849
4950This section describes the language modes in PowerShell sessions.
5051
51- #### FULL LANGUAGE (FullLanguage)
52+ #### Full language (FullLanguage)
5253
53- The FullLanguage mode permits all language elements in the session.
54+ The ** FullLanguage** mode permits all language elements in the session.
5455FullLanguage is the default language mode for default sessions on all versions
5556of Windows except for Windows RT.
5657
@@ -79,7 +80,7 @@ permitted.
7980
8081#### No language (NoLanguage)
8182
82- NoLanguage mode can only be used through the API. NoLanguage mode means no
83+ ** NoLanguage** mode can only be used through the API. NoLanguage mode means no
8384script text of any form is permitted. This precludes the use of the
8485** AddScript()** method which sends fragments of PowerShell script to be parsed
8586and executed. You can only use ** AddCommand()** and ** AddParameter()** which
@@ -139,58 +140,58 @@ The features of **ConstrainedLanguage** mode are as follows:
139140 - ** Scripting.FileSystemObject**
140141 - ** VBScript.RegExp**
141142
142- The following types are permitted in ConstrainedLanguage mode. Users
143+ The following types are permitted in ** ConstrainedLanguage** mode. Users
143144can get properties, invoke methods, and convert objects to these types.
144145
145146Allowed Types:
146147
147- - AliasAttribute
148- - AllowEmptyCollectionAttribute
149- - AllowEmptyStringAttribute
150- - AllowNullAttribute
151- - Array
152- - Bool
153- - byte
154- - char
155- - CmdletBindingAttribute
156- - DateTime
157- - decimal
158- - DirectoryEntry
159- - DirectorySearcher
160- - double
161- - float
162- - Guid
163- - Hashtable
164- - int
165- - Int16
166- - long
167- - ManagementClass
168- - ManagementObject
169- - ManagementObjectSearcher
170- - NullString
171- - OutputTypeAttribute
172- - ParameterAttribute
173- - PSCredential
174- - PSDefaultValueAttribute
175- - PSListModifier
176- - PSObject
177- - PSPrimitiveDictionary
178- - PSReference
179- - PSTypeNameAttribute
180- - Regex
181- - SByte
182- - string
183- - SupportsWildcardsAttribute
184- - SwitchParameter
185- - System.Globalization.CultureInfo
186- - System.Net.IPAddress
187- - System.Net.Mail.MailAddress
188- - System.Numerics.BigInteger
189- - System.Security.SecureString
190- - TimeSpan
191- - UInt16
192- - UInt32
193- - UInt64
148+ - ` [ AliasAttribute] `
149+ - ` [ AllowEmptyCollectionAttribute] `
150+ - ` [ AllowEmptyStringAttribute] `
151+ - ` [ AllowNullAttribute] `
152+ - ` [ Array] `
153+ - ` [ Bool] `
154+ - ` [ byte] `
155+ - ` [ char] `
156+ - ` [ CmdletBindingAttribute] `
157+ - ` [ DateTime] `
158+ - ` [ decimal] `
159+ - ` [ DirectoryEntry] `
160+ - ` [ DirectorySearcher] `
161+ - ` [ double] `
162+ - ` [ float] `
163+ - ` [ Guid] `
164+ - ` [ Hashtable] `
165+ - ` [ int] `
166+ - ` [ Int16] `
167+ - ` [ long] `
168+ - ` [ ManagementClass] `
169+ - ` [ ManagementObject] `
170+ - ` [ ManagementObjectSearcher] `
171+ - ` [ NullString] `
172+ - ` [ OutputTypeAttribute] `
173+ - ` [ ParameterAttribute] `
174+ - ` [ PSCredential] `
175+ - ` [ PSDefaultValueAttribute] `
176+ - ` [ PSListModifier] `
177+ - ` [ PSObject] `
178+ - ` [ PSPrimitiveDictionary] `
179+ - ` [ PSReference] `
180+ - ` [ PSTypeNameAttribute] `
181+ - ` [ Regex] `
182+ - ` [ SByte] `
183+ - ` [String] `
184+ - ` [ SupportsWildcardsAttribute] `
185+ - ` [ SwitchParameter] `
186+ - ` [ System.Globalization.CultureInfo] `
187+ - ` [ System.Net.IPAddress] `
188+ - ` [ System.Net.Mail.MailAddress] `
189+ - ` [ System.Numerics.BigInteger] `
190+ - ` [ System.Security.SecureString] `
191+ - ` [ TimeSpan] `
192+ - ` [ UInt16] `
193+ - ` [ UInt32] `
194+ - ` [ UInt64] `
194195
195196### Finding the language mode of a session configuration
196197
@@ -204,7 +205,7 @@ FullLanguage
204205```
205206
206207On other session configurations, you can find the language mode indirectly by
207- finding the language mode of a session that is created by using the session
208+ finding the language mode of a session that is created using the session
208209configuration.
209210
210211### Finding the language mode of a session
0 commit comments