I have numerous machines with a version of software installed that is not configured correctly, and the only way to rectify is to remove and reinstall using the correct settings. The customer I am working for has specified they want it to be done via GPO so I am having to create an installer. The system requires a reboot after the uninstall before re-installing so I have created 2 GPOs and 2 groups, group1 give access to policy 1 and group 2 access to policy 2. The first installer I have runs the uninstall string, and installs dsmod and dsquery onto the machine. I have created a batch file that uses dsquery and dsmod to add the computer to group2 so upon reboot the second policy will apply. Teh issue I have is that my batch file is not running correctly. I can run it manually and it works fine so I know that the syntax is correct, however when it is run within the installer I am getting an error -1 returned. I have enabled verbose logging and cannot for the life of me see what is going wrong, is anyone able to point me in the right direction please?
Thanks
FOLLOW US
Get the latest news in Application Packaging