Bram Posted March 26, 2015 Report post Posted March 26, 2015 Hello, I'm trying to add a remove option in our Software Center for Office 2013. I'd like to use the OfficeScrub script to remove the software and do a reboot afterwards. The remove-office.bat script looks like this: :remove Microsoft Office 2013 suites cscript "C:\Program Files (x86)\Microsoft Office\uninstall\Offscrub13.vbs" ALL /Quiet /NoCancel shutdown /r /f On the client the Offscrub13.vbs file is available in the folder above. The bat script is available in the content and in the Office deployment options I've added: When clicking the uninstall button in the software center, after a few seconds the shutdown command triggers. So I guess it skips the uninstall line. Any reason why this happens? The bat script runs fine from command line. Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted March 26, 2015 Report post Posted March 26, 2015 It simply triggers the next command after successfully starting the first command. If you want it to wait until it's finished you've got to use some start / wait construction. Quote Share this post Link to post Share on other sites More sharing options...
Bram Posted March 27, 2015 Report post Posted March 27, 2015 Damn, why didn't I think of this I've moved my reboot part to the vbs script and all is working fine now. Thanks Peter. Quote Share this post Link to post Share on other sites More sharing options...
northturton Posted November 3, 2015 Report post Posted November 3, 2015 hi, where did you obtain Offscrub13.vbs ? regards Brian Quote Share this post Link to post Share on other sites More sharing options...