mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add alias for Service 'StartType' (#9940)
This commit is contained in:
@@ -1544,13 +1544,14 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "StartupType".
|
||||
/// "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.
|
||||
/// -- Disabled : Can.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
[Alias("StartMode", "SM", "ST")]
|
||||
[Alias("StartMode", "SM", "ST", "StartType")]
|
||||
[ValidateNotNullOrEmpty]
|
||||
public ServiceStartupType StartupType
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user