Hi, I wrote the below script to change password for "test" service on windows 2003 64-bit server "server1". I am running this script on windows 7 64-bit machine. It always throws the below error status.
I am able to remotely start and stop the same service.
by ps_gregg at 2013-03-21 21:22:18
A Return Value 22 equals "Status Invalid Service Account". So the first thing I would check your is the $Acct variable. Is it populated with a valid service account? Does the variable contain the domain like "DOMAIN\ServiceAcct".