Skip to content

Commit

Permalink
Update about_language_modes and remoting articles
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed Oct 4, 2023
1 parent 239256e commit 91c15ab
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
},
{
"redirect_document_id": true,
"redirect_url": "//powershell/scripting/learn/remoting/ssh-remoting-in-powershell",
"redirect_url": "/powershell/scripting/learn/remoting/ssh-remoting-in-powershell",
"source_path": "reference/docs-conceptual/learn/remoting/ssh-remoting-in-powershell-core.md"
},
{
"redirect_document_id": true,
"redirect_document_id": false,
"redirect_url": "/powershell/scripting/learn/remoting/wsman-remoting-in-powershell",
"source_path": "reference/docs-conceptual/learn/remoting/wsman-unsupported-for-nonwindows.md"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains language modes and their effect on PowerShell sessions.
Locale: en-US
ms.date: 06/07/2023
ms.date: 10/04/2023
no-loc: [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
Expand Down Expand Up @@ -153,15 +153,15 @@ versions of Windows.

### RestrictedLanguage mode

The `RestrictedLanguage` mode was created for Windows RT, which is no longer
supported. This mode is also used to process modules manifests loaded by
`Import-Module`.

In `RestrictedLanguage` mode, users can run commands (cmdlets, functions, CIM
commands, and workflows), but can't use script blocks.
commands, and workflows), but can't use script blocks. This mode is also used
to process modules manifests loaded by `Import-Module`.

Beginning in PowerShell 7.2, the `New-Object` cmdlet is disabled in
`RestrictedLanguage` mode when system lockdown is configured.

By default, only the following variables are permitted in
`RestrictedLanguage` mode:
By default, only the following variables are permitted in `RestrictedLanguage`
mode:

- `$PSCulture`
- `$PSUICulture`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains language modes and their effect on PowerShell sessions.
Locale: en-US
ms.date: 06/07/2023
ms.date: 10/04/2023
no-loc: [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
Expand Down Expand Up @@ -153,18 +153,15 @@ versions of Windows.

### RestrictedLanguage mode

The `RestrictedLanguage` mode was created for Windows RT, which is no longer
supported. This mode is also used to process modules manifests loaded by
`Import-Module`.

In `RestrictedLanguage` mode, users can run commands (cmdlets, functions, CIM
commands, and workflows), but can't use script blocks.
commands, and workflows), but can't use script blocks. This mode is also used
to process modules manifests loaded by `Import-Module`.

Beginning in PowerShell 7.2, the `New-Object` cmdlet is disabled in
`RestrictedLanguage` mode when system lockdown is configured.

By default, only the following variables are permitted in
`RestrictedLanguage` mode:
By default, only the following variables are permitted in `RestrictedLanguage`
mode:

- `$PSCulture`
- `$PSUICulture`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains language modes and their effect on PowerShell sessions.
Locale: en-US
ms.date: 06/07/2023
ms.date: 10/04/2023
no-loc: [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
Expand Down Expand Up @@ -156,18 +156,15 @@ versions of Windows.

### RestrictedLanguage mode

The `RestrictedLanguage` mode was created for Windows RT, which is no longer
supported. This mode is also used to process modules manifests loaded by
`Import-Module`.

In `RestrictedLanguage` mode, users can run commands (cmdlets, functions, CIM
commands, and workflows), but can't use script blocks.
commands, and workflows), but can't use script blocks. This mode is also used
to process modules manifests loaded by `Import-Module`.

Beginning in PowerShell 7.2, the `New-Object` cmdlet is disabled in
`RestrictedLanguage` mode when system lockdown is configured.

By default, only the following variables are permitted in
`RestrictedLanguage` mode:
By default, only the following variables are permitted in `RestrictedLanguage`
mode:

- `$PSCulture`
- `$PSUICulture`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains language modes and their effect on PowerShell sessions.
Locale: en-US
ms.date: 06/07/2023
ms.date: 10/04/2023
no-loc: [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
Expand Down Expand Up @@ -156,18 +156,15 @@ versions of Windows.

### RestrictedLanguage mode

The `RestrictedLanguage` mode was created for Windows RT, which is no longer
supported. This mode is also used to process modules manifests loaded by
`Import-Module`.

In `RestrictedLanguage` mode, users can run commands (cmdlets, functions, CIM
commands, and workflows), but can't use script blocks.
commands, and workflows), but can't use script blocks. This mode is also used
to process modules manifests loaded by `Import-Module`.

Beginning in PowerShell 7.2, the `New-Object` cmdlet is disabled in
`RestrictedLanguage` mode when system lockdown is configured.

By default, only the following variables are permitted in
`RestrictedLanguage` mode:
By default, only the following variables are permitted in `RestrictedLanguage`
mode:

- `$PSCulture`
- `$PSUICulture`
Expand Down

0 comments on commit 91c15ab

Please sign in to comment.