Update group policies by command on a Windows client

Users who work in a network with their PC or notebook usually obtain central settings (group guidelines) from their domain controller . On the DC, these group guidelines are created either for computers or users, depending on the setting.

Changes to group policies, however, do not immediately affect the Windows clients. By default, a Windows computer updates and uses the GPOs from the domain controller every 90 minutes . Restarting a PC forces the PC to immediately process the latest group guidelines and is often the first choice.

Update group policies by command

It can also be done simply by issuing the command


used. GPUPDATE updates several group policy settings of the local client and also brings some parameters that we would like to explain in more detail here.

Gpupdate / force parameter

The command

gpupdate / force

is usually the first choice to update the users and computers GPOs of the local client.

gpupdate force

After executing the ” gpupdate / force ” command , the group policies are updated immediately and acknowledged with the following message.

The computer policy update was completed successfully.
User policy update completed successfully.

Since no changes have been made to the group guidelines in this example, the update does not require a new registration or restart of the PC. This can be necessary if the changes are to take effect immediately. In this case, a corresponding message appears.

Gpupdate / target parameter

You can also control whether you only want to update the Computer Policy or the User Policy. You then use the following command:

gpupdate / target: COMPUTER or USER

Update / logoff parameter

About the command

update / logoff

you can control whether a user login should take place automatically after the group policy has been successfully updated. However, this logout only takes place if it is recognized during the GPO update that the changes make it absolutely necessary for the user to log on again.

Gpupdate / boot parameter

Similar to the logoff parameter, the command can

gupdate / boot

be used to automatically initiate a Windows system restart after processing the current GPOs . This restart is only carried out if the processing of the group guidelines shows that a restart is absolutely necessary.

You can find more information about “Group Policy” here:

– Log on to another domain – Change the default domain via GPO
– Save and restore local group policies –
Start Windows services via group policy
– Reset the local GPOs completely using a command