Adding computer to a group - Advanced Installer Community
fugrat
Posts: 1
Joined: Fri Sep 25, 2015 4:56 pm

Adding computer to a group

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
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding computer to a group

Hello and welcome to our forums,

Can you please take a look on our "Launch a CMD or BAT file" article and see if this helps you. Otherwise please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”