Re: Change Username/Password for an existing Windows Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Scott Swigart (scott_at_3leaf.com)
Date: 11/28/04


Date: Sun, 28 Nov 2004 14:24:38 -0800

On windows XP, you can use the "sc" command line utility, such as:

sc config MyService obj= UserName password= newPassword

You can use Process.Start to run this command.

-- 
Scott Swigart
http://blog.swigartconsulting.com
"Scott Lezberg (Deltek)" <slezberg@ma.deltek.com> wrote in message 
news:O4BUw3X1EHA.1292@TK2MSFTNGP10.phx.gbl...
> Does anyone have any sample code on how to change a username/password for 
> an existing Windows service?
>
> Thanks
>
> Scott
> 


Relevant Pages

  • Re: Copy an ide hard disk
    ... Hi, Scott. ... Depending on the many facts you didn't tell us, it can be as simple as using Windows Explorer's Copy command - or as complex as a third-party application, as Malke said. ... an ide hard disk to a larger one using the desktop pc. ...
    (microsoft.public.windows.vista.hardware_devices)
  • Changing inetpub directory location to alternate drive.
    ... directory to a different drive letter, ... the copy command I get a message that tells me one of the ... This is IIS 5.1 in Windows XP. ... Scott ...
    (microsoft.public.inetserver.iis)
  • RE: re-setting boot partition
    ... Description of the Windows 2000 Recovery Console ... For a Microsoft Windows XP version of this article, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Win2000 Upgrade to SP3 Express Setup error.
    ... Start your computer with the Windows Setup floppy disks, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ... you cannot copy a file from the local hard disk to a floppy disk. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)