I wrote a simple PowerShell script to uninstall two different versions of a program A, and two different versions of program B. It's a basic "kill related processes, and then run msiexec /x". It works great, and it's packed into an application in SCCM 2012.
That being said, my results in the deployment status are confusing. Here is my detection method script:
This path is "true" on every machine with the installed software. However, I deployed this application to 75 machines, and about 17 came back as successful, while 58 came back as "Successful: Already Compliant".
The removal script DID run; the software is gone and some of the directories I cleaned up in the script are also gone.
I just don't understand why it's coming back as "already compliant" when it clearly wasn't, and the application appears to have deployed successfully.
I'm obviously quite knew to SCCM, so please let me know if I can provide more information, or if I'm making a stupid mistake.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hello everyone!
I wrote a simple PowerShell script to uninstall two different versions of a program A, and two different versions of program B. It's a basic "kill related processes, and then run msiexec /x". It works great, and it's packed into an application in SCCM 2012.
That being said, my results in the deployment status are confusing. Here is my detection method script:
This path is "true" on every machine with the installed software. However, I deployed this application to 75 machines, and about 17 came back as successful, while 58 came back as "Successful: Already Compliant".
The removal script DID run; the software is gone and some of the directories I cleaned up in the script are also gone.
I just don't understand why it's coming back as "already compliant" when it clearly wasn't, and the application appears to have deployed successfully.
I'm obviously quite knew to SCCM, so please let me know if I can provide more information, or if I'm making a stupid mistake.
Thank you guys!!
Share this post
Link to post
Share on other sites