chinn wrote:
> 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...ls/default.asp
More about SC here:
Sc.exe: Service Controller Tool
http://www.tburke.net/info/reskittools/topics/sc.htm
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/com...r/default.mspx