Skip to content

Commit

Permalink
Edited PSRemoting cmdlets example style
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmiiz committed Oct 6, 2023
1 parent adb44ca commit 2c52ca9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions reference/5.1/Microsoft.PowerShell.Core/Disable-PSRemoting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Core/Enable-PSRemoting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2c52ca9

Please sign in to comment.