Skip to content

Commit c97c99a

Browse files
authored
Add shebang to indicate bash requirement (#12732)
* Add shebang to indicate bash requirement * Change value formatting to avoid overlocalization
1 parent ac96318 commit c97c99a

File tree

8 files changed

+58
-49
lines changed

8 files changed

+58
-49
lines changed

reference/5.1/Microsoft.PowerShell.Management/Set-Service.md

Lines changed: 11 additions & 10 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: 03/20/2024
5+
ms.date: 02/04/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-Service
@@ -168,6 +168,7 @@ Name StartType
168168
spooler Automatic
169169
SQLWriter Automatic
170170
```
171+
171172
## PARAMETERS
172173

173174
### -ComputerName
@@ -291,18 +292,18 @@ Accept wildcard characters: False
291292

292293
Sets the startup type of the service. The acceptable values for this parameter are:
293294

294-
- **Automatic** - The service is started or was started by the operating system, at system start-up.
295+
- `Automatic` - The service is started or was started by the operating system, at system start-up.
295296
If an automatically started service depends on a manually started service, the manually started
296297
service is also started automatically at system startup.
297-
- **Disabled** - The service is disabled and cannot be started by a user or application.
298-
- **Manual** - The service is started only manually, by a user, using the Service Control Manager,
298+
- `Disabled` - The service is disabled and cannot be started by a user or application.
299+
- `Manual` - The service is started only manually, by a user, using the Service Control Manager,
299300
or by an application.
300-
- **Boot** - Indicates that the service is a device driver started by the system loader. This
301+
- `Boot` - Indicates that the service is a device driver started by the system loader. This
301302
value is valid only for device drivers.
302-
- **System** - Indicates that the service is a device driver started by the 'IOInitSystem()'
303+
- `System` - Indicates that the service is a device driver started by the 'IOInitSystem()'
303304
function. This value is valid only for device drivers.
304305

305-
The default value is **Automatic**.
306+
The default value is `Automatic`.
306307

307308
```yaml
308309
Type: System.ServiceProcess.ServiceStartMode
@@ -323,9 +324,9 @@ Specifies the status for the service.
323324

324325
The acceptable values for this parameter are as follows:
325326

326-
- **Paused**. Suspends the service.
327-
- **Running**. Starts the service.
328-
- **Stopped**. Stops the service.
327+
- `Paused`. Suspends the service.
328+
- `Running`. Starts the service.
329+
- `Stopped`. Stops the service.
329330

330331
```yaml
331332
Type: System.String

reference/7.4/Microsoft.PowerShell.Management/Set-Service.md

Lines changed: 14 additions & 13 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: 03/20/2024
5+
ms.date: 02/04/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-Service
@@ -224,18 +224,19 @@ SQLWriter Automatic
224224

225225
### -Credential
226226

227-
Specifies the account used by the service as the [Service Logon Account](/windows/desktop/ad/about-service-logon-accounts).
227+
Specifies the account used by the service as the
228+
[Service Logon Account](/windows/desktop/ad/about-service-logon-accounts).
228229

229230
Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object,
230231
such as one generated by the `Get-Credential` cmdlet. If you type a user name, this cmdlet prompts
231232
you for a password.
232233

233-
Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential)
234-
object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring).
234+
Credentials are stored in a [PSCredential](xref:System.Management.Automation.PSCredential) object
235+
and the password is stored as a [SecureString](xref:System.Security.SecureString).
235236

236237
> [!NOTE]
237238
> For more information about **SecureString** data protection, see
238-
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
239+
> [How secure is SecureString?](xref:System.Security.SecureString#how-secure-is-securestring).
239240
240241
This parameter was introduced in PowerShell 6.0.
241242

@@ -390,14 +391,14 @@ Specifies the start mode of the service.
390391

391392
The acceptable values for this parameter are as follows:
392393

393-
- **Automatic** - The service is started or was started by the operating system, at system start-up.
394+
- `Automatic` - The service is started or was started by the operating system, at system start-up.
394395
If an automatically started service depends on a manually started service, the manually started
395396
service is also started automatically at system startup.
396-
- **AutomaticDelayedStart** - Starts shortly after the system boots.
397-
- **Disabled** - The service is disabled and cannot be started by a user or application.
398-
- **InvalidValue** - Has no effect. The cmdlet does not return an error but the StartupType of the
397+
- `AutomaticDelayedStart` - Starts shortly after the system boots.
398+
- `Disabled` - The service is disabled and cannot be started by a user or application.
399+
- `InvalidValue` - Has no effect. The cmdlet does not return an error but the StartupType of the
399400
service is not changed.
400-
- **Manual** - The service is started only manually, by a user, using the Service Control Manager,
401+
- `Manual` - The service is started only manually, by a user, using the Service Control Manager,
401402
or by an application.
402403

403404
```yaml
@@ -419,9 +420,9 @@ Specifies the status for the service.
419420

420421
The acceptable values for this parameter are as follows:
421422

422-
- **Paused**. Suspends the service.
423-
- **Running**. Starts the service.
424-
- **Stopped**. Stops the service.
423+
- `Paused`. Suspends the service.
424+
- `Running`. Starts the service.
425+
- `Stopped`. Stops the service.
425426

426427
```yaml
427428
Type: System.String

reference/7.5/Microsoft.PowerShell.Management/Set-Service.md

Lines changed: 9 additions & 9 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: 03/20/2024
5+
ms.date: 02/04/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-Service
@@ -391,14 +391,14 @@ Specifies the start mode of the service.
391391

392392
The acceptable values for this parameter are as follows:
393393

394-
- **Automatic** - The service is started or was started by the operating system, at system start-up.
394+
- `Automatic` - The service is started or was started by the operating system, at system start-up.
395395
If an automatically started service depends on a manually started service, the manually started
396396
service is also started automatically at system startup.
397-
- **AutomaticDelayedStart** - Starts shortly after the system boots.
398-
- **Disabled** - The service is disabled and cannot be started by a user or application.
399-
- **InvalidValue** - Has no effect. The cmdlet does not return an error but the StartupType of the
397+
- `AutomaticDelayedStart` - Starts shortly after the system boots.
398+
- `Disabled` - The service is disabled and cannot be started by a user or application.
399+
- `InvalidValue` - Has no effect. The cmdlet does not return an error but the StartupType of the
400400
service is not changed.
401-
- **Manual** - The service is started only manually, by a user, using the Service Control Manager,
401+
- `Manual` - The service is started only manually, by a user, using the Service Control Manager,
402402
or by an application.
403403

404404
```yaml
@@ -420,9 +420,9 @@ Specifies the status for the service.
420420

421421
The acceptable values for this parameter are as follows:
422422

423-
- **Paused**. Suspends the service.
424-
- **Running**. Starts the service.
425-
- **Stopped**. Stops the service.
423+
- `Paused`. Suspends the service.
424+
- `Running`. Starts the service.
425+
- `Stopped`. Stops the service.
426426

427427
```yaml
428428
Type: System.String

reference/7.6/Microsoft.PowerShell.Management/Set-Service.md

Lines changed: 14 additions & 13 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: 03/20/2024
5+
ms.date: 02/04/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-Service
@@ -224,18 +224,19 @@ SQLWriter Automatic
224224

225225
### -Credential
226226

227-
Specifies the account used by the service as the [Service Logon Account](/windows/desktop/ad/about-service-logon-accounts).
227+
Specifies the account used by the service as the
228+
[Service Logon Account](/windows/desktop/ad/about-service-logon-accounts).
228229

229230
Type a user name, such as **User01** or **Domain01\User01**, or enter a **PSCredential** object,
230231
such as one generated by the `Get-Credential` cmdlet. If you type a user name, this cmdlet prompts
231232
you for a password.
232233

233-
Credentials are stored in a [PSCredential](/dotnet/api/system.management.automation.pscredential)
234-
object and the password is stored as a [SecureString](/dotnet/api/system.security.securestring).
234+
Credentials are stored in a [PSCredential](xref:System.Management.Automation.PSCredential) object
235+
and the password is stored as a [SecureString](xref:System.Security.SecureString).
235236

236237
> [!NOTE]
237238
> For more information about **SecureString** data protection, see
238-
> [How secure is SecureString?](/dotnet/api/system.security.securestring#how-secure-is-securestring).
239+
> [How secure is SecureString?](xref:System.Security.SecureString#how-secure-is-securestring).
239240
240241
This parameter was introduced in PowerShell 6.0.
241242

@@ -390,14 +391,14 @@ Specifies the start mode of the service.
390391

391392
The acceptable values for this parameter are as follows:
392393

393-
- **Automatic** - The service is started or was started by the operating system, at system start-up.
394+
- `Automatic` - The service is started or was started by the operating system, at system start-up.
394395
If an automatically started service depends on a manually started service, the manually started
395396
service is also started automatically at system startup.
396-
- **AutomaticDelayedStart** - Starts shortly after the system boots.
397-
- **Disabled** - The service is disabled and cannot be started by a user or application.
398-
- **InvalidValue** - Has no effect. The cmdlet does not return an error but the StartupType of the
397+
- `AutomaticDelayedStart` - Starts shortly after the system boots.
398+
- `Disabled` - The service is disabled and cannot be started by a user or application.
399+
- `InvalidValue` - Has no effect. The cmdlet does not return an error but the StartupType of the
399400
service is not changed.
400-
- **Manual** - The service is started only manually, by a user, using the Service Control Manager,
401+
- `Manual` - The service is started only manually, by a user, using the Service Control Manager,
401402
or by an application.
402403

403404
```yaml
@@ -419,9 +420,9 @@ Specifies the status for the service.
419420

420421
The acceptable values for this parameter are as follows:
421422

422-
- **Paused**. Suspends the service.
423-
- **Running**. Starts the service.
424-
- **Stopped**. Stops the service.
423+
- `Paused`. Suspends the service.
424+
- `Running`. Starts the service.
425+
- `Stopped`. Stops the service.
425426

426427
```yaml
427428
Type: System.String

reference/docs-conceptual/install/install-alpine.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on Alpine Linux
3-
ms.date: 12/15/2025
3+
ms.date: 02/04/2026
44
title: Install PowerShell on Alpine Linux
55
---
66
# Install PowerShell on Alpine Linux
@@ -28,6 +28,7 @@ to the package depends on the version of PowerShell you want to install.
2828
Then, in the terminal, execute the following shell commands to install PowerShell 7.4:
2929

3030
```sh
31+
#!/bin/bash
3132
# install the requirements
3233
sudo apk add --no-cache \
3334
ca-certificates \

reference/docs-conceptual/install/install-debian.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: How to install PowerShell on Debian Linux
3-
ms.date: 12/15/2025
3+
ms.date: 02/04/2026
44
title: Install PowerShell on Debian
55
---
66
# Install PowerShell on Debian
@@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
3131
> This script only works for supported versions of Debian.
3232
3333
```sh
34+
#!/bin/bash
3435
###################################
3536
# Prerequisites
3637

@@ -81,6 +82,7 @@ The following shell script downloads and installs the current release of PowerSh
8182
change the URL to download the version of PowerShell that you want to install.
8283

8384
```sh
85+
#!/bin/bash
8486
###################################
8587
# Prerequisites
8688

reference/docs-conceptual/install/install-rhel.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Information about installing PowerShell on Red Hat Enterprise Linux (RHEL)
3-
ms.date: 12/15/2025
3+
ms.date: 02/04/2026
44
title: Installing PowerShell on Red Hat Enterprise Linux (RHEL)
55
---
66
# Installing PowerShell on Red Hat Enterprise Linux (RHEL)
@@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
3131
> This script only works for supported versions of RHEL that are published to PMC.
3232
3333
```sh
34+
#!/bin/bash
3435
###################################
3536
# Prerequisites
3637

reference/docs-conceptual/install/install-ubuntu.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Information about installing PowerShell on Ubuntu
3-
ms.date: 12/15/2025
3+
ms.date: 02/04/2026
44
title: Installing PowerShell on Ubuntu
55
---
66
# Installing PowerShell on Ubuntu
@@ -31,6 +31,7 @@ Installing PowerShell from PMC is the preferred method of installation.
3131
> This script only works for supported versions of Ubuntu.
3232
3333
```sh
34+
#!/bin/bash
3435
###################################
3536
# Prerequisites
3637

@@ -93,6 +94,7 @@ The following shell script downloads and installs the current preview release of
9394
change the URL to download the version of PowerShell that you want to install.
9495

9596
```sh
97+
#!/bin/bash
9698
###################################
9799
# Prerequisites
98100

0 commit comments

Comments
 (0)