



).Uninstall() Looking to run this if CBFolderExist=False msiexec /q /i "\\servershare\packages\someinstall. Stack Exchange Network Stack Exchange network consists of 182 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Current script to works: Get-Content C:\TEMP\CBScan\Computers.txt | ` Select-Object Test-Path "\\$_\c$\Program Files\Confer\RepMgr.exe"}}, Test-Path "\\$_\c$\Windows\"}}, Test-Path "\\$_\C$\Program Files\Symantec\Symantec Endpoint Protection\smc.exe"}}, Test-Path "\\$_\c$\Program Files (x86)\Symantec\Symantec Endpoint Protection\smc.exe"}} -Results look like this- ComputerName :PC1 CBFolderExist : False WindowsFolderExist : True SEP64 : False SEP86 : True - Looking to run this on remove computer if SEP=True (Get-WmiObject -Class Win32_Product -Filter "Name='Symantec Endpoint Protection'" -ComputerName. So I tried pushing out (Get-WmiObject -Class Win32Product -Filter 'Name'Symantec Endpoint Protection'' -Comput. Now I want to add uninstall/install action to that script based on result. This can be beneficial to other community members reading the thread.I have a current script to do a few checks if file/folder exist. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.

Getting lots of Script Failed To Run alerts? WMI Probe Failed Execution? Backward Compatibility Script Error? Regarding the issue, please also refer to the following post: Also need script to add and also to remove local admin Groups from remote servers. Please check the issue referring to the following post:Īnti-virus software may cause script failures in OpsMgr 2007Īntivirus exclusions for Operations Manager 2007 I need help in fixing my script which is getting information from local machine from which i am running the script but not the remote servers results.
