Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. $SecMan = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\uninstall\*' -ErrorAction SilentlyContinue | Where-Object {((Get-ItemProperty -Path $_.PsPath) -match 'HP Client Security Manager')}
  3. $secmanCode = $Secman.modifypath | Out-String
  4. $secmanRemove = $secmanCode.substring(14).Trim()
  5.  
  6. Start-process msiexec.exe -argumentlist /x, $SecManRemove, /quiet -wait
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement