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.

The Tools section of Winscript provides a set of one-click system maintenance utilities that complement the main debloat and privacy scripts. Each tool targets a specific maintenance task and generates a standalone PowerShell command that you can run directly or include in your Winscript output.
Use Create Restore Point before running any Winscript scripts. This gives you a safe rollback point if a tweak produces unexpected behaviour.

Shortcuts

The Shortcuts panel opens common Windows system panels directly — no scripts are generated for these, they are pure GUI launchers.
ShortcutOpens
Windows SettingsThe Windows Settings app
Device Managerdevmgmt.msc — manage hardware and drivers
Control PanelThe classic Control Panel
Virtual MemoryAdvanced system properties → Virtual Memory dialog
Visual EffectsAdvanced system properties → Visual Effects dialog
MSConfigSystem Configuration utility

Clean-up Tools

Clean Temporary Files

Deletes files from the Windows Temp folder and the Prefetch folder to free up disk space and remove stale data.
Remove-Item -Path "C:\Windows\Temp\*" -Recurse -Force
Remove-Item -Path "C:\Windows\Prefetch\*" -Recurse -Force

Run Disk Cleanup

Launches the Windows Disk Cleanup utility in silent, low-disk mode using the sagerun:5 preset, which selects all available cleanup categories automatically.
cleanmgr /verylowdisk /sagerun:5

Empty Recycle Bin

Uses the Shell.Application COM object to iterate over every item in the Recycle Bin (namespace 10) and remove it forcefully, printing each deleted item’s name to the console.
$bin = (New-Object -ComObject Shell.Application).NameSpace(10); $bin.items() | ForEach { Write-Host "Deleting $($_.Name) from Recycle Bin"; Remove-Item $_.Path -Recurse -Force }

Repair Tools

DISM (Deployment Image Servicing and Management)

Scans and repairs the Windows component store and system image. RestoreHealth downloads replacement files from Windows Update when corruption is detected. This is the first step recommended before running SFC, as SFC relies on an intact component store to restore files.
DISM /Online /Cleanup-Image /RestoreHealth

SFC (System File Checker)

Scans the integrity of all protected system files and replaces corrupted or missing files with cached copies from the Windows component store.
sfc /scannow
Run DISM before SFC. If the component store itself is damaged, SFC cannot replace corrupted files. Running DISM first ensures the source files SFC uses are intact.

Create Restore Point

Creates a system restore point labelled RestorePoint1 before you apply any Winscript tweaks. The command first enables restore on the system drive (in case it was previously disabled) and then snapshots the current state.
Enable-ComputerRestore -Drive $env:SystemDrive ; Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS"
To roll back to this restore point later, open System Properties → System Protection → System Restore and select the RestorePoint1 entry.

Clear Browser History

Removes history, cache, and cookies for Chrome, Edge, Firefox, and Brave from their standard user data directories. The paths use environment variables so they resolve correctly for any user account.
Remove-Item -Path "$env:LocalAppData\Google\Chrome\User Data\Default\History" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\Google\Chrome\User Data\Default\Cache\*" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\Google\Chrome\User Data\Default\Cookies" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\Microsoft\Edge\User Data\Default\History" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\Microsoft\Edge\User Data\Default\Cache\*" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\Microsoft\Edge\User Data\Default\Cookies" -Recurse -Force
Remove-Item -Path "$env:AppData\Mozilla\Firefox\Profiles\*.default\places.sqlite" -Recurse -Force
Remove-Item -Path "$env:AppData\Mozilla\Firefox\Profiles\*.default\cache2\entries\*" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\BraveSoftware\Brave-Browser\User Data\Default\History" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\BraveSoftware\Brave-Browser\User Data\Default\Cache\*" -Recurse -Force
Remove-Item -Path "$env:LocalAppData\BraveSoftware\Brave-Browser\User Data\Default\Cookies" -Recurse -Force
These paths target the Default profile only. If you use multiple browser profiles, additional profile directories (e.g., Profile 1, Profile 2) will not be affected.

Reset Network

Flushes the DNS resolver cache and releases and renews the IP address lease. This can resolve connectivity issues caused by stale DNS entries or a misbehaving DHCP lease.
ipconfig /flushdns
ipconfig /release | Out-Null
ipconfig /renew | Out-Null

Run MAS (Microsoft Activation Scripts)

Downloads and runs the Microsoft Activation Scripts project directly from its official distribution URL using PowerShell’s irm (Invoke-RestMethod) and pipes the output to iex (Invoke-Expression) for immediate execution.
irm https://get.activated.win | iex
MAS is a third-party open-source project. Winscript provides this as a convenience tool but does not maintain or audit the script. Always review the source at massgrave.dev before running it, and be aware that using activation scripts may violate Microsoft’s Terms of Service.

Build docs developers (and LLMs) love