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


Please log in to comment

Community Chosen Answer

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
Answered 05/14/2008 by: AngelD
Red Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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.
Answered 05/16/2008 by: karshi
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity