Changing Passwords for services

G

Guest

Hello,

We have domain accounts on our windows servers 2000/2003 where we want to change the passwords from command line i think we can change using net user but there
are some services running on those servers using the those domain accouts when
we change the password we will have to manually go retype those passwords under each service..is there anyway we can do this from command line ..my main idea is to automate
changing passwords...


Any help is appreciated..


Thanks
 
T

Torgeir Bakken \(MVP\)

chinn said:
Hello,

We have domain accounts on our windows servers 2000/2003 where we want to change the passwords from command line i think we can change using net user but there
are some services running on those servers using the those domain accouts when
we change the password we will have to manually go retype those passwords under each service..is there anyway we can do this from command line ..my main idea is to automate
changing passwords...
Hi

sc.exe maybe:


C:\>sc.exe config /?
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc config [service name] <option1> <option2>...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
[snip]
password= <password>



For WinXP and Win2k3 Server, SC.exe is built in. Look up SC.exe in
the computer's "Help and Support Center".


For Win2k:

Many of the ResKit utilities, including SC.EXE are available free at:

ftp://ftp.microsoft.com/reskit/win2000/

and

http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

More about SC here:
Sc.exe: Service Controller Tool
http://www.tburke.net/info/reskittools/topics/sc.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top