We help IT Professionals succeed at work.

Powershell set username/pwd for windows services

enthuguy
enthuguy asked
on
58 Views
Last Modified: 2019-04-25
Hi Powershell experts,

Using Powershell, would like to set username/password for a list of services (service1, service2, service3, etc) in Windows 2016 servers.
Since, I will be invoking this from AWS CloudFormation, Is there a better way to handle the password pls?
after setting credentials on these services, we need to ensure it is running as well.  :)

please help

Thanks in advance
Comment
Watch Question

kevinhsiehNetwork Engineer
CERTIFIED EXPERT

Commented:
You should be using Managed Service Accounts or Group Managed Service Accounts for handling credentials of services.

https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview
Senior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks kevinhsieh, yes it is a service account.

Thanks Shaun, will try this.

Is there a better way to handle/implement this pls?