I have a script that shuts the PcaSvc (Program Compatibility Assistant Service) before installing another program. However, I need a script to detect that it's Stopped so I can use it for SCCM AppModel detection.
I have this, but I'm getting erros......yes I'm a Powershell newbie......
$PcaSvc = Get-WmiObject win32_service | where Name -eq "PcaSvc"
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.
I have a script that shuts the PcaSvc (Program Compatibility Assistant Service) before installing another program. However, I need a script to detect that it's Stopped so I can use it for SCCM AppModel detection.
I have this, but I'm getting erros......yes I'm a Powershell newbie......
Share this post
Link to post
Share on other sites