Fix problems that block programs from being installed or removed
Block you from uninstalling a program through Add or Remove Programs (or Programs and Features) in Control Panel. If you're trying to remove malware, you can use Windows Security (or another antivirus tool), or you can use the Windows Malicious Software Removal tool.
Use the System File Checker tool to repair missing or corrupted system ...
To resolve this problem, perform the System File Checker scan in safe mode, and make sure that the PendingDeletes and PendingRenames folders exist under %WinDir% \WinSxS\Temp. Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir% \Logs\CBS\CBS.log.
What to do when a malicious file is found in SharePoint Online ...
You've come across a file in SharePoint in Microsoft 365, OneDrive for work or school, or Microsoft Teams, but you're unable to open or share it. You can see the file is there, but it's blocked and the file has a warning icon next to it: To protect yourself, your computer, and your organization, the best option is to delete the file.
Applies To:
SharePoint in Microsoft 365, Microsoft 365 admin, OneDrive (work or school), Microsoft Teams, OneDrive for Mac, OneDrive for Windows, SharePoint admin center
Add an exclusion to Windows Security - Microsoft Support
If you trust a file, file type, folder, or a process that Windows Security has detected as malicious, you can stop Windows Security from alerting you or blocking the program by adding the file to the exclusions list. Caution: Only do this for files that you're confident are safe.
Recover lost or deleted files - Microsoft Support
Learn how to recover files that have been lost, deleted, or accidentally changed.
How to start a scan for viruses or malware in Microsoft Defender
Microsoft security help and learning. If you suspect that your device may have malware you should have Microsoft Defender run a scan. Here's how to do that on Windows, Mac, or Android.
Applies To:
Microsoft Defender on Android, Microsoft Defender on Mac, Microsoft Defender on Windows
Uninstall or remove apps and programs in Windows - Microsoft Support
There are different ways to remove apps and programs, so if you can't find the one you're looking for, you can try another location. Note that some apps and programs are built into Windows and can't be uninstalled. You can try to repair a program first, if it's just not running correctly.
Ransomware detection and recovering your files - Microsoft Support
Ransomware detection notifies you when your OneDrive files have been attacked and guides you through the process of restoring your files. Ransomware is a type of malicious software (malware) designed to block access to your files until you pay money.
Applies To:
OneDrive (home or personal), OneDrive for Mac, OneDrive for Windows
Remove malware from your Windows PC - Microsoft Support
Learn how to remove malware from your PC. Use Microsoft Defender Antivirus in Windows 10 or Windows 11 to scan your PC for malware, viruses, or other threats.
Applies To:
OneDrive (home or personal), OneDrive for Windows
How to troubleshoot Windows Installer errors - Microsoft Support
To fix this problem automatically, run the "Fix problems that programs cannot be installed or uninstalled" troubleshooter to repair issues that block program installation or removal because of corrupted registry keys. Important To perform many of the methods and steps in this article, you must be logged on to your computer as an administrator.