EDIT: Pending Review for Pull Request: #9940
Summary of the new feature/enhancement
Get-Service returns Property "StartType"
Set-Service sets property "StartupType" and also "StartType"
Proposed technical implementation details (optional)
Create Alias for Set-Service to accept "StartType" as an argument.
This improves flow with property fields. (.. something that is lacking with WMI Objects and MSFT_Disks).
Get-Service sshd | Select *
Name : sshd
RequiredServices : {}
CanPauseAndContinue : False
CanShutdown : False
CanStop : True
DisplayName : OpenSSH SSH Server
DependentServices :
MachineName : .
ServiceName : sshd
ServicesDependedOn : {}
ServiceHandle : SafeServiceHandle
Status : Running
ServiceType : Win32OwnProcess
StartType : Automatic
Site :
Container :
Invalid Command
Set-Service sshd -StartType Manual
Set-Service : A parameter cannot be found that matches parameter name 'StartType'.
Valid Command
Set-Service sshd -StartupType Manual
EDIT: Pending Review for Pull Request: #9940
Summary of the new feature/enhancement
Get-Service returns Property "StartType"
Set-Service sets property "StartupType" and also "StartType"
Proposed technical implementation details (optional)
Create Alias for Set-Service to accept "StartType" as an argument.
This improves flow with property fields. (.. something that is lacking with WMI Objects and MSFT_Disks).
Invalid Command
Valid Command