?
Solved

batch file or vb script

Posted on 2013-06-05
3
Medium Priority
?
409 Views
Last Modified: 2013-06-06
Hello Guys.

I need to launch gpupdate /force on 100 pc and i want to do it in hidden mode.

How can i do it through my domain controller (Server2003 sp2)

Thanks
0
Comment
Question by:techlabtest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39221607
batch script which loop through computers.txt run gpuupdate remotely:
For /f "Tokens=*" %%a in (computers.txt) Do (
SET Comp_name=%%a
Psexec.exe \\%comp_name% Gpupdate.exe /Target:User /force
Psexec.exe \\%comp_name% Gpupdate.exe /Target:Computer /force
}

Open in new window


based on http://support.microsoft.com/kb/556027
0
 
LVL 24

Accepted Solution

by:
Sandeshdubey earned 2000 total points
ID: 39221631
What is the policy you have applied why do you want to run gpupdate /force.There are certain policy which will not take effect unless to reboot the client computer if policy is applied computer based or if the policy is applied to users then you need to relogin.

By default, computer Group Policy is updated in the background every 90 minutes, with a random offset of 0 to 30 minutes. In addition to background updates, Group Policy for the computer is always updated when the system starts. http://technet.microsoft.com/en-us/library/cc940895.aspx.

VB Script to run gpupdate.exe /force silently without a reboot
http://joejoeinc.blogspot.in/2010/11/it-took-me-while-to-figure-this-one-out.html
0
 

Author Comment

by:techlabtest
ID: 39221663
i have given users access to local domain admin through restricted groups and i need to launch gpupdate /force and also restart the pc...
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Here's a look at newsworthy articles and community happenings during the last month.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question