Solved

batch file or vb script

Posted on 2013-06-05
3
404 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
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 500 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Resolve DNS query failed errors for Exchange
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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