stopping service

  • Thread starter Thread starter Chas
  • Start date Start date
C

Chas

I need to stop a service from a user account. I do not want to switch to an
admin account. I know my admin account name and password. What command can
I issue to stop a service from a user account?
 
These may help.

http://support.microsoft.com/default.aspx?scid=kb;en-us;288129
http://www.microsoft.com/downloads/...56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I need to stop a service from a user account. I do not want to switch to
an
| admin account. I know my admin account name and password. What command
can
| I issue to stop a service from a user account?
|
|
 
Chas said:
I need to stop a service from a user account. I do not want
to switch to an admin account. I know my admin account name
and password. What command can I issue to stop a service
from a user account?
Hi,

Relevant for Windows XP/Win2k3 Server also:

HOW TO: Grant Users Rights to Manage Services in Windows 2000
http://support.microsoft.com/?kbid=288129


For method 3 in the article above:

A new, bug-fixed version of SubInACL.exe is available for download here
(Win2k/WinXP/Win2k3):

http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b

SETACL (freeware) at http://setacl.sourceforge.net/ can also set permissions
on local or remote Win32 services.
 
The user cannot stop the service. I do not want to give the user account
access to stopping the service. I need a script that will stop the service,
having admin privilege while logged as a user.
 
The user cannot stop the service. I do not want to grant the user account
access to stopping the service. I need a script that will stop the service,
having admin privilege while logged as a user.

Somehow, can't a command window be opened, issue an admin "command",
stop/start a service, then return as the user? All in a script.
 
The user cannot stop the service. I do not want to grant the user account
access to stopping the service. I need a script that will stop the service,
having admin privilege while logged as a user.

Somehow, can't a command window be opened, issue an admin "command",
stop/start a service, then return as the user? All in a script. This would
be portable or accessed from a secured area. I don't have a problem placing
the password in the script, because the script would be secured.
 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| The user cannot stop the service. I do not want to grant the user account
| access to stopping the service. I need a script that will stop the
service,
| having admin privilege while logged as a user.
|
| Somehow, can't a command window be opened, issue an admin "command",
| stop/start a service, then return as the user? All in a script. This
would
| be portable or accessed from a secured area. I don't have a problem
placing
| the password in the script, because the script would be secured.
 
Charlie said:
The user cannot stop the service. I do not want to grant the user account
access to stopping the service. I need a script that will stop the service,
having admin privilege while logged as a user.

Somehow, can't a command window be opened, issue an admin "command",
stop/start a service, then return as the user? All in a script.
Hi,

Different RunAs products listed here, some free and some not, some
with encryption option for the password as well:

http://groups.google.co.uk/[email protected]

Other ones not mentioned in the link above:

SUperior SU (free, has a command line iterface)
http://www.stefan-kuhr.de/supsu/main.php3

LSrunas/LSrunasE (the latter with password encryption)
http://www.linkselection.com/lsrunas.asp

You may also want to check out PolicyMaker Application Security
(previously NeoExec), the main difference is that it does not require
the use of a second account, as most other RunAs derivatives requires.

PolicyMaker Application Security
http://www.desktopstandard.com/PolicyMakerApplicationSecurity.aspx
 
This looks like what I need. I can put the runas command with a net stop in
a command file. How can I include a password without it prompting?
 
thanks

Torgeir Bakken (MVP) said:
Hi,

Different RunAs products listed here, some free and some not, some
with encryption option for the password as well:

http://groups.google.co.uk/[email protected]

Other ones not mentioned in the link above:

SUperior SU (free, has a command line iterface)
http://www.stefan-kuhr.de/supsu/main.php3

LSrunas/LSrunasE (the latter with password encryption)
http://www.linkselection.com/lsrunas.asp

You may also want to check out PolicyMaker Application Security
(previously NeoExec), the main difference is that it does not require
the use of a second account, as most other RunAs derivatives requires.

PolicyMaker Application Security
http://www.desktopstandard.com/PolicyMakerApplicationSecurity.aspx


--
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/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top