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
}
}
Смотрите видео Kingsoft WPS Office Uninstallation powershell script онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь InfoAlias 12 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,94 раз и оно понравилось 1 людям.