Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Try {
- $Keys=Get-ChildItem HKCR:Installer -Recurse -ErrorAction Stop | Get-ItemProperty -name ProductName -ErrorAction SilentlyContinue
- }
- Catch {
- New-PSDrive -Name HKCR -PSProvider registry -Root HKEY_CLASSES_ROOT -ErrorAction SilentlyContinue | Out-Null
- $Keys=Get-ChildItem HKCR:Installer -Recurse | Get-ItemProperty -name ProductName -ErrorAction SilentlyContinue
- }
- Finally {
- foreach ($Key in $Keys) {
- if ($Key.ProductName -like "*Flash*Plugin") {
- Remove-Item $Key.PSPath -Force -Recurse
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement