๐ English | Deutsch | ะ ัััะบะธะน | ะฃะบัะฐัะฝััะบะฐ
Key features
Sophia Script for Windows takes care of your Windows stability and warns you if it detects a problem
- More than 150 unique functions to configure Windows using Microsoft's officially documented ways without harming the system
- Every tweak has a corresponding function to restore the default settings
- Fully open-source project
- Configure Windows AI
- Configure Windows privacy, security, and personalization
- Available via Scoop, Chocolatey, and WinGet
- Arm64 support
- PowerShell 7 support
- Compatible with VAC
- Uninstall UWP apps showing their localized package names
- The list of installed UWP apps is generated dynamically
- Applied registry policies will be displayed in the Local Group Policy Editor snap-in (gpedit.msc)
- Enable DNS-over-HTTPS using
- Uninstall OneDrive
- Interactive prompts and pop-ups
- TAB completion for functions and their arguments (using Import-TabCompletion.ps1)
- Change the location of user folders (without moving user files) using an interactive menu
- Desktop
- Documents
- Downloads
- Music
- Pictures
- Videos
- Install the free
Windows 11 Cursors Concept v2 cursors (light and dark) from Jepri Creations on the fly
- Set a default app for a specific file extension without the
How do you want to open this file? pop-up
- Export and import all Windows associations. To restore associations, install all apps listed in the exported JSON file first
- Install a WSL Linux distribution via a pop-up using friendly distro names
- Create scheduled tasks with a native toast notification
- Create the
Windows Cleanup and Windows Cleanup Notification scheduled tasks to clean up unused files and Windows Update files
- Create the
SoftwareDistribution scheduled task to clean up %SystemRoot%\SoftwareDistribution\Download
- Create the
Temp scheduled task to clean up temporary folders and files
%SystemDrive%\$WinREAgent
%SystemDrive%\$SysReset
%SystemDrive%\$Windows.~WS
%SystemDrive%\$GetCurrent
%SystemDrive%\ESD
%SystemDrive%\Intel
%SystemDrive%\PerfLogs
%SystemRoot%\ServiceProfiles\NetworkService\AppData\Local\Temp
%LOCALAPPDATA%\CrashDumps
%SystemDrive%\Recovery
%SystemRoot%\System32\config\systemprofile\AppData\Local\tw-*.tmp
- Install the latest Microsoft Visual C++ 2015โ2026 x86/x64
- Install the latest .NET Desktop Runtime 8, 9, 10 x64
- Many more File Explorer and context menu tweaks
Table of Contents
How to download
From the release page
Windows 10
Windows 11
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/LTSC%202019.svg?label=Windows%2010&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/LTSC%202019.svg?label=Windows%2010&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/LTSC%202021.svg?label=Windows%2010&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/LTSC%202021.svg?label=Windows%2010&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=light" />
</picture>
</a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=dark"></source>
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=light" />
</picture>
</a>
Download via PowerShell
Download the latest Sophia Script for Windows version for your Windows and PowerShell versions and extract it to the Downloads folder.
iwr script.sophia.team -useb | iex
Download the Sophia Script for Windows version from the latest commit for your Windows and PowerShell versions and extract it to the Downloads folder.
iwr sl.sophia.team -useb | iex
Chocolatey
Download the latest Sophia Script for Windows version for your Windows version and extract it to the Downloads folder.
choco install sophia --force --yes
Download the latest PowerShell 7 version of Sophia Script for Windows for your Windows version and extract it to the Downloads folder.
choco install sophia --params "/PS7" --force --yes
# Uninstall, then delete the downloaded folder manually
choco uninstall sophia --force --yes
WinGet
Download the latest Sophia Script for Windows version for Windows 11 and PowerShell 5.1 (SFX archive sophiascript.exe) and extract it to the Downloads folder.
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
winget install --id TeamSophia.SophiaScript --location $DownloadsFolder --accept-source-agreements --force
& "$DownloadsFolder\sophiascript.exe"; Start-Sleep -Seconds 3; Remove-Item -Path "$DownloadsFolder\sophiascript.exe" -Force
# Uninstall Sophia Script for Windows
winget uninstall --id TeamSophia.SophiaScript --force
Scoop
Download the latest Sophia Script for Windows version for Windows 11 and PowerShell 5.1 and extract it to the Downloads folder.
# scoop bucket rm extras
scoop bucket add extras
scoop install sophia-script --no-cache
# scoop bucket rm versions
scoop bucket add versions
# sophia-script-ltsc2019, sophia-script-ltsc2021
# sophia-script-ltsc2024-ps7.json, sophia-script-ltsc2024
# sophia-script-ps7, sophia-script-win10-ps7
scoop install sophia-script-win10 --no-cache
# Uninstall Sophia Script for Windows
scoop uninstall sophia-script --purge
How to use
- Download the archive for your system and extract it
- Open
Sophia.ps1 and choose the functions you want to run
- Put
# before a function to skip it
- Remove
# before a function to run it
- Copy the path to the extracted
Sophia Script for Windows folder
- Right-click the
Start button, open Terminal (PowerShell) as administrator, and go to the copied folder
cd path\to\folder
- Allow running scripts in the current PowerShell session only
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
- Type
.\Sophia.ps1 and press Enter
How to run the specific function(s)
- Follow the steps from How to use up to and including setting the execution policy, but don't run
Sophia.ps1
- Dot source the
Import-TabCompletion.ps1 file first:
# With a dot at the beginning
. .\Import-TabCompletion.ps1
- Call any script function with name autocompletion using TAB
Sophia -Functions
Sophia -Functions temp
Sophia -Functions unin
Sophia -Functions uwp
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", Uninstall-UWPApps
Sophia -Functions Uninstall-UWPApps, "PinToStart -UnpinAll"
System Requirements
Screenshots
<img src="./img/UWP.png" width="400" alt="UWP apps removal" />
UWP apps
<img src="./img/Tasks.png" width="400" alt="Scheduled tasks" />
Scheduled tasks
<img src="./img/WSL.png" width="400" alt="WSL installation" />
WSL
<img src="./img/Toasts.png" width="400" alt="Toast notifications" />
Toast notifications
How to translate
- Run
$PSUICulture in PowerShell to determine your UI language
- Create a folder with the UI language name (e.g.
en-US)
- Put your localized
SophiaScript.psd1 file into this folder
Articles and mentions
Acknowledgements
Our thanks to the following organizations for providing their services at no cost:
SophiApp 2.0 (C# + WinUI 3)
SophiApp 2.0 is under active development. ๐
