Link to home
Start Free TrialLog in
Avatar of Eric Perez
Eric PerezFlag for United States of America

asked on

Changing service account password on multiple computers in the service filed

I am trying to change all the passwords on multiple 2008 r2 servers but I get errors and I am not good at this please help..

maybe something that reads a test file and then changes the Service password on each server and have a text input to revile success on each server or fail.

I am using PowerShell and here is my example.

icm $Servertest { /StartMode=Automatic /account=user /username=Server1 Service/password=XXXXXXXXXX}
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Is this service account password a local account on the machines itself? Or do you have an AD account that has a password cached on a service that you are managing with it?

Will.
Avatar of Eric Perez

ASKER

Hi Will its a AD account used as a service account, not local...
Ok I miss spoke some, its using the default service account which I need to change all of the servers using a specific service to change the default to a specified service account name and change the 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
where does this txt file get placed?
 $servers = (gc serverlist.txt)
You can change
gc serverlist.txt

To
gc c:\folder\filenamet.txt
Where the path is the exact path to the text file with your list of servers.
great response to the problem.. and interaction...