Skip to content

Commit 7743382

Browse files
committed
Add "Windows-only" note to parameters.
1 parent 9d7a828 commit 7743382

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

reference/7.4/Microsoft.PowerShell.Management/Stop-Computer.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 05/15/2023
5+
ms.date: 05/07/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-computer?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Stop-Computer
@@ -29,10 +29,9 @@ The `Stop-Computer` cmdlet shuts down the local computer and remote computers.
2929
You can use the parameters of `Stop-Computer` to specify the authentication levels and alternate
3030
credentials, and to force an immediate shut down.
3131

32-
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The parameters have no effect on
33-
these platforms. The cmdlet is just calling the native command `/sbin/shutdown`.
34-
35-
## EXAMPLES
32+
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The **WsmanAuthentication**,
33+
**ComputerName**, and **Credential** parameters aren't available on non-Windows platforms. The
34+
cmdlet is just calling the native command `/sbin/shutdown`. ## EXAMPLES
3635

3736
### Example 1: Shut down the local computer
3837

@@ -118,6 +117,8 @@ comma-separated list. To specify the local computer, type the computer name or l
118117
This parameter doesn't rely on PowerShell remoting. You can use the **ComputerName** parameter even
119118
if your computer isn't configured to run remote commands.
120119

120+
This parameter isn't available on non-Windows platforms.
121+
121122
```yaml
122123
Type: System.String[]
123124
Parameter Sets: (All)
@@ -145,6 +146,8 @@ object and the password is stored as a [SecureString](/dotnet/api/system.securit
145146
> For more information about **SecureString** data protection, see
146147
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
147148

149+
This parameter isn't available on non-Windows platforms.
150+
148151
```yaml
149152
Type: System.Management.Automation.PSCredential
150153
Parameter Sets: (All)
@@ -197,7 +200,8 @@ For more information about the values of this parameter, see
197200
> increases the security risk of the remote operation. If the remote computer is compromised, the
198201
> credentials that are passed to it can be used to control the network session.
199202

200-
This parameter was introduced in PowerShell 3.0.
203+
This parameter was introduced in PowerShell 3.0. This parameter isn't available on non-Windows
204+
platforms.
201205

202206
```yaml
203207
Type: System.String

reference/7.5/Microsoft.PowerShell.Management/Stop-Computer.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 05/15/2023
5+
ms.date: 05/07/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-computer?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Stop-Computer
@@ -29,10 +29,9 @@ The `Stop-Computer` cmdlet shuts down the local computer and remote computers.
2929
You can use the parameters of `Stop-Computer` to specify the authentication levels and alternate
3030
credentials, and to force an immediate shut down.
3131

32-
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The parameters have no effect on
33-
these platforms. The cmdlet is just calling the native command `/sbin/shutdown`.
34-
35-
## EXAMPLES
32+
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The **WsmanAuthentication**,
33+
**ComputerName**, and **Credential** parameters aren't available on non-Windows platforms. The
34+
cmdlet is just calling the native command `/sbin/shutdown`. ## EXAMPLES
3635

3736
### Example 1: Shut down the local computer
3837

@@ -118,6 +117,8 @@ comma-separated list. To specify the local computer, type the computer name or l
118117
This parameter doesn't rely on PowerShell remoting. You can use the **ComputerName** parameter even
119118
if your computer isn't configured to run remote commands.
120119

120+
This parameter isn't available on non-Windows platforms.
121+
121122
```yaml
122123
Type: System.String[]
123124
Parameter Sets: (All)
@@ -145,6 +146,8 @@ object and the password is stored as a [SecureString](/dotnet/api/system.securit
145146
> For more information about **SecureString** data protection, see
146147
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
147148

149+
This parameter isn't available on non-Windows platforms.
150+
148151
```yaml
149152
Type: System.Management.Automation.PSCredential
150153
Parameter Sets: (All)
@@ -197,7 +200,8 @@ For more information about the values of this parameter, see
197200
> increases the security risk of the remote operation. If the remote computer is compromised, the
198201
> credentials that are passed to it can be used to control the network session.
199202

200-
This parameter was introduced in PowerShell 3.0.
203+
This parameter was introduced in PowerShell 3.0. This parameter isn't available on non-Windows
204+
platforms.
201205

202206
```yaml
203207
Type: System.String

reference/7.6/Microsoft.PowerShell.Management/Stop-Computer.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Management
5-
ms.date: 05/15/2023
5+
ms.date: 05/07/2025
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/stop-computer?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Stop-Computer
@@ -29,10 +29,9 @@ The `Stop-Computer` cmdlet shuts down the local computer and remote computers.
2929
You can use the parameters of `Stop-Computer` to specify the authentication levels and alternate
3030
credentials, and to force an immediate shut down.
3131

32-
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The parameters have no effect on
33-
these platforms. The cmdlet is just calling the native command `/sbin/shutdown`.
34-
35-
## EXAMPLES
32+
In PowerShell 7.1, `Stop-Computer` was added for Linux and macOS. The **WsmanAuthentication**,
33+
**ComputerName**, and **Credential** parameters aren't available on non-Windows platforms. The
34+
cmdlet is just calling the native command `/sbin/shutdown`. ## EXAMPLES
3635

3736
### Example 1: Shut down the local computer
3837

@@ -118,6 +117,8 @@ comma-separated list. To specify the local computer, type the computer name or l
118117
This parameter doesn't rely on PowerShell remoting. You can use the **ComputerName** parameter even
119118
if your computer isn't configured to run remote commands.
120119

120+
This parameter isn't available on non-Windows platforms.
121+
121122
```yaml
122123
Type: System.String[]
123124
Parameter Sets: (All)
@@ -145,6 +146,8 @@ object and the password is stored as a [SecureString](/dotnet/api/system.securit
145146
> For more information about **SecureString** data protection, see
146147
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
147148

149+
This parameter isn't available on non-Windows platforms.
150+
148151
```yaml
149152
Type: System.Management.Automation.PSCredential
150153
Parameter Sets: (All)
@@ -197,7 +200,8 @@ For more information about the values of this parameter, see
197200
> increases the security risk of the remote operation. If the remote computer is compromised, the
198201
> credentials that are passed to it can be used to control the network session.
199202

200-
This parameter was introduced in PowerShell 3.0.
203+
This parameter was introduced in PowerShell 3.0. This parameter isn't available on non-Windows
204+
platforms.
201205

202206
```yaml
203207
Type: System.String

0 commit comments

Comments
 (0)