Doppio Posted January 21, 2006 Share Posted January 21, 2006 Does anyone know if is possible to update the Group Policies without loging off?. I'm working on a scipt to dissable the control pannel, but it doesn't work unless you logout, and log back in. Thank you. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 21, 2006 Moderators Share Posted January 21, 2006 This should work: RunWait(@ComSpec & " /c " & "gpupdate /force", "", @SW_HIDE) Link to comment Share on other sites More sharing options...
Doppio Posted January 21, 2006 Author Share Posted January 21, 2006 This should work: RunWait(@ComSpec & " /c " & "gpupdate /force", "", @SW_HIDE) Thank you big_daddy, but I had already done that. Any other ideas? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 22, 2006 Moderators Share Posted January 22, 2006 Thank you big_daddy, but I had already done that. Any other ideas? I found this in the XP help file: Gpupdate Refreshes local and Active Directorybased Group Policy settings, including security settings. This command supersedes the now obsolete /refreshpolicy option for the secedit command. Syntax gpupdate [/target:{computer|user}] [/force] [/wait:value] [/logoff] [/boot] Parameters /target:{computer|user} Processes only the Computer settings or the current User settings. By default, both the computer settings and the user settings are processed. /force Ignores all processing optimizations and reapplies all settings. /wait:value Number of seconds that policy processing waits to finish. The default is 600 seconds. 0 means "no wait"; -1 means "wait indefinitely." /logoff Logs off after the refresh has completed. This is required for those Group Policy client-side extensions that do not process on a background refresh cycle but that do process when the user logs on, such as user Software Installation and Folder Redirection. This option has no effect if there are no extensions called that require the user to log off. /boot Restarts the computer after the refresh has completed. This is required for those Group Policy client-side extensions that do not process on a background refresh cycle but that do process when the computer starts up, such as computer Software Installation. This option has no effect if there are no extensions called that require the computer to be restarted. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now