🌐 [English](/README.md) | [Deutsche](/README_de-de.md) | [Русский](/README_ru-ru.md) | [Українська](/README_uk-ua.md)
Sophia Script for Windows # Sophia Script for Windows The most powerful PowerShell module for fine-tuning Windows on GitHub Made with of Windows





## Key features * More than 150 unique functions to configure Windows using Microsoft's officially documented ways without making any harm to it * Every tweak has its corresponding function to restore default settings * Configure Windows AI * Configure Windows privacy, security, personalization * Fully open-source project * All archives are being built and uploaded using [GitHub Actions](https://github.com/farag2/Sophia-Script-for-Windows/actions) * Available via Scoop, Chocolatey, and WinGet * Supports ARM64 and PowerShell 7 * Has no conflict with [VAC](https://help.steampowered.com/faqs/view/571A-97DA-70E9-FF74#whatisvac) * Uninstall UWP apps displaying their localized packages names * Script generates installed UWP apps list [dynamically](#localized-uwp-packages-names) * Display applied registry policies 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) * Uninstall OneDrive * Interactive [prompts and popups](#screenshots) * TAB [completion](#how-to-run-the-specific-functions) for functions and their arguments (using Import-TabCompletion.ps1) * Change location of the user folders (without moving user files) using an interactive menu * Desktop * Documents * Downloads * Music * Pictures * Videos * Install free (light and dark) `Windows 11 Cursors Concept v2` cursors from [Jepri Creations](https://www.deviantart.com/jepricreations/art/Windows-11-Cursors-Concept-v2-886489356) on-the-fly * Archive was downloaded to [Cursors](https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Cursors) folder using [DeviantArt API](https://github.com/farag2/Sophia-Script-for-Windows/blob/master/.github/workflows/Cursors.yml) * Set an app as default one for specific extension without "How do you want to open this" pop-up * Export and import all Windows associations. You need to install all apps according to exported JSON file to restore all associations * Install WSL Linux distribution with [pop-up](#screenshots) using friendly distro names * Create scheduled tasks with a native toast notification, where you will be able to run or [dismiss](#native-interactive-toasts-for-the-scheduled-tasks) tasks * Create scheduled tasks `Windows Cleanup` and `Windows Cleanup Notification` for cleaning up Windows of unused files and Windows updates files * Create a scheduled task `SoftwareDistribution` for cleaning up `%SystemRoot%\SoftwareDistribution\Download` * Create a scheduled task `Temp` for cleaning up `%TEMP%` * Install the latest provided Microsoft Visual C++ 2015–2026 x86/x64 * Install the latest provided .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) * [From release page](#from-release-page) * [Download via PowerShell](#download-via-powershell) * [Download via Chocolatey](#download-via-chocolatey) * [Download via WinGet](#download-via-winget) * [Download via Scoop](#download-via-Scoop) * [How to use](#how-to-use) * [How to run the specific function(s)](#how-to-run-the-specific-functions) * [Wrapper](#wrapper) * [How to revert changes](#how-to-revert-changes) * [Donations](#donations) * [System Requirements](#system-requirements) * [Screenshots](#screenshots) * [Videos](#videos) * [How to translate](#how-to-translate) * [Media](#media) * [SophiApp 2](#sophiapp-20-c--winui-3) ## How to download ### From release page
Windows 10 Windows 11
### Download via PowerShell Download and expand to Downloads folder the latest `Sophia Script for Windows` version depending to your Windows and PowerShell versions you use. ```powershell iwr script.sophia.team -useb | iex ``` Download and expand to Downloads folder the latest `Sophia Script for Windows` version from the last [commit](https://github.com/farag2/Sophia-Script-for-Windows/commits/master/) depending to your Windows and PowerShell versions you use. ```powershell iwr sl.sophia.team -useb | iex ``` ### Download via Chocolatey Download and expand to Downloads folder latest `Sophia Script for Windows` version depending to your Windows version you use. ```powershell choco install sophia --force -y ``` Download and expand to Downloads folder latest `Sophia Script for Windows` version for PowerShell 7 depending to your Windows version you use. ```powershell choco install sophia --params "/PS7" --force -y ``` ```powershell # Uninstall and then remove downloaded folder manually choco uninstall sophia --force -y ``` ### Download via WinGet Download and expand to Downloads folder latest `Sophia Script for Windows` version for Windows 11 and PowerShell 5.1 (SFX archive `sophiascript.exe`). ```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" ``` ```powershell # Uninstall Sophia Script for Windows winget uninstall --id TeamSophia.SophiaScript --force ``` ### Download via Scoop Download and expand to Downloads folder latest `Sophia Script for Windows` version for Windows 11 for PowerShell 5.1. ```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 * Download archive and expand it * Look through the `Sophia.ps1` file to configure functions that you want to be run * Place the `#` char before function if you don't want it to be run. * Remove the `#` char before function if you want it to be run. * Copy the whole path to `Sophia.ps1` * On `Windows 10` press and hold the Shift key, right click on `Sophia.ps1`, and click on `Copy as path` * On `Windows 11` right click on `Sophia.ps1` and click on `Copy as path`. * Open `Windows PowerShell` * On `Windows 10` click `File` in the File Explorer, hover over `Open Windows PowerShell`, and select `Open Windows PowerShell as Administrator` [(how-to with screenshots)](https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/) * On `Windows 11` right-click on the Windows icon and open `Windows Terminal (Admin)` * Set execution policy to be able to run scripts only in the current PowerShell session ```powershell Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force ``` * Type `.\Sophia.ps1`and press Enter ```powershell .\Sophia.ps1 ``` ### Windows 11 ### Windows 10 ### How to run the specific function(s) * Do all steps from [How to use](#how-to-use) section and stop at setting execution policy in `PowerShell` * [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 ``` * Сall any script function with name autocompletion using TAB ```powershell Sophia -Functions Sophia -Functions temp Sophia -Functions unin Sophia -Functions uwp Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", Uninstall-UWPApps Uninstall-UWPApps, "PinToStart -UnpinAll" ``` ## Wrapper ![Image](https://github.com/farag2/Sophia-Script-for-Windows/raw/master/img/Wrapper.png) Read more [here](./Wrapper/README.md) [@BenchTweakGaming](https://github.com/BenchTweakGaming) * Download the [latest](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest) Wrapper version * Expand archive * Run `SophiaScriptWrapper.exe` and import `Sophia.ps1` * `Sophia.ps1` has to be in `Sophia Script` folder * The Wrapper has a real time UI rendering * Configure every function * Open the `Console Output` tab and press `Run PowerShell`. ## How to revert changes * Do all steps from [How to use](#how-to-use) section and stop at setting execution policy in `PowerShell` * [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 functions from `Sophia.ps1` you want to revert like this. ```powershell Sophia -Functions "DiagTrackService -Enable", Uninstall-UWPApps ``` ## Donations [![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/farag) ## 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-24h2]: https://support.microsoft.com/topic/windows-11-version-25h2-update-history-99c7f493-df2a-4832-bd2d-6706baa0dec0 | Version | Build | Edition | |:-----------------------------------------|:-------------------------------------:|:-------------------:| | Windows 11 24H2/25H2+ | [Latest stable][Windows-11-24h2] | 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 x64 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 ### Localized UWP packages names ![Image](./img/uwpapps.png) ### Download and install any supported Linux distribution in automatic mode ![Image](./img/WSL.png) ### Native interactive toasts for the scheduled tasks ![Image](https://github.com/farag2/Sophia-Script-for-Windows/raw/master/img/Toasts.png) ## Videos [Video Tutorial](https://www.youtube.com/watch?v=q_weQifFM58) [Chris Titus Tech' Review](https://youtu.be/8E6OT_QcHaU?t=370) [Znorux' Review](https://youtu.be/091SOihvx0k?t=490) ## How to translate * Get your OS UI culture by invoking `$PSUICulture` in PowerShell * Create a folder with the UI culture name * Place your localized SophiaScript.psd1 file into this folder. ## Media * [XDA](https://www.xda-developers.com/sophia-script-returns-control-windows-11) * [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/) * [Neowin](https://www.neowin.net/news/this-windows-10-setup-script-lets-you-fine-tune-around-150-functions-for-new-installs) * [Comss.ru](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/) * [PCsoleil Informatique](https://www.pcsoleil.fr/successeur-de-win10-initial-setup-script-sophia-script-comment-lutiliser/) * [Reddit (archived)](https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/) * PM [me](https://www.reddit.com/user/farag2/) * [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/) *** ## SophiApp 2.0 (C# + WinUI 3) [SophiApp 2.0](https://github.com/Sophia-Community/SophiApp) is in ongoing development. 🚀 ![Image](https://github.com/farag2/Sophia-Script-for-Windows/raw/master/img/0.gif) ![Image](https://github.com/farag2/Sophia-Script-for-Windows/raw/master/img/1.png)