DEV Community

Victor James
Victor James

Posted on • Originally published at windowscmd.com on

GPUPDATE

GPUPDATE

GPUPDATE

The GPUPDATE windows command-line tool is used to update Group Policy settings.

CMD Line

CMD Line is a text-based interface that transfers the command from the user to the OS.

CLI-Command Line Interpreter

The command-line interpreter (CLI) for windows is CMD.EXE. Also, you can use PowerShell which can automize many system administration tasks and these tasks are not approachable in command prompt. With the help of the CLI, you can communicate with your system by typing the text in commands. As a result, your system answers to the text that you have typed previously, and then the user can proceed with the next command line that shows up.

To open the Run command Window

Run command window helps you to run programs, open the files and folders. And there are several ways to open up the run command dialog box. This run command box is useful for you to head straight to the destined program easily.

By using the Keyboard shortcut Key:

WINDOWS+R

The shortcut key method to the run command box is the most commonly used one. Also, this method is in all versions of Windows. You need to press the Windows+ R key concurrently to open the Run command dialog box.

Run command box
Run command box

What does the GPUPDATE command do?

The GPUPDATE windows command-line tool is used to update the Group Policy settings. This command updates the computer’s local group policy.

Syntax


GPUpdate [/Force] [/Logoff] [/Boot] [/Sync]
           [/Target:{Computer | User}] [/Wait:value]

Enter fullscreen mode Exit fullscreen mode

Parameter Explanation

  • /Force – Applies all policy settings, not just those that have changed.
  • /Logoff – To logoff after the Group Policy settings have been updated. Some group policy client-side extensions are only processed when a user logs on.
  • /BootRestarts after the Group Policy settings are applied. Some group policy client-side extensions are only processed at startup.
  • /Sync – Applies the next foreground policy synchronously (in the background). This can be applied to computer boot and/or user logon.
  • /Target: – Update only User or only Computer policy settings , default = both
  • /Wait: – The number of seconds to wait for policy processing.
    • ‘0’ = do not wait.
    • ‘-1’ = wait indefinitely. Default = 600 (10 minutes)
  • The command prompt returns, if the time limit is surpassed, but the policy processing continues.

Note: The /Logoff and /Boot will have no issue if there are no client-side extensions called that require a logoff/reboot. The /Force and /Wait parameters will be ignored if /sync is specified.

The GPUPDATE will not take away an existing setting where the policy is set up to “not configured ”.

Examples

  • To execute a background update to install any new Group Policy settings, use

C:\> GPUpdate

Enter fullscreen mode Exit fullscreen mode
  • You can use this in order to force a background update of all Group Policy settings, regardless of whether they have changed

C:\> GPUpdate /Force

Enter fullscreen mode Exit fullscreen mode

Verdict

Hope through this you get to know about the GPUDATE windows command-line tool, which is to update Group Policy settings. To know more about the windows command, visit our website. If you have any suggestions regarding this article, let us know in the comment section, we will update it to you shortly.

Related articles

  • GPUPDATE The GPUPDATE windows command-line tool is used to update the Group Policy settings.
  • FTYPE The FTYPE windows command-line tool is to display or else changes File type utilized in extension file associations. FTYPE is an Internal command.
  • GETMAC The GETMAC windows command-line tool is to display the Media Access Control (MAC) address and a list of network protocols.
  • GPRESULT The GPRESULT windows command-line tool is to display the Resultant Set of Policy information.
  • GOTO The GOTO windows command-line tool is to direct a batch program to jump to a labeled line. This command directs the command processing to a line that is identified by a label within a batch program.

The post GPUPDATE appeared first on Windows Commands- SS64 Commands.

Discussion (0)