Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Universal MSI uninstaller for Cisco Teams x64 - Full system Install
- # This is weird because the app is designed to be uninstalled per-user.
- # This script only helps if you installed for SYSTEM instead.
- # Still supported anyway.
- # - JT
- $AppName = "Webex Teams"
- # Sweep installed apps and pull the uninstall string.
- # This is meant to solve the problem of uninstalling auto-patched apps. with automation.
- # Secunia will auto-apply new MSIs, which changes the string.
- # The config manager client can uninstall with this script, with no regard to the version that's actually installed.
- ##################################################################
- # Kill processes.
- $ProcessNames = @("CiscoCollabHost","CiscoCollabHostCef")
- Get-Process | ? {$_.name -in $ProcessNames} | % {$_ | Stop-Process -Force -Verbose}
- #######################################################
- ## Look for the correct architecture.
- #$UninstallRoot = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
- $UninstallRoot = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
- # Find the first app which matches the name. Be careful to make it find the corret one, in case more than one app matches.
- # ! ! ! no wildcards this time.
- $AppInfo = Get-ChildItem -Path $UninstallRoot | Where-Object {$_.getValue("DisplayName") -eq ($AppName)} | Select-Object -First 1
- # !!!! No detailed info here. No version etc. Just name and guid.
- #$Version = $AppInfo.GetValue("DisplayVersion")
- $LogFile = $env:TEMP + $AppName + "-Uninstall.log"
- $AppGuid = $AppInfo.PSChildName
- # With all this information, run the uninstall command.
- & MsiExec /x $AppGuid /q /norestart /log $LogFile | Wait-Process
Add Comment
Please, Sign In to add comment