From bf9a9376a148366cec2c34ccc2f69f3f455da9d4 Mon Sep 17 00:00:00 2001 From: NeoBeum Date: Wed, 19 Jun 2019 18:37:38 +0930 Subject: [PATCH 1/2] Add alias for Service 'StartType' --- .../commands/management/Service.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs index 6700a582d04..659eda14204 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs @@ -1543,13 +1543,14 @@ public string Description /// /// The following is the definition of the input parameter "StartupType". + /// "StartType" is NativeMethod Get;Set; ServiceController.InputObject.StartType /// Changes the starting mode of the service. Valid values for StartupType are: /// -- Automatic: Start when the system starts. /// -- Manual : Starts only when started by a user or program. /// -- Disabled : Can. /// [Parameter] - [Alias("StartMode", "SM", "ST")] + [Alias("StartMode", "SM", "ST", "StartType")] [ValidateNotNullOrEmpty] public ServiceStartupType StartupType { From d65f612a1d081b04d71f4ed3091e02420466fcc8 Mon Sep 17 00:00:00 2001 From: NB Date: Thu, 20 Jun 2019 21:21:06 +0930 Subject: [PATCH 2/2] Add alias for Service "StartType" Ammend comment --- .../commands/management/Service.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs index 659eda14204..875c428a894 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs @@ -1543,7 +1543,7 @@ public string Description /// /// The following is the definition of the input parameter "StartupType". - /// "StartType" is NativeMethod Get;Set; ServiceController.InputObject.StartType + /// "Set-Service -StartType" sets ServiceController.InputObject.StartType. /// Changes the starting mode of the service. Valid values for StartupType are: /// -- Automatic: Start when the system starts. /// -- Manual : Starts only when started by a user or program.