Re: Starting services at command line with admin password?



You can use runas at the command line if you want to do it while you are
logged on. Use runas /? to find runas syntax. There are third party
utilities such as cpau from Joeware.net that may be able to do what you want
in a batch file that can also encode the user credentials. See the link
below if interested in cpau. --- Steve

http://www.joeware.net/win/free/tools/cpau.htm


"David Kerber" <ns_dkerber@xxxxxxxxxxxxxxxx> wrote in message
news:MPG.1e414c13f92fc252989688@xxxxxxxxxxxxxxxxxxxxx
> Running Win2K Server.
>
> I want to be able to start and stop services from a batch (.cmd) file,
> without having to logoff as the normal user and log back on as
> administrator. I know I can start the services control panel as the
> administrator and start and stop services manually, but I really want to
> do this from a command line.
>
> Unfortunately, the NET START/STOP command doesn't seem to have any kind
> of user ID/password option to specify a user which has permissions to
> start and stop services. I also don't want to give the normal user
> login permissions to start and stop services.
>
> The reasons I want to do it this way are rather long-winded, so I won't
> go into them here, but could if necessary to get the answer I need.
>
>
> --
> Remove the ns_ from if replying by e-mail (but keep posts in the
> newsgroups if possible).


.



Relevant Pages

  • RUNAS /SAVECRED is huge security hole
    ... The documentation for the RUNAS command states: ... Next time the same command line / shortcut is invoked, the saved administrator ... Summer's Hottest Certification Just Got HOTTER! ...
    (NT-Bugtraq)
  • Re: runas "net use" - result "Unavailable"
    ... If you use runas /u:administrator "net use", you shall see that the connection is available. ... Fof example if I launch new cmd window as administrator: ... When new cmd window is created I use command: ...
    (microsoft.public.win32.programmer.networks)
  • Re: Programs installed in one user not available under other
    ... and the create a shortcut to the batch file to execute the command line ... You can also type "runas /?" ... > my daughter logs in, i.e. Palm Desktop, internet ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Programs installed in one user not available under other
    ... and the create a shortcut to the batch file to execute the command line ... You can also type "runas /?" ... > my daughter logs in, i.e. Palm Desktop, internet ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Using RegWrite fails in Vista with RunAs Command
    ... I am not sure where the conclusion that most setup programs don't work on ... Windows Vista. ... different about the right click and executing the command interpreter ... runas but I've tried all combinations of /profile and /env. ...
    (microsoft.public.scripting.wsh)