Hello,
So I created a batch file to setup the local administrator which would simply throw "Access Denied" errors within Windows when ran. So I created an AutoIt script that runs an elevated cmd and then run the commands which proves to work when running directly in Windows (same session I would get "Access Denied" from a sole batch).
However, when I add the AutoIt file to the provisioning template and the scripts folder, to run during provisioning, it does not work. I believe it is because of UAC? The scripts copy over to the local PC just fine and if I manually run it, once provisioning is done, it prompts UAC and then the script works after authentication. So I know the .exe is ok. Also, I tried turning UAC off with reg values in the template too it would just break the install on reboot (UAC needs reboot after turning off). Our GPO requires UAC to be on so I am trying to do this prior to "Join Domain" in our template file. Any assistance is appreciated.