gpupdate
This page is from Microsoft
Refreshes local Group Policy settings and Group Policy settings
that are stored in Active Directory, 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 equals no
wait, and -1 equals 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 Group Policy 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 Group
Policy Software Installation. This option has no
effect if there are no extensions called that
require the computer to be restarted.
/?
Displays help at the command prompt.
Examples
The following examples show how you can use the gpupdate
command:
gpupdate
gpupdate /target:computer
gpupdate /force /wait:100
gpupdate /boot
Formatting legend
Italic |
Information that the user must supply |
Bold |
Elements that the user must type exactly as shown |
Ellipsis (...) |
Parameter that can be repeated several times in a
command line |
Between brackets ([]) |
Optional items |
Between braces ({}); choices separated by pipe (|).
Example: {even|odd} |
Set of choices from which the user must choose only
one |
Courier font |
Code or program output |
|
|