From 91c15ab514ef41bfd4fbb4317e2e13ef0ac7dca7 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 4 Oct 2023 14:59:15 -0500 Subject: [PATCH] Update about_language_modes and remoting articles --- .openpublishing.redirection.json | 4 ++-- .../About/about_Language_Modes.md | 16 ++++++++-------- .../About/about_Language_Modes.md | 13 +++++-------- .../About/about_Language_Modes.md | 13 +++++-------- .../About/about_Language_Modes.md | 13 +++++-------- 5 files changed, 25 insertions(+), 34 deletions(-) diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index a6afe5b55159..88a054571818 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -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" }, diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md index d3a7fa6f31c9..20a3af780a01 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md @@ -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 @@ -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` diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Language_Modes.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Language_Modes.md index 5e989c39ce79..6bcf220bb8e7 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Language_Modes.md +++ b/reference/7.2/Microsoft.PowerShell.Core/About/about_Language_Modes.md @@ -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 @@ -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` diff --git a/reference/7.3/Microsoft.PowerShell.Core/About/about_Language_Modes.md b/reference/7.3/Microsoft.PowerShell.Core/About/about_Language_Modes.md index 1d8478eddb58..e5ce4b866ae9 100644 --- a/reference/7.3/Microsoft.PowerShell.Core/About/about_Language_Modes.md +++ b/reference/7.3/Microsoft.PowerShell.Core/About/about_Language_Modes.md @@ -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 @@ -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` diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Modes.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Modes.md index c6d63021ecee..b5373d9d0e17 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Modes.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Modes.md @@ -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 @@ -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`