I made a couple edits to the programs it looks for, and it found them just fine. However, the uninstall failed every time when it tried to execute the uninstaller for each. Here is an example from a couple apps it found on the server:
Removing Request Handler Agent...
Silent Removal may not be possible. Attempting Removal with application uninstall command.
Launching ""C:\Program Files (x86)\MspPlatform\RequestHandlerAgent\unins000.exe" /s"
Error Returned:
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Launching "C:\Program Files (x86)\CleanUp!\uninstall.exe /s"
Error Returned:
Script Completed Successfully.
operable program or batch file.
'C:\Program' is not recognized as an internal or external command,
At line:1 char:1
+ & cmd.exe /c "C:\Program Files (x86)\CleanUp!\uninstall.exe /s" 2>''; ...
Is there a way to make this script work when the uninstaller is in that path?
-Mike
Hello Darren,
I ran this script 93 times and it worked perfectly all 93 times. Thank you.
If I wanted this script to update to PowerShell 5.1 instead of 5.0, would I only need to edit lines 37 and 39 with the 5.1 file name, then 43 and 44 with the new direct download link to PowerShell 5.1 on 32 bit?
For 64 bit it would be lines 47, 49, and 51 with the 64 bit 5.1 file names, then lines 55, 56, and 59 with the 64 bit 5.1 direct download link?
Further down the script, I would then update references to 5.0 with 5.1?
Line 104 would be the PowerShell 5.1 requirements?
-Mike
I swear I saw this monitor in a Ron Popeil infomercial since all you have to do is ....set it, and forget it!
All my CWA agents stay updated without me forcing them to thanks to this most excellent monitor. Thank you Darren.
-Mike