Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
2,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $Name = "WinZip"
  2. $detection = @()
  3. $detection = Get-ItemProperty HKLM:\software\microsoft\windows\currentversion\Uninstall\*,HKLM:\software\wow6432node\microsoft\windows\currentversion\Uninstall\* | Where-Object {($_.DisplayName -like "$Name*")}
  4. if (!($detection)) { write-host "Installed" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement