Solved

gpupdate /force prompts for a reboot

Posted on 2010-09-15
9
2,008 Views
Last Modified: 2012-05-10
I'm running the command "gpupdate /force" on my login script. I get this error:

Refreshing Policy...

User Policy Refresh has completed.
Computer Policy Refresh has completed.

Certain Computer policies are enabled that can only run during startup.

OK to Reboot?. (Y/N)

I've tried hitting "yes" but I keep getting the same error.  It appears to be a rights issue because I logged in as me with network administrator rights and I did not get the error.  I did narrow it down to something in the Default Domain Policy. If I run the gpudate without the /force option it finishes and closes, but I'm not sure what the repercussions are of taking off that switch. Ideas?
0
Comment
Question by:Stevenscs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 16

Accepted Solution

by:
uescomp earned 167 total points
ID: 33683419
if your running gpupdate /force on the server you probably will get an error message due to the features on the server that would like a reason for the restart etc, on all servers they wont let you shut down/restart until you hit restart/shutdown (select it) a second time and lets you put in notes on why you are doing so.

Otherwise there is not much of a difference, using force just basically is a backup with the restart because rebooting the pc will update the policy.
0
 
LVL 33

Assisted Solution

by:Todd Gerbert
Todd Gerbert earned 167 total points
ID: 33683449
That's expected behavior when using the /force switch.
You shouldn't need to run gpupdate in your login script, group policies are already being processed at computer startup and user login.
0
 
LVL 6

Expert Comment

by:Inderjeetjaggi
ID: 33683463
Users dont have rights on local computer which might be causing this issue.
Check if below article helps you

http://www.security-forums.com/viewtopic.php?t=58482

http://www.pcreview.co.uk/forums/thread-1533511.php
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 47

Assisted Solution

by:Donald Stewart
Donald Stewart earned 166 total points
ID: 33683488
Go over...
 
 
 Changing the Group Policy Refresh Interval
http://technet.microsoft.com/en-us/library/cc757597(WS.10).aspx 
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 33683492
Just to clarify...if you run "gpupdate" the group policy processing client attempts to perform optimizations and only processes what it believes has changed, the "/force" switch causes it to always re-process all policies whether they've changed or not.  Depending on what your policies are will determine if a reboot is needed, and the "/boot" switch - which is what I believe usecomp is referring to - will cause an automatic restart if gpupdate deems it necessary.
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 33683569
In addition to background updates, computer Group Policy is always updated when the system starts.
In addition to background updates, Group Policy for users is always updated when users log on.
http://technet.microsoft.com/en-us/library/cc757597(WS.10).aspx
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 33683606
Didnt I just post that link?
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 33683620
Didn't realize it was the same document...just reinforcing that gpupdate is redundant in a login script.
0
 

Author Closing Comment

by:Stevenscs
ID: 33683937
Thank a lot, you guys are great!
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question