Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flick9000/winscript/llms.txt
Use this file to discover all available pages before exploring further.
Winscript includes options to debloat or fully remove Microsoft Edge and Brave, manage Microsoft Store and its automatic updates, perform a deep uninstall of OneDrive, and remove the Widgets panel from the Windows taskbar. Each option can be applied independently.
Debloat Edge
Applies a comprehensive set of Group Policy registry keys under HKLM\SOFTWARE\Policies\Microsoft\Edge to disable Edge’s tracking, promotional, and unnecessary features — without uninstalling the browser. Settings disabled include:
| Registry Value | Effect |
|---|
PersonalizationReportingEnabled | Disables personalization data reporting |
ConfigureDoNotTrack | Enables Do Not Track |
MetricsReportingEnabled | Disables usage metrics reporting |
DiagnosticData | Disables diagnostic data collection |
UserFeedbackAllowed | Disables user feedback prompts |
EdgeShoppingAssistantEnabled | Disables the shopping assistant / price tracker |
ShowMicrosoftRewards | Hides Microsoft Rewards in the toolbar |
StartupBoostEnabled | Disables Edge startup boost (background preloading) |
CopilotPageAction | Disables the Copilot page action button |
HubsSidebarEnabled | Disables the Edge sidebar |
PromotionalTabsEnabled | Disables promotional content on new tabs |
MicrosoftEdgeInsiderPromotionEnabled | Disables Insider promotion prompts |
HideFirstRunExperience | Skips the first-run welcome screen |
SpotlightExperiencesAndRecommendationsEnabled | Disables Spotlight recommendations |
SendSiteInfoToImproveServices | Stops sending browsing data to Microsoft |
CryptoWalletEnabled | Disables the built-in crypto wallet |
WalletDonationEnabled | Disables wallet donation prompts |
BingAdsSuppression | Suppresses Bing Ads in Edge |
WebWidgetAllowed | Disables the Edge web widget |
EdgeCollectionsEnabled | Disables Collections |
EdgeFollowEnabled | Disables the Follow feature |
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeEnhanceImagesEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "PersonalizationReportingEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "ShowRecommendationsEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "UserFeedbackAllowed" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "ConfigureDoNotTrack" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "AlternateErrorPagesEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeCollectionsEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeFollowEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeShoppingAssistantEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "MicrosoftEdgeInsiderPromotionEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "RelatedMatchesCloudServiceEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "ShowMicrosoftRewards" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "WebWidgetAllowed" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "MetricsReportingEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "StartupBoostEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "BingAdsSuppression" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "NewTabPageHideDefaultTopSites" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "PromotionalTabsEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SendSiteInfoToImproveServices" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "SpotlightExperiencesAndRecommendationsEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "DiagnosticData" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "EdgeAssetDeliveryServiceEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CryptoWalletEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "WalletDonationEnabled" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t "REG_DWORD" /d "0" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotPageAction" /t "REG_DWORD" /d "0" /f
Remove Edge
This will permanently remove the Chromium-based Microsoft Edge browser from your system. After removal, Edge cannot be reinstalled through Windows Update and there is no built-in undo. Make sure you have another browser installed before running this script.
Fully uninstalls the Chromium-based Microsoft Edge browser using Edge’s own installer with the --uninstall --system-level --force-uninstall flags. Before calling the uninstaller, the script creates a stub MicrosoftEdge.exe file in the legacy Edge system app path — this prevents Windows from blocking the uninstallation of the system-level Edge installation.
$Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName
New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force | Out-Null
Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile'
Debloat Brave
Applies Group Policy registry keys under HKLM\SOFTWARE\Policies\BraveSoftware\Brave to disable Brave’s built-in promotional and tracking features — without uninstalling the browser. The following features are disabled:
| Registry Value | Effect |
|---|
BraveRewardsDisabled | Disables the Brave Rewards program |
BraveWalletDisabled | Disables the built-in Brave crypto wallet |
BraveAIChatEnabled | Disables Brave Leo AI chat |
BraveStatsPingEnabled | Disables daily usage statistics pings to Brave |
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "BraveRewardsDisabled" /t "REG_DWORD" /d "1" /f
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "BraveWalletDisabled" /t "REG_DWORD" /d "1" /f
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "BraveAIChatEnabled" /t "REG_DWORD" /d "0" /f
reg add "HKLM\SOFTWARE\Policies\BraveSoftware\Brave" /v "BraveStatsPingEnabled" /t "REG_DWORD" /d "0" /f
Remove Microsoft Store
After uninstalling Microsoft Store you will no longer be able to install or update Microsoft Store apps. This cannot be undone through normal means.
Removes the Microsoft Store AppX package from Windows. Once uninstalled, Store-distributed apps (such as those installed via Winget’s Store source) can no longer be managed through the Store UI.
Get-AppxPackage "*Microsoft.WindowsStore*" | Remove-AppxPackage
Disable Automatic App Updates
Disables automatic background updates for Microsoft Store apps by setting the AutoDownload policy value to 2 under HKLM\SOFTWARE\Policies\Microsoft\WindowsStore. A value of 2 prevents automatic downloads while still allowing manual updates initiated by the user.
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d 2 /f
Remove OneDrive
This script performs a deep, non-reversible uninstall of OneDrive. Back up any files stored in your OneDrive folder before running this script. OneDrive files that have not been synced locally will not be accessible after removal.
Performs a complete removal of OneDrive. The process stops the running OneDrive process, runs the official OneDriveSetup.exe /uninstall uninstaller, moves files from the OneDrive folder to your user profile using robocopy, removes OneDrive’s sidebar entry from Windows Explorer via registry (HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}), unregisters scheduled tasks, and deletes all leftover local data folders.
Stop-Process -Name "OneDrive" -Force
$onedriveUninstaller = "$env:SystemRoot\System32\OneDriveSetup.exe"
if (Test-Path $onedriveUninstaller) {
Write-Host "-- Uninstalling OneDrive through the installers"
Start-Process -FilePath $onedriveUninstaller -ArgumentList "/uninstall" -Wait
}
Write-Host "-- Copying OneDrive files to local folders"
robocopy "$env:USERPROFILE\OneDrive" "$env:USERPROFILE" /mov /e /xj /ndl /nfl /njh /njs /nc /ns /np | Out-Null
Write-Host "-- Removing OneDrive from explorer sidebar"
Remove-Item -Path "HKCR:\WOW6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -Force
Remove-Item -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -Force
Write-Host "-- Removing shortcut entry"
Remove-Item "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" -Force
Write-Host "-- Removing scheduled task"
Get-ScheduledTask -TaskPath '\' -TaskName 'OneDrive*' -ErrorAction SilentlyContinue | Unregister-ScheduledTask -Confirm:$false -ErrorAction SilentlyContinue
Write-Host "-- Removing OneDrive leftovers"
Remove-Item -Path "$env:USERPROFILE\OneDrive" -Recurse -Force
Remove-Item -Path "$env:LOCALAPPDATA\OneDrive" -Recurse -Force
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Recurse -Force
Remove-Item -Path "$env:ProgramData\Microsoft OneDrive" -Recurse -Force
Remove-Item -Path "C:\OneDriveTemp" -Recurse -Force
Remove-Item -Path "HKCU:\Software\Microsoft\OneDrive" -Recurse -Force
Winscript provides two complementary options for removing the Windows Widgets feature.
Removes the MicrosoftWindows.Client.WebExperience AppX package, which is the underlying component that powers the Widgets panel. The package is also added to the system deprovisioning list so it is not reinstalled for new user accounts.
Get-AppxPackage *WebExperience* | Remove-AppxPackage
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy" /f
Hides taskbar widget-related UI elements through registry policy keys: the Task View button (ShowTaskViewButton), the News and Interests feed (AllowNewsAndInterests), and the Windows Feeds panel (EnableFeeds). This is a lighter alternative to full package removal and does not require a reinstall to undo.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\NewsAndInterests\AllowNewsAndInterests" /v "value" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" /v "EnableFeeds" /t REG_DWORD /d 0 /f