Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

November 03, 2003 12:00 AM

How can I force Group Policy to refresh on a Windows Server 2003 or Windows XP machine?

Windows IT Pro
InstantDoc ID #40695
Rating: (10)

A. To manually force Group Policy to refresh under Windows 2000, you use the command

secedit /refreshpolicy

Microsoft has replaced this command in Windows 2003 and XP with this command:

gpupdate

You can run this command without any switches to update both machine and user policies. When you run Gpupdate on Windows 2003, the machine will display the following:

Refreshing Policy... User Policy Refresh has completed.
Computer Policy Refresh has completed. To check for errors in policy processing, review the event log.

The last line doesn't appear on XP machines. To update only the user command components, type

gpupdate /target:user

To load only the computer command components, type

gpupdate /target:computer

The optional switches that you can use with the Gpupdate command are

  • /Force. This switch loads all policy settings rather than just those that have changed.
  • /Wait:<time>. This switch specifies the amount of time to wait for the policy processing to finish before returning to the command prompt.
  • /Logoff. This switch causes the user to log off after Group Policy refreshes.
  • /Boot. This switch causes a reboot after Group Policy refreshes.
  • /Sync. This switch synchronously (i.e., in the background) applies the next boot or user logon policy (the system will prompt you to log off or reboot, depending on the /target setting).

 To learn more about using Group Policy effectively, see these resources:
"How can I modify Group Policy's refresh interval?"
"Review: GPExpert Troubleshooting Pak 1.0"
"Access Denied: Discouraging Admins from Unnecessarily Using Their Privileges"
"Deploying Office 2007 and Managing VPNs with Group Policy"

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Aug 23, 2005

    very usefull great stuff

  • Anonymous User
    7 years ago
    Jan 07, 2005

    Is there any way I can get logged backon to a administrater if Iwas logged off and don't know the adminstrater name or pass word?My brother logged of of my pc andi can't get back to my desk top.

    patricia -November 03, 2003

    You can also boot your computer with ERD Commander 2002 disk and it will let you view and change the administrator passowrd.

    Good luck.

    Gundam Nataku

  • FlyingZ
    8 years ago
    Aug 30, 2004

    Use ultimate boot cd with locksmith on it and change the admin password. http://www.windowsubcd.com/

  • Kris Wiggins
    8 years ago
    Mar 30, 2004

    Exactly what I was looking for

  • Patricia
    9 years ago
    Nov 03, 2003

    Is there any way I can get logged backon to a administrater if Iwas logged off and don't know the adminstrater name or pass word?My brother logged of of my pc andi can't get back to my desk top.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.