{"id":13405475,"url":"https://github.com/farag2/Sophia-Script-for-Windows","last_synced_at":"2025-03-14T10:30:37.728Z","repository":{"id":37011284,"uuid":"153443362","full_name":"farag2/Sophia-Script-for-Windows","owner":"farag2","description":":zap: The most powerful PowerShell module on GitHub for fine-tuning Windows 10 \u0026 Windows 11","archived":false,"fork":false,"pushed_at":"2024-10-28T20:24:42.000Z","size":126834,"stargazers_count":7710,"open_issues_count":0,"forks_count":583,"subscribers_count":155,"default_branch":"master","last_synced_at":"2024-10-29T10:02:47.162Z","etag":null,"topics":["22h2","23h2","debloat","debloater","debloating","gui","ltsc","powershell","script","sophia","sophia-script","tweak","tweaker","tweaks","windows","windows-10","windows-11","windows-debloat"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farag2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supported_windows_builds.json","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"ko_fi":"farag"}},"created_at":"2018-10-17T11:09:58.000Z","updated_at":"2024-10-29T09:10:44.000Z","dependencies_parsed_at":"2023-09-24T16:16:30.412Z","dependency_job_id":"2cf7fe1a-bafb-4c43-8de0-9008aea43d96","html_url":"https://github.com/farag2/Sophia-Script-for-Windows","commit_stats":{"total_commits":2112,"total_committers":32,"mean_commits":66.0,"dds":0.3172348484848485,"last_synced_commit":"5f18b52f1ec7fec79f903d05a2eed5ad3cac9f0c"},"previous_names":[],"tags_count":144,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farag2%2FSophia-Script-for-Windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farag2%2FSophia-Script-for-Windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farag2%2FSophia-Script-for-Windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farag2%2FSophia-Script-for-Windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farag2","download_url":"https://codeload.github.com/farag2/Sophia-Script-for-Windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243086250,"owners_count":20234006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["22h2","23h2","debloat","debloater","debloating","gui","ltsc","powershell","script","sophia","sophia-script","tweak","tweaker","tweaks","windows","windows-10","windows-11","windows-debloat"],"created_at":"2024-07-30T19:02:03.262Z","updated_at":"2025-03-14T10:30:37.718Z","avatar_url":"https://github.com/farag2.png","language":"PowerShell","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/Sophia.png\" alt=\"Sophia Script for Windows\" width='150'\u003e\n\n# Sophia Script for Windows\n\n**Sophia Script for Windows is the most powerful PowerShell module for fine-tuning Windows**\n\n[downloads-badge]: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/farag2/25ddc72387f298503b752ad5b8d16eed/raw/SophiaScriptDownloadsCount.json\n[chocolatey-badge]: https://img.shields.io/chocolatey/dt/sophia?color=blue\u0026label=chocolatey%20package\n[chocolatey-link]: https://community.chocolatey.org/packages/sophia\n[lines-badge]: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/farag2/9852d6b9569a91bf69ceba8a94cc97f4/raw/SophiaScript.json\n[lines-link]: https://github.com/farag2/Sophia-Script-for-Windows\n[badge-code]: https://github.com/farag2/Sophia-Script-for-Windows/blob/master/.github/workflows/Badge_downloads.yml\n\n[![downloads][downloads-badge]][badge-code]\n[![chocolatey][chocolatey-badge]][chocolatey-link]\n[![lines][lines-badge]][lines-link]\n\n[telegram-news-badge]: https://img.shields.io/badge/Sophia%20News-Telegram-blue?style=flat\u0026logo=Telegram\n[telegram-news]: https://t.me/sophianews\n[telegram-group]: https://t.me/sophia_chat\n[telegram-group-badge]: https://img.shields.io/endpoint?color=neon\u0026label=Sophia%20Chat\u0026style=flat\u0026url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fsophia_chat\n[discord-news-badge]: https://discordapp.com/api/guilds/1006179075263561779/widget.png?style=shield\n[discord-link]: https://discord.gg/sSryhaEv79\n\n[![Telegram][telegram-news-badge]][telegram-news]\n[![Telegram][telegram-group-badge]][telegram-group]\n[![Discord][discord-news-badge]][discord-link]\n\n[![build](https://img.shields.io/github/actions/workflow/status/farag2/Sophia-Script-for-Windows/Sophia.yml?label=build\u0026logo=GitHub)](https://github.com/farag2/Sophia-Script-for-Windows/actions)\n[![GitHub Release](https://img.shields.io/github/v/release/farag2/Sophia-Script-for-Windows)](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)\n\n[![uk-UA](https://img.shields.io/badge/lang-uk--UA-blue)](./docs/README_uk-ua.md)\n[![de](https://img.shields.io/badge/lang-de-black)](./docs/README_de-de.md)\n[![ru](https://img.shields.io/badge/lang-ru-red)](./docs/README_ru-ru.md)\n\n\u003cimg src=\"./img/SophiaScript.png\" alt=\"Sophia Script for Windows\" width='800'\u003e\n\n\u003c/div\u003e\n\n## About Sophia Script\n\n`Sophia Script for Windows` is the largest PowerShell module on `GitHub` for `Windows 10` \u0026 `Windows 11` for fine-tuning and automating the routine tasks. It offers more than 150 unique tweaks, and shows how Windows can be configured without making any harm to it.\n\nMade with \u003cimg src=\"https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/img/heart.svg\" height=\"17px\"/\u003e of Windows.\n\n## Table of Contents\n\n* [How to use](#how-to-use)\n  * [Download via PowerShell](#download-via-powershell)\n  * [Manual method](#manual-method)\n  * [How to run the specific function(s)](#how-to-run-the-specific-functions)\n  * [Wrapper](#wrapper)\n* [Donations](#donations)\n* [System Requirements](#system-requirements)\n* [Key features](#key-features)\n* [Screenshots](#screenshots)\n* [Videos](#videos)\n* [How to translate](#how-to-translate)\n* [Media](#media)\n* [SophiApp](#sophiapp-c--wpf)\n\n## How to use\n\n\u003e [!IMPORTANT]\n\u003e Every tweak in the preset file has its' corresponding function to restore the default settings. Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring.\n\n\u003e [!WARNING]\n\u003e It's allowed to be logged in as one admin user only during application startup.\n\u003e\n\u003e `Sophia Script for Windows` may not work on a homebrew Windows. Especially, if the homebrew image was created by OS makers being all thumbs who break Microsoft Defender and disable OS telemetry by purposely uprooting system components.\n\n### Download via PowerShell\n\nThe command will download and expand the latest Sophia Script archive (`without running`) according which Windows and PowerShell versions it is run on. If you run it on, e.g., Windows 11 via PowerShell 5.1, it will download Sophia Script for `Windows 11 PowerShell 5.1`.\n\n```powershell\niwr script.sophia.team -useb | iex\n```\n\nThe command will download and expand the latest Sophia Script archive (`without running`) from the `last commit available` according which Windows and PowerShell versions it is run on.\n\n```powershell\niwr sl.sophia.team -useb | iex\n```\n\n### Manual method\n\n* Download an [archive](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest) according to your Windows and PowerShell versions;\n* Expand archive;\n* Look through the `Sophia.ps1` file to configure functions that you want to be run;\n  * Place the `#` char before function if you don't want it to be run.\n  * Remove the `#` char before function if you want it to be run.\n* Copy the whole path to `Sophia.ps1`\n  * On `Windows 10` press and hold the \u003ckbd\u003eShift\u003c/kbd\u003e key, right click on `Sophia.ps1`, and click on `Copy as path`;\n  * On `Windows 11` right click on `Sophia.ps1` and click on `Copy as path`.\n* Open `Windows PowerShell`\n  * 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/)\n  * On `Windows 11` right-click on the \u003ckbd\u003eWindows\u003c/kbd\u003e icon and open `Windows Terminal (Admin)`;\n* Set execution policy to be able to run scripts only in the current PowerShell session;\n\n```powershell\n  Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force\n```\n\n* Type `.\\Sophia.ps1`and press \u003ckbd\u003eEnter\u003c/kbd\u003e;\n\n```powershell\n  .\\Sophia.ps1\n```\n\n### Windows 11\n\n\u003chttps://github.com/user-attachments/assets/2654b005-9577-4e56-ac9e-501d3e8a18bd\u003e\n\n### Windows 10\n\n\u003chttps://github.com/user-attachments/assets/f5bda68f-9509-41dc-b3b1-1518aeaee36f\u003e\n\n### How to run the specific function(s)\n\n* Do all steps from [Manual method](#manual-method) section and stop at setting execution policy in `PowerShell`;\n* [Dot source](https://docs.microsoft.com/ru-ru/powershell/module/microsoft.powershell.core/about/about_operators#dot-sourcing-operator) the `Functions.ps1` file first:\n\n```powershell\n# With a dot at the beginning\n. .\\Functions.ps1\n```\n\n* Now you can do like this (the quotation marks required)\n\n```powershell\nSophia -Functions\u003cTAB\u003e\nSophia -Functions temp\u003cTAB\u003e\nSophia -Functions unin\u003cTAB\u003e\nSophia -Functions uwp\u003cTAB\u003e\nSophia -Functions \"DiagTrackService -Disable\", \"DiagnosticDataLevel -Minimal\", UninstallUWPApps\n\nUninstallUWPApps, \"PinToStart -UnpinAll\"\n```\n\nOr use an old-style format without the \u003ckbd\u003eTAB\u003c/kbd\u003e functions autocomplete (the quotation marks required)\n\n```powershell\n.\\Sophia.ps1 -Functions CreateRestorePoint, \"ScheduledTasks -Disable\", \"WindowsCapabilities -Uninstall\"\n```\n\n\u003chttps://github.com/user-attachments/assets/ea90122a-bdb3-4687-bf8b-9b6e7af46826\u003e\n\n## Wrapper\n\n![Wrapper](https://i.imgur.com/AiuCUvW.png)\n\n@BenchTweakGaming\n\n* Download the [latest](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest) Wrapper version;\n* Expand archive;\n* Run `SophiaScriptWrapper.exe` and import `Sophia.ps1`;\n  * `Sophia.ps1` has to be in `Sophia Script` folder;\n  * The Wrapper has a real time UI rendering;\n* Configure every function;\n* Open the `Console Output` tab and press `Run PowerShell`.\n\n## Donations\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/farag)⠀⠀⠀\u003ca href=\"https://boosty.to/teamsophia\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/img/boosty.png\" width='40'\u003e\u003c/a\u003e\n\n## System Requirements\n\n[Windows-10]: https://support.microsoft.com/topic/windows-10-update-history-8127c2c6-6edf-4fdf-8b9f-0f7be1ef3562\n[Windows-10-LTSC-2019]: https://support.microsoft.com/topic/windows-10-and-windows-server-2019-update-history-725fc2e1-4443-6831-a5ca-51ff5cbcb059\n[Windows-10-LTSC-2021]: https://support.microsoft.com/topic/windows-10-update-history-857b8ccb-71e4-49e5-b3f6-7073197d98fb\n[Windows-11-LTSC-2024]: https://support.microsoft.com/topic/windows-11-version-24h2-update-history-0929c747-1815-4543-8461-0160d16f15e5\n[Windows-11-23h2]: https://support.microsoft.com/topic/windows-11-version-23h2-update-history-59875222-b990-4bd9-932f-91a5954de434\n[Windows-11-24h2]: https://support.microsoft.com/topic/windows-11-version-24h2-update-history-0929c747-1815-4543-8461-0160d16f15e5\n\n|               Version                    |    Marketing name   |                  Build                |      Edition        |\n|:-----------------------------------------|--------------------:|:-------------------------------------:|:-------------------:|\n| Windows 11 24H2                          | 2024 Update         | [Latest stable][Windows-11-24h2]      | Home/Pro/Enterprise |\n| Windows 11 23H2                          | 2023 Update         | [Latest stable][Windows-11-23h2]      | Home/Pro/Enterprise |\n| Windows 10 x64 22H2                      | 2022 Update         | [Latest stable][Windows-10]           | Home/Pro/Enterprise |\n| Windows 11 Enterprise LTSC 2024          | 2024 Update         | [Latest stable][Windows-11-LTSC-2024] | Enterprise          |\n| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | [Latest stable][Windows-10-LTSC-2021] | Enterprise          |\n| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | [Latest stable][Windows-10-LTSC-2019] | Enterprise          |\n\n## Key features\n\n* All archives are being built via GitHub Actions [automatically](https://github.com/farag2/Sophia-Script-for-Windows/actions);\n* Set up Privacy \u0026 Telemetry;\n* Enable DNS-over-HTTPS for IPv4;\n* Turn off diagnostics tracking scheduled tasks with pop-up form written in [WPF](#screenshots);\n* Set up UI \u0026 Personalization;\n* Uninstall OneDrive \"correctly\";\n* Interactive [prompts](#change-user-folders-location-programmatically-using-the-interactive-menu);\n* The \u003ckbd\u003eTAB\u003c/kbd\u003e [completion](#the-tab-autocomplete-read-more-here) for functions and their arguments (if using the Functions.ps1 file);\n* Change location of the user folders programmatically (without moving user files) within interactive menu using arrows to select a drive\n  * Desktop\n  * Documents\n  * Downloads\n  * Music\n  * Pictures\n  * Videos\n* 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;\n* Uninstall UWP apps displaying thier localized packages names;\n  * Script generates installed UWP apps list [dynamically](#localized-uwp-packages-names)\n* Disable Windows features displaying friendly packages names with pop-up form written in [WPF](#screenshots);\n* Uninstall Windows capabilities displaying friendly packages names with pop-up form written in [WPF](#screenshots);\n* Download and install the [HEVC Video Extensions from Device Manufacturer](https://apps.microsoft.com/detail/9N4WGH0Z6VHQ) to be able to open [HEVC](https://en.wikipedia.org/wiki/H.265) format;\n* Set an app as default one for specific extension without the \"How do you want to open this\" pop-up using special [function](https://github.com/DanysysTeam/PS-SFTA);\n* Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder;\n* Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations;\n* Install any supported Linux distribution for WSL displaying friendly distro names with pop-up form written in [WPF](#screenshots);\n* 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;\n  * Create scheduled tasks `Windows Cleanup` and `Windows Cleanup Notification` for cleaning up Windows of unused files and Windows updates files;\n  * Create a scheduled task `SoftwareDistribution` for cleaning up `%SystemRoot%\\SoftwareDistribution\\Download`;\n  * Create a scheduled task `Temp` for cleaning up `%TEMP%`.\n* Create tasks in the Task Scheduler to clear\n  * `%SystemRoot%\\SoftwareDistribution\\Download`\n  * `%TEMP%`\n* Install the latest provided Microsoft Visual C++ 2015–2022 x86/x64;\n* Install the latest provided .NET Desktop Runtime 6, 8 x86/x64;\n* Configure the Windows security;\n* Display all policy registry keys (even manually created ones) in the Local Group Policy Editor snap-in (gpedit.msc);\n* Many more File Explorer and context menu \"deep\" tweaks.\n\n## Screenshots\n\n### The \u003ckbd\u003eTAB\u003c/kbd\u003e autocomplete. Read more [here](#how-to-run-the-specific-functions)\n\nhttps://user-images.githubusercontent.com/10544660/225270281-908abad1-d125-4cae-a19b-2cf80d5d2751.mp4\n\n### Change user folders location programmatically using the interactive menu\n\nhttps://user-images.githubusercontent.com/10544660/253818031-b7ce6bf1-d968-41ea-a5c0-27f6845de402.mp4\n\n### Localized UWP packages names\n\n![Image](https://i.imgur.com/xeiBbes.png) ![Image](https://i.imgur.com/0zj0h2S.png)\n\n### Localized Windows features names\n\n![Image](https://i.imgur.com/xlMR2mz.png) ![Image](https://i.imgur.com/yl9j9Vt.png)\n\n### Download and install any supported Linux distribution in automatic mode\n\n![Image](https://i.imgur.com/Xn5SqxE.png)\n\n### Native interactive toasts for the scheduled tasks\n\n![Image](https://github.com/farag2/Sophia-Script-for-Windows/raw/master/img/Toasts.png)\n\n## Videos\n\n[![YT](https://img.youtube.com/vi/q_weQifFM58/0.jpg)](https://www.youtube.com/watch?v=q_weQifFM58)\n\n[![YT](https://img.youtube.com/vi/8E6OT_QcHaU/1.jpg)](https://youtu.be/8E6OT_QcHaU?t=370) [![YT](https://img.youtube.com/vi/091SOihvx0k/1.jpg)](https://youtu.be/091SOihvx0k?t=490)\n\n## How to translate\n\n* Get your OS UI culture by invoking `$PSUICulture` in PowerShell;\n* Create a folder with the UI culture name;\n* Place your localized Sophia.psd1 file into this folder.\n\n## Media\n\n* [![Discord](https://discordapp.com/api/guilds/1006179075263561779/widget.png?style=shield)](https://discord.gg/sSryhaEv79)\n* [Telegram discussion group](https://t.me/sophia_chat)\n* [Telegram channel](https://t.me/sophianews)\n* [Ru-Board](https://forum.ru-board.com/topic.cgi?forum=62\u0026topic=30617#15)\n* [rutracker](https://rutracker.org/forum/viewtopic.php?t=5996011)\n* [My Digital Life](https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/)\n* [4sysops](https://4sysops.com/archives/windows-10-sophia-script-powershell-functions-for-windows-10-fine-tuning-and-automating-routine-configuration-tasks/)\n* [gHacks](https://www.ghacks.net/2020/09/27/windows-10-setup-script-has-a-new-name-and-is-now-easier-to-use/)\n* [Neowin](https://www.neowin.net/news/this-windows-10-setup-script-lets-you-fine-tune-around-150-functions-for-new-installs)\n* [Comss.ru](https://www.comss.ru/page.php?id=8019)\n* [Habr](https://habr.com/company/skillfactory/blog/553800)\n* [Deskmodder.de](https://www.deskmodder.de/blog/2021/08/07/sophia-script-for-windows-jetzt-fuer-windows-11-und-10/)\n* [PCsoleil Informatique](https://www.pcsoleil.fr/successeur-de-win10-initial-setup-script-sophia-script-comment-lutiliser/)\n* [Reddit (archived)](https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/)\n  * PM [me](https://www.reddit.com/user/farag2/)\n\n***\n\n## SophiApp (C# + WPF)\n\n[SophiApp 2.0](https://github.com/Sophia-Community/SophiApp) is in ongoing development. 🚀\n\n![Image](https://github.com/Sophia-Community/SophiApp/raw/master/img/0.gif)\n![Image](https://github.com/Sophia-Community/SophiApp/raw/master/img/1.png)\n","funding_links":["https://ko-fi.com/farag"],"categories":["PowerShell","Powershell and batch scripts","Customize"],"sub_categories":["System Customization"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarag2%2FSophia-Script-for-Windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarag2%2FSophia-Script-for-Windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarag2%2FSophia-Script-for-Windows/lists"}