Link to home
Start Free TrialLog in
Avatar of CAD_SB
CAD_SB

asked on

PowerShell script to change Username and password for log on as service (using domain account) on remote server

I am fairly new to Powershell and need to write a script to change the username and password on remote servers that have services that are set to use "log on as" using a domain account.  Is there a way to check this and then set the username and password
ASKER CERTIFIED SOLUTION
Avatar of becraig
becraig
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I had previously inserted the wrong code snippet, find the correct one above.
Avatar of CAD_SB
CAD_SB

ASKER

perfect - thankyou
Is it possible to scan a remote server and select "all services" utilising the specific AD service account and change the password.
I would like to firstly reset the AD password account then select a server on the domain and reset the password for all services that use the specified service account?