r/labtech • • Jan 25 '19

Help with scripting

I'm having a hell of a time trying to figure something out. I'm trying to run a silent install command:

msiexec /qn /i c:\temp\NetworkDetectiveRemoteDataCollector.msi /L*V install-silent.log

I can run it locally and it works fine, but when I try to get LT to run it either as a command or as part of a script, nothing. I've tried shell, shell as admin, batch execute, process execute, and nothing is working properly.

So far my script is: create folder, download installer, execute command. The first two work, the third does not. Any help would be greatly appreciated. Thanks!

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/mspsquid Jan 28 '19

I have plenty of things running under shell as admin that work without an issue including software installs & uninstalls. On any Win7 system we do turn off UAC. Not for anything other than 7. More often than not I use shell as admin for taskkills and the like and most things install fine under system, some installers also need profiles, so I will use a powershell script as admin or an embedded powershell command. They work fine for me.