Advertisement
Guest User

Check if Webroot SecureAnywhere is installed

a guest
Nov 14th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $WRInstalled = 0
  2. If (Test-Path "C:\Program Files (x86)") {
  3.     If (Test-Path 'C:\Program Files (x86)\Webroot\WRSA.exe') {
  4.         Write-Host "Webroot 32-bit is installed on this 64-bit machine"
  5.         $WRInstalled = 1
  6.     }
  7.     If (Test-Path 'C:\Program Files\Webroot\WRSA.exe') {
  8.         Write-Host "Webroot 64-bit is installed on this 64-bit machine"
  9.         $WRInstalled = 1
  10.     }
  11. } Else {
  12.     If (Test-Path 'C:\Program Files\Webroot\WRSA.exe') {
  13.         Write-Host "Webroot 32-bit is installed on this 32-bit machine"
  14.         $WRInstalled = 1
  15.     }
  16. }
  17. If (!($WRInstalled)) {
  18.     Write-Host "Webroot is not installed on this machine"
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement