I am still unsuccessful with running Certain batch files or powershell script with enough permissions to run correctly.
The Batch file / Scripts in question need access to domain resources and full access to the workstation.
I have tried Custom Scripts, Launch, or Install as MSIEXEC.
After testing and testing and testing, it comes down to this.
The system account that has full access on the PC but little access to Domain resources Shares / Active Directory and etc. So the system account runs into issues accessing network / Domain resources.
If I specify a Runas User, that has full privileges on the Domain and Full privileges on the workstations. UAC causes issues and the Batch / Script does not get enough permissions on the Workstation.
If I disable UAC then everything works as it should using a Domain Admin account. Obviously disabling UAC is not a solution.
Nor is giving the local system account access to everything on the Domain feasible.
Sadly this all works with "Desktop Authority" perfectly, we have been trying to replace "Desktop Authority" for over a year now and we just keep running into issues with certain configurations.
I have tried running the batch / scripts from the "Install MSIExec" configuration but still run into the same issues.
Steven