Mass Deployment using MDT

Options
jhilkey
jhilkey Posts: 10 ✭✭
edited March 2023 in Deployment & Integrations

I have the script from the support site:

start /wait MSIEXEC.EXE /i "PATH_TO_MSI_FILE\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=YOUR_CUSTOM_CONFIG_ID
timeout /t 30 /nobreak
"C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assignment --id YOUR_ASSIGNMENT_ID

Note: this is all while logged in with a network admin account with local admin permissions.

If I run this manually in an elevated command prompt, it works fine.

If I copy a .bat file with this to the local desktop, I get "You do not have permissions to install this for all users."

If I run the same .bat file by right-clicking and run as admin, it works fine.

If I run this from a .bat file from a network location, I get "You do not have permissions to install this for all users" error.

If I run this from a .bat file from a network location as admin, the cmd window pops up for a split second, then disappears.

If I run it as a .bat file during an MDT deployment, I get error 4 which I've researched to mean "The system cannot open the file."

I haven't been able to get this to work consistently. What am I missing? I don't see anything else in the documentation.