Batch Script to install any plugin or any solution MSI if the we are unable to install it from install policy. The script can be ran as a logon script or if the Job and Task is working we can send it as a run script task from SMP.
How to use:
Copy the script in the notepad and save the file with an extension .bat.
If want to ran it as a run script task, Go to SMP Console>Manage>Jobs and Tasks, Right Click>New>Task> Create New Task>Run Script, Select type as Command Script. (Refer to HOWTO45142 for more details on creating task)
Change or Modify the UNC to your respective Notification server or Package server.
<Package>_x64 and <Package>_x86.msi is the name of MSI package.
This same script can be used to install an exe file as well, the only change would be instead of “misexec.exe /q /I” use “start "" /MIN /wait x:\Installer.exe -s -a”.
This script is designed to creates a txt file in the “C:\Program Files\Altiris\Altiris Agent\” directory for reference so that it ends the execution if the script was already used in past to install some MSI plugin or solution.
Delete the installSMPlugin.txt if you want to re-ran the script on same machine.
REM Checking Windows Architecture
REM Here we checking if %PROCESSOR_ARCHITECTURE% contain .86 or .64 symbols
REM you can use SET command to find all other system variables