Re: Starting services at command line with admin password?
- From: "Steven L Umbach" <n9rou@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Jan 2006 23:37:26 -0600
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).
.
- Follow-Ups:
- Re: Starting services at command line with admin password?
- From: David Kerber
- Re: Starting services at command line with admin password?
- References:
- Starting services at command line with admin password?
- From: David Kerber
- Starting services at command line with admin password?
- Prev by Date: Re: lsass.exe in CPU loop when logging in
- Next by Date: Re: GPMC installation
- Previous by thread: Starting services at command line with admin password?
- Next by thread: Re: Starting services at command line with admin password?
- Index(es):
Relevant Pages
|