/build/static/layout/Breadcrumb_cap_w.png

TimeSync update!

hi all,
We need to create a package in exe format (wise package studio) which executes two commands: "W32tm /config /syncfromflags:DOMHIER /update" and "Gpupdate /force".
however when we execute the 2nd "Gpupdate/force" command through batch file it enters into an infinite loop. however if we give this command through command prompt it does the needful successfully. unable to predict the reason behind it.
i want to run the package silently without any cmd screen popup.
Plz help me out.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: AngelD 15 years ago
Red Belt
1
I've seen the same and if I recall you either had to use "start /wait" or "%ComSpec% /c" from the batch file
ex. start /wait gpupdate /force
Posted by: karshi 15 years ago
Purple Belt
0
Thankx for ur reply.
i have tried giving "wait" but it didn't help. I will try with "%ComSpec% /c".
However we tried with "/x /c gpupdate /force" and gave the defaultdir as "sys32, it is now not entering in infinite loop. But am not very clear about this behaviour.
Also we noticed that reboot is required to see the change.
Thanx again for ur help.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ