{"id":28591237,"url":"https://github.com/noderaven/uninstall-webrootandenabledefender","last_synced_at":"2025-06-11T09:14:10.787Z","repository":{"id":298375625,"uuid":"999775505","full_name":"noderaven/Uninstall-WebrootAndEnableDefender","owner":"noderaven","description":"This script automates the uninstallation of Webroot SecureAnywhere, performs a thorough cleanup, and enables Microsoft Defender Antivirus.","archived":false,"fork":false,"pushed_at":"2025-06-10T19:37:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-10T20:34:24.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noderaven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-10T19:09:55.000Z","updated_at":"2025-06-10T19:37:57.000Z","dependencies_parsed_at":"2025-06-10T20:45:09.284Z","dependency_job_id":null,"html_url":"https://github.com/noderaven/Uninstall-WebrootAndEnableDefender","commit_stats":null,"previous_names":["noderaven/uninstall-webrootandenabledefender"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUninstall-WebrootAndEnableDefender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUninstall-WebrootAndEnableDefender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUninstall-WebrootAndEnableDefender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUninstall-WebrootAndEnableDefender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noderaven","download_url":"https://codeload.github.com/noderaven/Uninstall-WebrootAndEnableDefender/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUninstall-WebrootAndEnableDefender/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259236395,"owners_count":22826309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-11T09:13:55.243Z","updated_at":"2025-06-11T09:14:10.775Z","avatar_url":"https://github.com/noderaven.png","language":"PowerShell","readme":"# Webroot SecureAnywhere Uninstaller \u0026 Defender Enabler\n\nThis PowerShell script automates the complete uninstallation of Webroot SecureAnywhere, performs a thorough cleanup of leftover files and registry entries, and then ensures Microsoft Defender Antivirus is enabled and running.\n\n## Description\n\nThis script is designed for robust and reliable unattended execution, combining a staged approach with a forceful, deep-cleaning mechanism to remove Webroot and activate Defender. It's particularly useful for system administrators or users needing to completely remove Webroot and switch to the native Windows security solution.\n\n## Features\n\n* **Execution Policy Bypass:** Temporarily sets the PowerShell execution policy for the current process to allow script execution.\n\n* **Staged Uninstallation:**\n\n  * Attempts a standard uninstallation using `WRSA.exe`.\n\n  * If the standard uninstall is insufficient, it proceeds to a two-stage cleanup.\n\n* **Comprehensive Cleanup:**\n\n  * **Stage 1 (Gentle):** Attempts to remove common leftover Webroot folders.\n\n  * **Stage 2 (Forceful):** If Stage 1 fails, it escalates by stopping Webroot services, terminating processes, and performing a deep-level registry and file system purge.\n\n* **Dynamic WMI Cleanup:** Conditionally removes Webroot entries from WMI (Windows Management Instrumentation) if the cleanup is successful. It dynamically selects the correct WMI namespace (`SecurityCenter` or `SecurityCenter2`) based on the operating system version.\n\n* **Microsoft Defender Activation:**\n\n  * Enables and starts core Microsoft Defender services (`WinDefend`, `WdNisSvc`).\n\n  * Configures Defender through `Set-MpPreference` (if available) and direct registry edits to ensure real-time protection and other features are active.\n\n* **Robust Logging:** Provides clear output messages indicating the script's progress and any encountered issues.\n\n* **Retry Mechanism:** Includes a retry mechanism for folder deletion, making the cleanup more resilient.\n\n## Usage\n\nTo run this script:\n\n1. **Download:** Save the script (e.g., `Uninstall-WebrootAndEnableDefender.ps1`) to your local machine.\n\n2. **Elevated PowerShell:** Open PowerShell as an **Administrator**.\n\n   * Right-click the PowerShell icon and select \"Run as administrator.\"\n\n3. **Navigate:** Change directory to where you saved the script:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoderaven%2Funinstall-webrootandenabledefender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoderaven%2Funinstall-webrootandenabledefender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoderaven%2Funinstall-webrootandenabledefender/lists"}