When scripting, it would be useful to have a pause/wait feature. Similar to the start /wait functionality in a batch file, this would be helpful in online kscripts.
Dan Henderson commented
You can implement a "wait" step by launching "$(KACE_SYS_DIR)\cmd.exe" with params "/c sleep #" (replacing # with a number of seconds to wait), and checking the "wait for completion" checkbox.
Totally need this! I have to make a batch to do this currently and it is not very streamline/doesn't always have expected results. I have software that the services need to be stopped, I need to wait approx 10 minutes and then start the service again. Would be extremely easy to create these sorts of Kscripts with this function. My bat is a one liner=
ping 188.8.131.52 -n 1 -w 600000 1>nul
Not intuitive for the next guy though...
Dalton Cook commented
I fully agree, there needs to be [more] wait or pause options. For the action "Launch a program..." there is an option to "Wait for completion" which is very useful.
For instance, when installing software, you can have the script wait for completion of the install and then run a verification to make sure it installed correctly.
If the same wait feature could be added to the action "Install a software package..." AND as an independent action, it could be very useful when trying to verify steps and other uses.