Eric Perez
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=XXXXXXXXX X}
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=XXXXXXXXX
ASKER
Hi Will its a AD account used as a service account, not local...
Here is a previously answered question where I wrote a short script to do this:
https://www.experts-exchange.com/questions/28350680/PowerShell-script-to-change-Username-and-password-for-log-on-as-service-using-domain-account-on-remote-server.html
https://www.experts-exchange.com/questions/28350680/PowerShell-script-to-change-Username-and-password-for-log-on-as-service-using-domain-account-on-remote-server.html
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
where does this txt file get placed?
$servers = (gc serverlist.txt)
$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.
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.
ASKER
great response to the problem.. and interaction...
Will.