Skip to main content

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 can disable optional Windows features that are enabled by default but not needed by most users. Features are disabled using Disable-WindowsOptionalFeature (PowerShell) or dism /Disable-Feature (DISM), both of which operate offline-safely and do not require an active internet connection.
All optional feature changes require a system restart to take full effect. Windows will prompt for a restart after the script runs if a feature was successfully disabled.

Hyper-V

Disabling Hyper-V will stop any virtual machines that rely on it from working, including Windows Sandbox and WSL 2 (which uses a lightweight VM). Other virtualization solutions such as VirtualBox and VMware may also be affected. Only disable this if you are not using virtualization features.
Removes the Microsoft-Hyper-V-All feature group, which includes the Hyper-V hypervisor, management tools, and guest services. The command gracefully handles cases where the feature is not present.
try { Disable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -Online -NoRestart -ErrorAction Stop; Write-Output "Successfully disabled the feature Microsoft-Hyper-V-All." } catch { Write-Output "Feature not found: Microsoft-Hyper-V-All" }

Internet Explorer

Removes the Internet-Explorer-Optional-amd64 feature from Windows. Internet Explorer has been retired by Microsoft and is no longer supported. Disabling it frees up resources and reduces the attack surface without impacting modern browsers.
dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64 | Out-Null; if ($LASTEXITCODE -eq 0) { Write-Host "Successfully removed the feature: Internet-Explorer-Optional-amd64" } else { Write-Host "Feature not found: Internet-Explorer-Optional-amd64" }

Fax & Scan

Removes the FaxServicesClientPackage feature, which provides Windows Fax and Scan functionality. This feature is rarely used on modern consumer systems and can be safely removed if you do not send or receive faxes or scan documents through Windows Fax and Scan.
dism /Online /Disable-Feature /FeatureName:FaxServicesClientPackage | Out-Null; if ($LASTEXITCODE -eq 0) { Write-Host "Successfully removed the feature: FaxServicesClientPackage" } else { Write-Host "Feature not found: FaxServicesClientPackage" }

Windows Media Player

Removes the legacy WindowsMediaPlayer optional feature. Modern media playback is handled by the Media Player app available in the Microsoft Store. The legacy Windows Media Player is a separate optional component that can be safely disabled on systems using a different media player.
try { Disable-WindowsOptionalFeature -FeatureName "WindowsMediaPlayer" -Online -NoRestart -ErrorAction Stop | Out-Null; Write-Output "-- Successfully disabled the feature WindowsMediaPlayer." } catch { Write-Output "Feature not found." }

Disable Consumer Features

Disables the Windows “Consumer Features” system, which allows Microsoft to silently install suggested apps and promotional content through the Windows Store in the background. This is controlled by the DisableWindowsConsumerFeatures Group Policy registry key under HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent.
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t "REG_DWORD" /d "1" /f

Build docs developers (and LLMs) love