Hello

I have about 4 scripts I need to run in sequential order to my users when they are logged off at night. It is too much to do in 1 big VBS so I broke it up into 4 smaller ones. Most of them are software installs/uninstalls + regfixes and DLLs. Is there a way to do this in 1 job in k1000 scripting where it calls the VBS in sequential order when the previous is complete?

Earlier I had it so the last command in my VBS would call the next VBS but it was sloppy and I did not like it. Not to mention it did not work when the user was logged off.

As I am typing this I figured it may be possible to do this by making batch files that call each VBS?

thanks for any help!

 

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

Since you are doing this at night just set the time for the script to execute about 15 minutes apart.

Answered 04/15/2013 by: SMal.tmcc
Red Belt

  • that's what i was trying to avoid just for organization reasons.
  • You can do what dugullett recommends. With each job as it completes, place a small txt file in like c:\windows\temp and have the next job look to see if this file exists.
  • i like this idea....will be testing soon. Do you think I should include that in the VBS itself or make it a remediation
    • would be better as a remediation, you know the job completed. Also if the chain breaks, you can tell by what files are there where it broke.
  • not seeing an option in remediation to create a file? Brain fart, what am I missing?
    • upload the txt file as a dependency and copy to temp on remidiation.
  • I'm really sorry but im going to need your help here...i uploaded it as a dependency, now what do i choose in the remediation to copy it to the temp directory?
    • launch a program
      directory $(KACE_SYS_DIR)
      file xcopy.exe
      parameters $(KACE_DEPENDENCY_DIR)\step1done.txt c:\windows\temp
  • thx!
    • If you didn't want to upload all the .txt files you can change/create a reg key for the first task on "Remediation Success", and then on the 2nd task "Verify" that reg key exists. So on and so on.....
Please log in to comment
0

I have typically used one batch file which uses call each of the vbscripts using the Start /wait command.  This means that it will wait until one is finished and then immediately launched the second one.

Answered 04/15/2013 by: smoothdude11
White Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share