Group Policy settings Related command line immediate effect tips

Source: Internet
Author: User
Tags valid gpupdate

Pupdate Refresh Group Policy settings (make Group Policy effective immediately)

After you modify Group Policy in Windows, restarting the computer enables Group Policy to take effect, but you can use the gpupdate command to refresh Group Policy immediately to set up production.

The gpupdate command refreshes the local Group Policy settings and the Group Policy settings based on Active Directory, including the security settings on the computer on which the command is run. You can use GPUpdate to refresh the policy locally on a computer that has Windows XP and a later version. On a computer running Windows 2000, you can provide this functionality by using the secedit command with the/refreshpolicy option.

Grammar

Gpupdate [/target:{computer User}] [/force] [/wait:value] [/logoff] [/boot]

Parameters

/target:{computer User}

Only the computer settings or the current User settings are processed. By default, both computer settings and user settings are processed.

/force

Ignore all processing optimizations and reapply all settings. The Group Policy engine on the client tracks the version of the GPO that is applied to users and computers. By default, if no GPO version changes and the list of GPOs remains the same, the Group Policy engine will not re-process the policy. This option overrides this optimization feature and forces the Group Policy engine to re-process all policy information.

/wait:value

The number of seconds that the policy processing waits to complete. The default value is 600 seconds. 0 means "Do not Wait", and 1 means "wait indefinitely".

/logoff

The refresh is complete before you log off. This option is required for those Group Policy client extensions (for example, user software Installation and folder redirection) that are not processed during the background refresh cycle and are processed when the user logs on. This option is not valid if you have not called an extension that requires the user to log off.

/boot

Restart the computer after the refresh is complete. This option is required for those Group Policy client extensions that are not processed during the background refresh cycle and are processed when the computer starts up (for example, computer software installation). This option is not valid if you have not called an extension that requires you to restart your computer.

/?

Displays help at the command prompt.

Comments

If a syntax error occurs, a syntax summary is displayed in a manner similar to that of the Help topic.

Example

The following example shows how to use the gpupdate command:

GPUpdate

Gpupdate/target:computer

gpupdate/force/wait:100

Gpupdate/boo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.