[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

batch file or vb script

Posted on 2013-06-05
3
Medium Priority
?
416 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:Meir Rivkin
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

650 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