22external help file : Microsoft.PowerShell.Commands.Management.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Management
5- ms.date : 03/20/2024
5+ ms.date : 02/04/2026
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.management/set-service?view=powershell-7.4&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : 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
229230Type a user name, such as ** User01** or ** Domain01\User01** , or enter a ** PSCredential** object,
230231such as one generated by the ` Get-Credential ` cmdlet. If you type a user name, this cmdlet prompts
231232you 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
240241This parameter was introduced in PowerShell 6.0.
241242
@@ -390,14 +391,14 @@ Specifies the start mode of the service.
390391
391392The 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
420421The 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
427428Type: System.String
0 commit comments