-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Credentials for Set-Service command #4843
Copy link
Copy link
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Currently when creating a service using the
New-Servicefrom the moduleMicrosoft.PowerShell.ManagementI can specify the credentials that my new service will be executed with.Set-Servicecurrently does not support setting the new logon account for the service.The current workarounds that I have found:
Get-WmiObject -Class Win32_Serviceand from there use theChangemethodBut I believe it would be nice to have
Set-Servicesupport credentials.Is it possible to add functionality for setting the credentials using the
Set-Servicecommand?