programming4us
 
Windows
 

Windows Server 2008 : Group Policy Command-Line Tools - Refreshing Group Policy Settings with gpupdate

1/7/2014 8:02:59 PM

Group Policy settings are applied at different times for computers within a domain, as shown in the following table.

Automatic Group Policy Update IntervalsComments
When the computer starts.Group Policy settings for computers are applied when the computer starts. The logon screen appears after the settings are applied.
When the user logs on.Group Policy settings for users are applied when the user logs on. The desktop appears after the settings are applied.
At a random time every 90 to 120 minutes.After being initially applied, Group Policy settings are queried from Active Directory every 90 minutes with a random offset of 30 minutes. If there are any changes, the changes are applied.

Note

These are default times for all computers except domain controllers. Settings are reapplied to domain controllers every five minutes by default.

Every 16 hours for security settingsComputers query Active Directory every 16 hours to retrieve security settings. These are reapplied whether they have been changed or not.

You can reapply Group Policy settings to a computer using the gpupdate command. The syntax is

gpupdate [switches]

Figure 1 and the following command show the common usage of gpupdate:

gpupdate /force

Figure 1. Executing the gpupdate /force command

gpupdate SwitchesComments
gpupdate
C:\>gpupdate

This queries Active Directory for any changes in Group Policy settings and reapplies any changed settings.

Note

Although documentation indicates this is the way it works, it is inconsistent. To ensure changes are applied, you should use the gpupdate /force command.

gpupdate /force
C:\>gpupdate /force

This queries Active Directory and reapplies all policy settings, even settings that haven’t changed.
gpupdate /force /target
computer | user
C:\>gpupdate /force
/target computer
C:\>gpupdate /force
/target user

You can specify either computer or user Group Policy settings with the /target switch. With the /target computer switch, only computer Group Policy settings are reapplied. With the /target user switch, only user Group Policy settings are reapplied.
gpupdate /force /target
computer | user
C:\>gpupdate /force
/logoff

Some Group Policy settings, such as software installations, are not applied unless the user logs off and back on. The /logoff switch forces a logoff if it is necessary to apply the settings.
gpupdate /force /target
computer | user
C:\>gpupdate /force
/boot

Some Group Policy settings are not applied unless the computer shuts down and restarts. The /boot switch forces a reboot if a reboot is necessary to apply the settings.

 
Others
 
- Windows Server 2008 : Group Policy Command-Line Tools - Viewing Group Policy Settings with gpresult
- Windows Server 2008 : Group Policy Overview - Using Loopback Processing, Running Scripts with Group Policy
- Windows Server 2008 : Group Policy Overview - Blocking Inheritance, Enforcing GPOs
- Windows 7 : Updating Software - How to Remove Updates
- Windows 7 : Updating Software - How to Troubleshoot Problems Installing Updates
- Windows 7 : Updating Software - How to Verify Updates
- Windows 7 : BitLocker (part 4) - How to Disable or Remove BitLocker Drive Encryption, Troubleshooting BitLocker Problems
- Windows 7 : BitLocker (part 3) - How to Manage BitLocker Keys on a Local Computer, How to Recover Data Protected by BitLocker
- Windows 7 : BitLocker (part 2) - How to Enable BitLocker Encryption
- Windows 7 : BitLocker (part 1) - How to Use BitLocker with TPM Hardware
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- Setup Free Media Server To Stream Videos To DLNA Compatible TV, Xbox 360 & PS3 (Play Station 3)
- How To Install Android Market & Google Apps On Kindle Fire
- How To Make Ubuntu Look Like Windows 7
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8