Location: Mail List

Ads

Skyscraper

The GPTalk Mailing List

The GPTALK mailing list is where you can send and receive email related to Windows Group Policy. You must subscribe to the list to send and receive mail from the list. The purpose of the list is to provide a forum for asking and answering technical questions related to Group Policy. Any question is fair game as long as it is related to Windows Group Policy.  The Archives for this list can be found on this page.

 

List Posts

Subject: [gptalk] Rebooting Computers Via GPO
Prev Next
You are not authorized to post a reply.

AuthorMessages
Martin_HugoUser is Offline

Posts:26

08/26/2011 9:27 PM  
Hi All,

I am attempting to reboot all my Windows 7 Domain Computers via GPO. So far I have tried Gp Prefs and a scheduled task and it failed (both .bat and .cmd). When running the .bat or .cmd manually from a workstation I see a prompt asking me to confirm if I want to run the file so I am guessing this is also happening to the scheduled task and that is why it is failing.

Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R arguments and that didn't work either.

Everything is being run as SYSTEm and with highest privileges.

Any thoughts/pointers?

TIA

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)




dmareliaUser is Offline

Posts:441

08/26/2011 9:44 PM  
Martin-
There are limitations in how shutdown can run in an unattended way, esp. as localSystem. I've coded around this in the past by adding the user right "Shutdown The System" to the process running the shutdown command. Check to see if LocalSystem has this user right as defined in the local GPO. That may help. If not, you may need to try it as per-user--ultimately that is what I had to do to make it work.

Darren

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com] On Behalf Of Martin Hugo
Sent: Friday, August 26, 2011 1:27 PM
To: 'gptalk@lists.gpoguy.com'
Subject: [gptalk] Rebooting Computers Via GPO

Hi All,

I am attempting to reboot all my Windows 7 Domain Computers via GPO. So far I have tried Gp Prefs and a scheduled task and it failed (both .bat and .cmd). When running the .bat or .cmd manually from a workstation I see a prompt asking me to confirm if I want to run the file so I am guessing this is also happening to the scheduled task and that is why it is failing.

Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R arguments and that didn't work either.

Everything is being run as SYSTEm and with highest privileges.

Any thoughts/pointers?

TIA

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)




Martin_HugoUser is Offline

Posts:26

08/26/2011 9:49 PM  
Thanks for the prompt response, I will give that a try.

Marty

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com] On Behalf Of Darren Mar-Elia
Sent: Friday, August 26, 2011 4:44 PM
To: gptalk@lists.gpoguy.com
Subject: RE: [gptalk] Rebooting Computers Via GPO

Martin-
There are limitations in how shutdown can run in an unattended way, esp. as localSystem. I've coded around this in the past by adding the user right "Shutdown The System" to the process running the shutdown command. Check to see if LocalSystem has this user right as defined in the local GPO. That may help. If not, you may need to try it as per-user--ultimately that is what I had to do to make it work.

Darren

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com] On Behalf Of Martin Hugo
Sent: Friday, August 26, 2011 1:27 PM
To: 'gptalk@lists.gpoguy.com'
Subject: [gptalk] Rebooting Computers Via GPO

Hi All,

I am attempting to reboot all my Windows 7 Domain Computers via GPO. So far I have tried Gp Prefs and a scheduled task and it failed (both .bat and .cmd). When running the .bat or .cmd manually from a workstation I see a prompt asking me to confirm if I want to run the file so I am guessing this is also happening to the scheduled task and that is why it is failing.

Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R arguments and that didn't work either.

Everything is being run as SYSTEm and with highest privileges.

Any thoughts/pointers?

TIA

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)




nsuljicUser is Offline

Posts:1

08/26/2011 10:54 PM  
I have been able to get it to work via scheduled task. I restart aprox. 200
computers every Monday morning at 4AM.

When you create the task use these settings:

Run: c:\windows\system32\shutdown.exe
Arguments; -f -r
Run as Administrator
Scheduled task runs at specified time: Enabled

Set your day/time.
Wake the computer to run this task: Enabled

Thanks,
Nermin





On Fri, Aug 26, 2011 at 3:45 PM, Martin Hugo <Martin_Hugo@hboe.org> wrote:

> Thanks for the prompt response, I will give that a try.
>
> Marty
>
> -----Original Message-----
> From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
> On Behalf Of Darren Mar-Elia
> Sent: Friday, August 26, 2011 4:44 PM
> To: gptalk@lists.gpoguy.com
> Subject: RE: [gptalk] Rebooting Computers Via GPO
>
> Martin-
> There are limitations in how shutdown can run in an unattended way, esp. as
> localSystem. I've coded around this in the past by adding the user right
> "Shutdown The System" to the process running the shutdown command. Check to
> see if LocalSystem has this user right as defined in the local GPO. That may
> help. If not, you may need to try it as per-user--ultimately that is what I
> had to do to make it work.
>
> Darren
>
> -----Original Message-----
> From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
> On Behalf Of Martin Hugo
> Sent: Friday, August 26, 2011 1:27 PM
> To: 'gptalk@lists.gpoguy.com'
> Subject: [gptalk] Rebooting Computers Via GPO
>
> Hi All,
>
> I am attempting to reboot all my Windows 7 Domain Computers via GPO. So
> far I have tried Gp Prefs and a scheduled task and it failed (both .bat and
> .cmd). When running the .bat or .cmd manually from a workstation I see a
> prompt asking me to confirm if I want to run the file so I am guessing this
> is also happening to the scheduled task and that is why it is failing.
>
> Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R
> arguments and that didn't work either.
>
> Everything is being run as SYSTEm and with highest privileges.
>
> Any thoughts/pointers?
>
> TIA
>
> Martin T. Hugo
> Network Administrator
> Hilliard City Schools
> 614-921-7102 (Ph)
> 614-771-7243 (Fax)
>
>
>
>
>

HarjUser is Offline

Posts:2

01/12/2012 5:35 PM  
Great free tool out there called Specops Gpupdate that allows you to do this remotely without having to script.
The paid version even allows you to schedule any restarts, shutdowns, or restarts.

http://www.specopssoft.com/products/specops-gpupdate-professional


HARJ SINGH : SENIOR PRODUCT SPECIALIST

Specops Software | 532 Front St. W | Toronto, ON M5V 1B8
Phone: 1-877-SPECOPS (773 2677) | Direct: 647-727-4019 | Fax: 1-866-747-5327
harj.singh@specopssoft.com<mailto:harj.singh@specopssoft.com> | www.specopssoft.com<http://www.specopssoft.com/>

[Description: cid:image001.png@01CC2136.14E1E180]

From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com] On Behalf Of Nermin Suljic
Sent: Friday, August 26, 2011 5:52 PM
To: gptalk@lists.gpoguy.com
Subject: Re: [gptalk] Rebooting Computers Via GPO

I have been able to get it to work via scheduled task. I restart aprox. 200 computers every Monday morning at 4AM.

When you create the task use these settings:

Run: c:\windows\system32\shutdown.exe
Arguments; -f -r
Run as Administrator
Scheduled task runs at specified time: Enabled

Set your day/time.
Wake the computer to run this task: Enabled

Thanks,
Nermin





On Fri, Aug 26, 2011 at 3:45 PM, Martin Hugo <Martin_Hugo@hboe.org<mailto:Martin_Hugo@hboe.org>> wrote:
Thanks for the prompt response, I will give that a try.

Marty

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com<mailto:gptalk-owner@lists.gpoguy.com> [mailto:gptalk-owner@lists.gpoguy.com<mailto:gptalk-owner@lists.gpoguy.com>] On Behalf Of Darren Mar-Elia
Sent: Friday, August 26, 2011 4:44 PM
To: gptalk@lists.gpoguy.com<mailto:gptalk@lists.gpoguy.com>
Subject: RE: [gptalk] Rebooting Computers Via GPO

Martin-
There are limitations in how shutdown can run in an unattended way, esp. as localSystem. I've coded around this in the past by adding the user right "Shutdown The System" to the process running the shutdown command. Check to see if LocalSystem has this user right as defined in the local GPO. That may help. If not, you may need to try it as per-user--ultimately that is what I had to do to make it work.

Darren

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com<mailto:gptalk-owner@lists.gpoguy.com> [mailto:gptalk-owner@lists.gpoguy.com<mailto:gptalk-owner@lists.gpoguy.com>] On Behalf Of Martin Hugo
Sent: Friday, August 26, 2011 1:27 PM
To: 'gptalk@lists.gpoguy.com<mailto:gptalk@lists.gpoguy.com>'
Subject: [gptalk] Rebooting Computers Via GPO

Hi All,

I am attempting to reboot all my Windows 7 Domain Computers via GPO. So far I have tried Gp Prefs and a scheduled task and it failed (both .bat and .cmd). When running the .bat or .cmd manually from a workstation I see a prompt asking me to confirm if I want to run the file so I am guessing this is also happening to the scheduled task and that is why it is failing.

Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R arguments and that didn't work either.

Everything is being run as SYSTEm and with highest privileges.

Any thoughts/pointers?

TIA

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102<tel:614-921-7102> (Ph)
614-771-7243<tel:614-771-7243> (Fax)





DarraghOShaughnessyUser is Offline

Posts:177

01/12/2012 5:35 PM  
I used this in my lab but I found it didn't prompt me to reboot and just
rebooted the machines! Dangerous if you use it at the OU level. Perhaps
things have changed in this release.



From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
On Behalf Of Harj Singh
Sent: 08 September 2011 16:03
To: gptalk@lists.gpoguy.com
Subject: RE: [gptalk] Rebooting Computers Via GPO



Great free tool out there called Specops Gpupdate that allows you to do this
remotely without having to script.

The paid version even allows you to schedule any restarts, shutdowns, or
restarts.



http://www.specopssoft.com/products/specops-gpupdate-professional





HARJ SINGH : SENIOR PRODUCT SPECIALIST



Specops Software | 532 Front St. W | Toronto, ON M5V 1B8

Phone: 1-877-SPECOPS (773 2677) | Direct: 647-727-4019 | Fax: 1-866-747-5327

harj.singh@specopssoft.com | <http://www.specopssoft.com/>
www.specopssoft.com



Description: cid:image001.png@01CC2136.14E1E180



From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
On Behalf Of Nermin Suljic
Sent: Friday, August 26, 2011 5:52 PM
To: gptalk@lists.gpoguy.com
Subject: Re: [gptalk] Rebooting Computers Via GPO



I have been able to get it to work via scheduled task. I restart aprox. 200
computers every Monday morning at 4AM.



When you create the task use these settings:



Run: c:\windows\system32\shutdown.exe

Arguments; -f -r

Run as Administrator

Scheduled task runs at specified time: Enabled



Set your day/time.

Wake the computer to run this task: Enabled



Thanks,
Nermin











On Fri, Aug 26, 2011 at 3:45 PM, Martin Hugo <Martin_Hugo@hboe.org> wrote:

Thanks for the prompt response, I will give that a try.

Marty


-----Original Message-----
From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
On Behalf Of Darren Mar-Elia
Sent: Friday, August 26, 2011 4:44 PM
To: gptalk@lists.gpoguy.com

Subject: RE: [gptalk] Rebooting Computers Via GPO

Martin-
There are limitations in how shutdown can run in an unattended way, esp. as
localSystem. I've coded around this in the past by adding the user right
"Shutdown The System" to the process running the shutdown command. Check to
see if LocalSystem has this user right as defined in the local GPO. That may
help. If not, you may need to try it as per-user--ultimately that is what I
had to do to make it work.

Darren

-----Original Message-----
From: gptalk-owner@lists.gpoguy.com [mailto:gptalk-owner@lists.gpoguy.com]
On Behalf Of Martin Hugo
Sent: Friday, August 26, 2011 1:27 PM
To: 'gptalk@lists.gpoguy.com'
Subject: [gptalk] Rebooting Computers Via GPO

Hi All,

I am attempting to reboot all my Windows 7 Domain Computers via GPO. So far
I have tried Gp Prefs and a scheduled task and it failed (both .bat and
.cmd). When running the .bat or .cmd manually from a workstation I see a
prompt asking me to confirm if I want to run the file so I am guessing this
is also happening to the scheduled task and that is why it is failing.

Then I tried a Gp Pol that runs c:\windows\system32\shutdown.exe with -F -R
arguments and that didn't work either.

Everything is being run as SYSTEm and with highest privileges.

Any thoughts/pointers?

TIA

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)







You are not authorized to post a reply.
Forums >GPTalk >GPTalk Mailing List > [gptalk] Rebooting Computers Via GPO



ActiveForums 3.7

Members

MembershipMembership:
Latest New UserLatest:carmicklec
New TodayNew Today:1
New YesterdayNew Yesterday:1
User CountOverall:1399

People OnlinePeople Online:
VisitorsVisitors:0
MembersMembers:0
TotalTotal:0

Online NowOnline Now:

Ads

Banner Inv
Copyright 2009 by GPOGUY.COM
Terms Of Use