Note that you want the SC that comes with Windows Server
2003 SP1 if you have Windows Server 2003 SP1 Servers since there was a change in
the SCuM ACL.
Also my svcutl knows how to handle that ACL as well and
allow you to stop/start with delegated perms.
To delegate the perms use subinacl
/service
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh Parmar
Sent: Saturday, January 21, 2006 2:52 AM
To: [email protected]
Subject: Re: [ActiveDir] OT: Script Request - Restart Remote Service
Yup,
SC \\remoteserver stop myservice
SC \\remoteserver start myservice
* Assumes user or app running SC has enought rights to manage service remotely.
Note: It doesn't handle auto management for dependent services, same as other posted scripts
I have _vbscript_ to handle dependent services as well (put somewhere, need
to find)
if you need it let me know
--
Kamlesh
On 1/20/06, Darren
Mar-Elia <[EMAIL PROTECTED]>
wrote:
Sc.exe is an easy command-line utility for managing local and remote
services. Comes with the OS.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of Mark Parris
Sent: Friday, January 20, 2006 8:06 AM
To: ActiveDir.org
Subject: [ActiveDir] OT: Script Request - Restart Remote Service
Does anyone have a nice applet to enable the remote manual restart of a
service on a server? The service permissions have been delegated as the
app that uses it is not very good and needs to be restarted numerous
times a day - it never hangs so the inbuilt stuff is no good.
I have had a look but can find no examples to achieve my end goal.
Regards,
Mark
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Be the change you want to see in the World"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
