From 2c52ca9be46fb8309efb63ade242c120550e3cb6 Mon Sep 17 00:00:00 2001 From: ehmiiz Date: Fri, 6 Oct 2023 09:14:02 +0200 Subject: [PATCH] Edited PSRemoting cmdlets example style --- .../Microsoft.PowerShell.Core/Disable-PSRemoting.md | 12 ++++++------ .../Microsoft.PowerShell.Core/Enable-PSRemoting.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md b/reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md index 3b069342c774..cc81423447a5 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md @@ -2,7 +2,7 @@ external help file: System.Management.Automation.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Core -ms.date: 12/09/2022 +ms.date: 10/06/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/disable-psremoting?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Disable-PSRemoting @@ -129,11 +129,11 @@ configurations as long as they are connecting locally (also known as loopback) a credentials. ```powershell -Disable-PSRemoting -force -Get-PSSessionConfiguration | Format-Table -Property Name, Permission -Auto +Disable-PSRemoting -Force +Get-PSSessionConfiguration | Format-Table -Property Name, Permission -AutoSize Enable-PSRemoting -Force -Get-PSSessionConfiguration | Format-Table -Property Name, Permission -Auto +Get-PSSessionConfiguration | Format-Table -Property Name, Permission -AutoSize ``` ```Output @@ -287,10 +287,10 @@ the configuration. ```powershell Disable-PSRemoting -Force -Get-PSSessionConfiguration | Format-Table -Property Name, Permission -Auto +Get-PSSessionConfiguration | Format-Table -Property Name, Permission -AutoSize Set-PSSessionConfiguration -Name Microsoft.ServerManager -AccessMode Remote -Force -Get-PSSessionConfiguration | Format-Table -Property Name, Permission -Auto +Get-PSSessionConfiguration | Format-Table -Property Name, Permission -AutoSize ``` ```Output diff --git a/reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md b/reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md index 08712852f06e..865c1b011dcf 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md @@ -2,7 +2,7 @@ external help file: System.Management.Automation.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Core -ms.date: 12/09/2022 +ms.date: 10/06/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Enable-PSRemoting @@ -87,7 +87,7 @@ Use `Get-NetFirewallRule` to see a list of rules. Before enabling the firewall r security settings in the rule to verify that the configuration is appropriate for your environment. ```powershell -Get-NetFirewallRule -Name 'WINRM*' | Select-Object Name +Get-NetFirewallRule -Name 'WINRM*' | Select-Object -Property Name ``` ```Output