I have a mix of HP and Lenovo machines and during the initial deployment I need Desktop Central MSP to install different software packages depending on manufacturer.
For the purposes of this thread let's use the Lenovo hardware as the example. When a new Lenovo machine is added to ME DC MSP I need to install a program named Lenovo System Update. I created a software package for Lenovo System Update and tested that it deploys successfully. I then added a few pre-deployment steps that are supposed to abort installation if the software already exists or the machine is not made by Lenovo. Unfortunately, my script isn't working and I'm hoping you can help me understand where I've gone wrong.
The package is configured like this :
The script, match_manufacturer.ps1 is configured like this :
And finally, this is the script itself :
What should I be doing differently to get the result I'm looking for? Right now the deployment fails with error :