This PowerShell script removes KingSoft WPS Office user-based installs from a Windows computer. It first gets a list of all installed programs from the HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall registry key, filters it to only include programs published by Kingsoft, and then selects the DisplayName and UninstallString properties.
Next, it iterates over each program in the list and checks if it has an UninstallString value. If it does, it assigns the DisplayName and UninstallString values to variables and outputs a message saying it’s uninstalling the program. It then executes the UninstallString using the cmd /c command with the /s switch to run the uninstaller silently without user interaction.
This script should only be used if you’re sure that you want to remove all KingSoft WPS Office user-based installs from your computer, as it will remove them all without confirmation.
Removes KingSoft WPS Office User Based Installation
$App = Get-ChildItem -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.Publisher -like 'Kingsoft*' } | Select-Object -Property DisplayName, UninstallString
foreach ($Ver in $App) {
if ($Ver.UninstallString) {
$DisplayName = $Ver.DisplayName
$Uninst = $Ver.UninstallString
Write-Output "Uninstalling $DisplayName..."
cmd /c $Uninst /s
}
}
Watch video Kingsoft WPS Office Uninstallation powershell script online without registration, duration hours minute second in high quality. This video was added by user InfoAlias 12 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,94 once and liked it 1 people.