RE: Changing Service account password

From: Shain Wray (shainw_at_microsoft.com)
Date: 11/26/03


Date: Wed, 26 Nov 2003 05:23:41 GMT

Hello Jeff,

Yes, you can do this with a tool called SC.exe. This comes with WS2003 or
is on the Resource Kit for Win2k. Here is the command you would use -

sc config <servicename> obj= "domain\user" password= "password"

Make sure you put the spaces between the equal sign and the quotation mark
for both obj= and password=.

For example -

sc config eventlog obj= "testdomain\testuser" password= "testpassword"

You should get the following return if it succeeded -
[SC] ChangeServiceConfig SUCCESS

Reference KB -

166819 Using Sc.exe and Netsvc.exe to Control Services Remotely
http://support.microsoft.com/?id=166819

Best regards,

--
Shain Wray
Microsoft PSS Security Team
This posting is provided "AS IS" with no warranties and confers no rights.
Please reply to the newsgroup so that others may benefit.  Thanks!


Relevant Pages

  • Re: Installing services with startup type auto from command prompt
    ... in the Resource Kit for Win2K, download i.a. ... normal command set in XP. ...
    (microsoft.public.win2000.setup)
  • Re: Format Hard Disk
    ... So it's like that - the 2 files reside only in the boot partition.. ... As you suggested, I opened Command ... No problem....I don't intend to use the programs existing in Win2K. ... - Buy a 100 GByte disk and install it as a slave drive. ...
    (microsoft.public.win2000.general)
  • Re: Windows 2000 rqc.exe error
    ... The problem seems to be with how rqc.exe runs under XP vs. Win2k. ... enabled logging by running the command "netsh ras set tracing * ENABLED" ... According to the rqc.log files on each client, ... the rqc.exe attempted to remove the client from Quarantine ...
    (microsoft.public.win2000.ras_routing)
  • Re: Hello, Japanese learners
    ... kanji at the command line. ... If your operating system fails to come with smooth international ... Unicode requires 32 bit support. ... This was the main problem with Win2K. ...
    (sci.lang.japan)
  • Re: Logon Failure: the user has not been granted the requested log
    ... Download and install the Windows 2003 Server Resource Kit Tools ... Type these lines at the command prompt. ... the Vista. ...
    (microsoft.public.windowsxp.network_web)