[gptalk] Re: change a service through group policy

  • From: "Darren Mar-Elia" <darren@xxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Fri, 27 Jun 2008 13:33:45 -0700

Create a scheduled task that runs a simple batch file:

 

Net stop "service"

Net start "service"

 

The batch file could be in central location or you could use the GP
Preferences file copy feature to get it to every machine ahead of time.

 

You could also just use two sc.exe commands in two scheduled tasks to do the
same thing without having to deal with a batch file.

 

Darren

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Dave Palombi
Sent: Friday, June 27, 2008 1:29 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: change a service through group policy

 

How would I be able to do that?

On Fri, Jun 27, 2008 at 4:28 PM, Darren Mar-Elia <darren@xxxxxxxxxx> wrote:

Dave-

It will be tough to do this using "normal" policy without a reboot or some
kind of triggering action. However, if you are in a position to deploy the
Group Policy Preferences product, then you could use that product's ability
to create Scheduled Tasks via GP to push a scheduled task to machines that
does the restart for you.

 

Darren

 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Dave Palombi
Sent: Friday, June 27, 2008 1:25 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] change a service through group policy

 

Hello,

I would like to know if you can restart a service using group policy.  Now
the computer never gets rebooted and I have no access to the local drive as
well.  How would I be able to accomplish this?  If there is a better way,
please let me know.

Thanks,

Dave

 

Other related posts: