Sign in to follow this  
Followers 0
Doppio

Group Policy Update

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



This should work:

RunWait(@ComSpec & " /c " & "gpupdate /force", "", @SW_HIDE)

Share this post


Link to post
Share on other sites

This should work:

RunWait(@ComSpec & " /c " & "gpupdate /force", "", @SW_HIDE)
Thank you big_daddy, but I had already done that. Any other ideas?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0