Skip to content

Commit df672de

Browse files
NeoBeumAndrew
authored andcommitted
Add alias for Service 'StartType' (#9940)
1 parent 71ec44d commit df672de

File tree

1 file changed

+2
-1
lines changed
  • src/Microsoft.PowerShell.Commands.Management/commands/management

1 file changed

+2
-1
lines changed

src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,13 +1544,14 @@ public string Description
15441544

15451545
/// <summary>
15461546
/// The following is the definition of the input parameter "StartupType".
1547+
/// "Set-Service -StartType" sets ServiceController.InputObject.StartType.
15471548
/// Changes the starting mode of the service. Valid values for StartupType are:
15481549
/// -- Automatic: Start when the system starts.
15491550
/// -- Manual : Starts only when started by a user or program.
15501551
/// -- Disabled : Can.
15511552
/// </summary>
15521553
[Parameter]
1553-
[Alias("StartMode", "SM", "ST")]
1554+
[Alias("StartMode", "SM", "ST", "StartType")]
15541555
[ValidateNotNullOrEmpty]
15551556
public ServiceStartupType StartupType
15561557
{

0 commit comments

Comments
 (0)