I have two VB Scripts that go through and remove all extra profiles from a computer as well as runs an SFC scan.
The script runs fine in Altiris but bringing the script over to Kaseya has been a challenge. Here is the outline of it:
1) Removes registry entries of user
2) Starts to remove folders from C:\Users
3) Restart
4) Makes sure all folders are removed from C:\Users
5) Runs SFC scan
6) Restart
I can get all the parts to run separately in Kaseya so I know the scripts and the agent are fine with it but when I try to put it all together the agent fails after step 3, I've had it do one of two things at that restart either it will restart the entire script and get into a loop or it will just stop dead. I've read on other posts that it is possible to continue a script after a restart but I have not been able to figure out how, any help or advice would be greatly appreciated!