Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to apply gpupdate /force in logon script

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
Im having trouble getting group policies to apply when a user logs on. For example, I have a gpo set for a user OU that sets a proxy server. The user can reboot or logon and sometimes the gpo settings are applied and sometimes they are not. If I do a gpupdate /force from a command line the settings are always applied. I cant find any other way to get the gpo to apply reliably so I thought I would put gpupdate /force in a logon script, but the gpupdate /force requires user to input a "N" to complete. I did a gpupdate /? but i dont see any way to force the "N" response. Does anybody have any ideas how to get the gpupdate to run?

thanks in advance
 
Check the event log to see why it didn't work - you may find you have an underlying issue that can be resolved rather than resorting to "cheating".
 
There are no errors being logged in the event logs. There are a couple of entries in the debug logs but none of them come up with anything when i google them.

gpresult says the gpo has been applied, but the changes are not actually made

My domain is win2003 native mode and the workstations are all XP Pro with all the updates and Service Packs installed.
 
/force isn't to be used in login scripts. /force can require a reboot. So you'd be stuck in a reboot loop.

You need to determine why they're not applying, and the group policy results wizard is where you should look.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
gpresult says that the policy is being applied. But, all the policy is doing right now is setting a proxy server. Even though gpresult claims that the gpo ran, the proxy settings are there sometimes and not there sometimes.

 
Ive done that. Its the right user and machine etc. Can anybody explain why the policy ONLY works when I run gpupdate /force? The policy is configured. According to gpresults the policy gets applied when the machine is booted and logged on, but when I check the browser the proxy is not set. When I do gpupdate /force the proxy settings are updated and it works just like magic.
 
I'm not suggesting using GPResult from a command window on the workstation. The Group Policy Results Wizard is entirely different.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top