discover · compare · collections · requirements · contribute · feed · watching · stats · help with your tokens
farag2/Sophia-Script-for-Windows · source
Snapshot 0 · 2026-11-04T12:47:25Z · PowerShell · MIT
Content fingerprint
8d6e8b99ff465e888c39ad9e3410f723837a5c068a459c7515ffd2ead5340990GitHub description at capture
:zap: The most advanced PowerShell module on GitHub for fine-tuning Windows 11 & Windows 10
README at capture
🌐 [English](/README.md) | [Deutsch](/README_de-de.md) | [Русский](/README_ru-ru.md) | [Українська](/README_uk-ua.md)
<div align="center">
<img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/main/img/Sophia.png" alt="Sophia Script for Windows" width='150'>
# Sophia Script for Windows
The most advanced PowerShell module on GitHub for fine-tuning Windows
Made with <img src="./img/heart.svg" height="17px"/> of Windows
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/actions">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/github/ci/farag2/Sophia-Script-for-Windows.svg?workflow=Sophia.yml&label=build&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/github/ci/farag2/Sophia-Script-for-Windows.svg?workflow=Sophia.yml&label=build&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Human%20Coded.svg?variant=outline&size=sm&mode=dark&logo=false">
<img src="https://shieldcn.dev/badge/Human%20Coded.svg?variant=outline&size=sm&mode=light&logo=false">
</picture>
</a>
</kbd>
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Since%202014.svg?variant=outline&size=sm&mode=dark&logo=false">
<img src="https://shieldcn.dev/badge/Since%202014.svg?variant=outline&size=sm&mode=light&logo=false">
</picture>
</a>
</kbd>
<br>
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/blob/main/.github/workflows/Badge_downloads.yml">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/dynamic/json.svg?url=https://gist.githubusercontent.com/farag2/25ddc72387f298503b752ad5b8d16eed/raw/SophiaScriptDownloadsCount.json&query=%24.message&label=Downloads&logo=github&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/dynamic/json.svg?url=https://gist.githubusercontent.com/farag2/25ddc72387f298503b752ad5b8d16eed/raw/SophiaScriptDownloadsCount.json&query=%24.message&label=Downloads&logo=github&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/blob/main/.github/workflows/Badge_lines.yml">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/dynamic/json.svg?url=https://gist.githubusercontent.com/farag2/9852d6b9569a91bf69ceba8a94cc97f4/raw/SophiaScript.json&query=%24.message&label=Lines%20of%20Code&logo=github&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/dynamic/json.svg?url=https://gist.githubusercontent.com/farag2/9852d6b9569a91bf69ceba8a94cc97f4/raw/SophiaScript.json&query=%24.message&label=Lines%20of%20Code&logo=github&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<br>
<kbd>
<a href="https://t.me/sophianews">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Sophia%20News.svg?logo=telegram&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/Sophia%20News.svg?logo=telegram&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<kbd>
<a href="https://t.me/sophia_chat">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Sophia%20Chat.svg?logo=telegram&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/Sophia%20Chat.svg?logo=telegram&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<kbd>
<a href="https://discord.gg/sSryhaEv79">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Discord.svg?logo=discord&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/Discord.svg?logo=discord&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<br>
<br>
<kbd>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/Download.svg?logo=download&variant=outline&size=sm&mode=dark">
<img src="https://shieldcn.dev/badge/Download.svg?logo=download&variant=outline&size=sm&mode=light">
</picture>
</a>
</kbd>
<br>
<br>
<img src="./img/SophiaScript.svg" width='800'>
<a href="https://trendshift.io/repositories/17603"><img src="https://trendshift.io/api/badge/trendshift/repositories/17603/daily?language=PowerShell" width="250" height="55"/></a><a
href="https://trendshift.io/repositories/17603"><img src="https://trendshift.io/api/badge/trendshift/repositories/17603/weekly?language=PowerShell" width="250" height="55"/></a><br><a
href="https://trendshift.io/repositories/17603"><img src="https://trendshift.io/api/badge/trendshift/repositories/17603/monthly?language=PowerShell" width="250" height="55"/></a><a
href="https://trendshift.io/repositories/17603"><img src="https://trendshift.io/api/badge/trendshift/repositories/17603/yearly?language=PowerShell" width="250" height="55"/></a>
</div>
## 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
* All archives are built and uploaded using [GitHub Actions](https://github.com/farag2/Sophia-Script-for-Windows/actions)
* Configure Windows AI
* Configure Windows privacy, security, and personalization
* Available via Scoop, Chocolatey, and WinGet
* Arm64 support
* PowerShell 7 support
* Compatible with [VAC](https://help.steampowered.com/faqs/view/571A-97DA-70E9-FF74#whatisvac)
* Uninstall UWP apps showing their localized package names
* The list of installed UWP apps is generated [dynamically](#screenshots)
* Applied registry policies will be displayed in the Local Group Policy Editor snap-in (gpedit.msc)
* Enable DNS-over-HTTPS using
* [Cloudflare DNS](https://developers.cloudflare.com/1.1.1.1/setup/windows/)
* [Google Public DNS](https://developers.google.com/speed/public-dns/docs/using)
* [Quad9 DNS](https://quad9.net/service/service-addresses-and-features/)
* [Comss.one DNS](https://www.comss.ru/page.php?id=7315)
* [AdGuard DNS](https://adguard-dns.io/public-dns.html)
* [OpenDNS](https://www.cisco.com/c/en/us/support/docs/security/umbrella/224705-configure-dns-over-https-doh-with.html)
* Uninstall OneDrive
* Interactive [prompts and pop-ups](#screenshots)
* <kbd>TAB</kbd> [completion](#how-to-run-the-specific-functions) 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](https://www.deviantart.com/jepricreations/art/Windows-11-Cursors-Concept-v2-886489356) on the fly
* The archive is downloaded to the [Cursors](https://github.com/farag2/Sophia-Script-for-Windows/tree/main/Cursors) folder using the [DeviantArt API](https://github.com/farag2/Sophia-Script-for-Windows/blob/main/.github/workflows/Cursors.yml)
* 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](#screenshots) using friendly distro names
* Create scheduled tasks with a [native toast notification](#screenshots)
* 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
* [Key features](#key-features)
* [How to download](#how-to-download)
* [How to use](#how-to-use)
* [How to run the specific function(s)](#how-to-run-the-specific-functions)
* [System Requirements](#system-requirements)
* [Screenshots](#screenshots)
* [How to translate](#how-to-translate)
* [Media](#media)
* [SophiApp 2.0](#sophiapp-20-c--winui-3)
## How to download
### From the release page
<table>
<tr>
<td align="center">Windows 10</td>
<td align="center">Windows 11</td>
</tr>
<tr>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
<tr>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2010%20x64&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
<tr>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/LTSC%202019.svg?label=Windows%2010&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
<tr>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/LTSC%202021.svg?label=Windows%2010&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20LTSC%202024&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
<tr>
<td></td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%205.1.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
<tr>
<td></td>
<td align="left">
<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">
<img src="https://shieldcn.dev/badge/PowerShell%207.svg?label=Windows%2011%20Arm&variant=outline&size=sm&mode=light">
</picture>
</a>
</td>
</tr>
</table>
### Download via PowerShell
Download the latest `Sophia Script for Windows` version for your Windows and PowerShell versions and extract it to the Downloads folder.
```powershell
iwr script.sophia.team -useb | iex
```
Download the `Sophia Script for Windows` version from the latest [commit](https://github.com/farag2/Sophia-Script-for-Windows/commits/main/) for your Windows and PowerShell versions and extract it to the Downloads folder.
```powershell
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.
```powershell
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.
```powershell
choco install sophia --params "/PS7" --force --yes
```
```powershell
# 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.
```powershell
$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
```
```powershell
# 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.
```powershell
# scoop bucket rm extras
scoop bucket add extras
scoop install sophia-script --no-cache
```
```powershell
# Uninstall Sophia Script for Windows
scoop uninstall sophia-script --purge
```
## How to use
<https://github.com/user-attachments/assets/5af5c234-5fb5-4e7e-a3d0-ae496a89e6ba>
* 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
```powershell
cd path\to\folder
```
* Allow running scripts in the current PowerShell session only
```powershell
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
```
* Type `.\Sophia.ps1` and press <kbd>Enter</kbd>
### How to run the specific function(s)
<https://github.com/user-attachments/assets/d70150d6-af8c-4933-9ec5-b2cf3bb1dd34>
* Follow the steps from [How to use](#how-to-use) up to and including setting the execution policy, but don't run `Sophia.ps1`
* [Dot source](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_operators#dot-sourcing-operator-) the `Import-TabCompletion.ps1` file first:
```powershell
# With a dot at the beginning
. .\Import-TabCompletion.ps1
```
* Call any script function with name autocompletion using <kbd>TAB</kbd>
```powershell
Sophia -Functions<TAB>
Sophia -Functions temp<TAB>
Sophia -Functions unin<TAB>
Sophia -Functions uwp<TAB>
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", Uninstall-UWPApps
Sophia -Functions Uninstall-UWPApps, "PinToStart -UnpinAll"
```
## System Requirements
[Windows-10]: https://support.microsoft.com/topic/windows-10-update-history-8127c2c6-6edf-4fdf-8b9f-0f7be1ef3562
[Windows-10-LTSC-2019]: https://support.microsoft.com/topic/windows-10-and-windows-server-2019-update-history-725fc2e1-4443-6831-a5ca-51ff5cbcb059
[Windows-10-LTSC-2021]: https://support.microsoft.com/topic/windows-10-update-history-857b8ccb-71e4-49e5-b3f6-7073197d98fb
[Windows-11-LTSC-2024]: https://support.microsoft.com/topic/windows-11-version-24h2-update-history-0929c747-1815-4543-8461-0160d16f15e5
[Windows-11-25h2]: https://support.microsoft.com/topic/windows-11-version-25h2-update-history-99c7f493-df2a-4832-bd2d-6706baa0dec0
| Version | Build | Edition |
|:-----------------------------------------|:-------------------------------------:|:-------------------:|
| Windows 11 25H2+ | [Latest stable][Windows-11-25h2] | Home/Pro/Enterprise |
| Windows 10 x64 22H2 | [Latest stable][Windows-10] | Home/Pro/Enterprise |
| Windows 11 Enterprise LTSC 2024 | [Latest stable][Windows-11-LTSC-2024] | Enterprise |
| Windows 10 21H2 Enterprise LTSC 2021 | [Latest stable][Windows-10-LTSC-2021] | Enterprise |
| Windows 10 x64 1809 Enterprise LTSC 2019 | [Latest stable][Windows-10-LTSC-2019] | Enterprise |
## Screenshots
<table>
<tr>
<td align="center">
<img src="./img/UWP.png" width="400" alt="UWP apps removal"><br>
<sub>UWP apps</sub>
</td>
<td align="center">
<img src="./img/Tasks.png" width="400" alt="Scheduled tasks"><br>
<sub>Scheduled tasks</sub>
</td>
</tr>
<tr>
<td align="center">
<img src="./img/WSL.png" width="400" alt="WSL installation"><br>
<sub>WSL</sub>
</td>
<td align="center">
<img src="./img/Toasts.png" width="400" alt="Toast notifications"><br>
<sub>Toast notifications</sub>
</td>
</tr>
</table>
## 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
## Media
<details>
<summary>Articles and mentions</summary>
* [Comss.ru](https://www.comss.ru/page.php?id=19917)
* [Windows Central](https://www.windowscentral.com/microsoft/windows-11/how-to-fine-tune-your-pc-with-the-sophia-script-for-windows-11)
* [XDA](https://www.xda-developers.com/sophia-script-returns-control-windows-11)
* [Neowin](https://www.neowin.net/news/this-script-is-the-ultimate-tool-to-control-and-customize-windows-11)
* [Neowin 2](https://www.neowin.net/news/this-windows-10-setup-script-lets-you-fine-tune-around-150-functions-for-new-installs)
* [4sysops](https://4sysops.com/archives/windows-10-sophia-script-powershell-functions-for-windows-10-fine-tuning-and-automating-routine-configuration-tasks/)
* [gHacks](https://www.ghacks.net/2020/09/27/windows-10-setup-script-has-a-new-name-and-is-now-easier-to-use/)
* [Comss.ru 2](https://www.comss.ru/page.php?id=8019)
* [Habr](https://habr.com/company/skillfactory/blog/553800)
* [Deskmodder.de](https://www.deskmodder.de/blog/2021/08/07/sophia-script-for-windows-jetzt-fuer-windows-11-und-10/)
* [Ru-Board](https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15)
* [rutracker](https://rutracker.org/forum/viewtopic.php?t=5996011)
* [My Digital Life](https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/)
</details>
***
## SophiApp 2.0 (C# + WinUI 3)
[SophiApp 2.0](https://github.com/Sophia-Community/SophiApp) is under active development. 🚀

