winget install --id=TeamSophia.SophiaScript -e
Sophia Script for Windows is the largest PowerShell module on GitHub for Windows 10 and Windows 11 fine-tuning and automating the routine tasks
Sophia Script for Windows is a powerful PowerShell module designed to fine-tune and automate routine tasks on Windows 10 and Windows 11. It provides over 150 unique tweaks, enabling users to customize their system safely without causing harm.
Key Features:
Audience & Benefit:
Ideal for system administrators, power users, and IT professionals who seek to optimize their Windows environment. Sophia Script allows users to debloat the system, customize settings, and streamline workflows efficiently while maintaining stability and security. It can be installed via winget for easy setup on supported Windows versions.
The most powerful PowerShell module for fine-tuning Windows on GitHub
Made with of Windows.
<a href="https://github.com/farag2/Sophia-Script-for-Windows/actions"><img src="https://img.shields.io/github/actions/workflow/status/farag2/Sophia-Script-for-Windows/Sophia.yml?labelColor=151B23&color=151B23&style=for-the-badge&label=build&logo=GitHub" /></a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"><img src="https://img.shields.io/github/v/release/farag2/Sophia-Script-for-Windows?labelColor=151B23&color=151B23&style=for-the-badge&logo=GitHub" /></a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/blob/master/.github/workflows/Badge_downloads.yml"><img src="https://img.shields.io/endpoint?labelColor=151B23&color=151B23&style=for-the-badge&url=https://gist.githubusercontent.com/farag2/25ddc72387f298503b752ad5b8d16eed/raw/SophiaScriptDownloadsCount.json" /></a>
<a href="https://github.com/farag2/Sophia-Script-for-Windows/blob/master/.github/workflows/Badge_lines.yml"><img src="https://img.shields.io/endpoint?labelColor=151B23&color=151B23&style=for-the-badge&url=https://gist.githubusercontent.com/farag2/9852d6b9569a91bf69ceba8a94cc97f4/raw/SophiaScript.json" /></a>
<a href="https://t.me/sophianews"><img src="https://img.shields.io/badge/Sophia%20News-green?labelColor=151B23&color=151B23&style=for-the-badge&logo=telegram&logoColor=white" /></a>
<a href="https://t.me/sophia_chat"><img src="https://img.shields.io/badge/Sophia%20Chat-green?labelColor=151B23&color=151B23&style=for-the-badge&logo=telegram&logoColor=white" /></a>
<a href="https://discord.gg/sSryhaEv79"><img src="https://img.shields.io/badge/Disord-green?labelColor=151B23&color=151B23&style=for-the-badge&logo=discord&logoColor=white" /></a>
This page is also available in other languages
Sophia Script for Windows
is the most powerful PowerShell module for fine-tuning Windows
and automating the routine tasks on GitHub
. It offers more than 150 unique tweaks, and shows how Windows can be configured without making any harm to it.
> [!IMPORTANT] > 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.
> [!WARNING]
> It's allowed to be logged in as one admin user only during application startup.
>
> Sophia Script for Windows
may not work on a homebrew Windows.
The 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
.
iwr script.sophia.team -useb | iex
The 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.
iwr sl.sophia.team -useb | iex
The command will download and expand the latest Sophia Script archive (without running
) according which Windows it is run on. If you run it on Windows 11, it will download Sophia Script for Windows 11
. For PowerShell 5.1
by default is not otherwise specified.
choco install sophia --force -y
Download Sophia Script for Windows
for PowerShell 7
.
choco install sophia --params "/PS7" --force -y
# Uninstall Sophia Script
# Then remove downloaded folder manually
choco uninstall sophia --force -y
The command downloads only Windows 11 (PowerShell 5.1)
archive to your Downloads
folder unlike the Chocolatey
script and expands it.
$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
# Uninstall Sophia Script
winget uninstall --id TeamSophia.SophiaScript --force
Download archive according to your Windows and PowerShell versions.
Sophia.ps1
file to configure functions that you want to be run;
#
char before function if you don't want it to be run.#
char before function if you want it to be run.Sophia.ps1
Windows 10
press and hold the Shift key, right click on Sophia.ps1
, and click on Copy as path
;Windows 11
right click on Sophia.ps1
and click on Copy as path
.Windows PowerShell
Windows 10
click File
in the File Explorer, hover over Open Windows PowerShell
, and select Open Windows PowerShell as Administrator
(how-to with screenshots)Windows 11
right-click on the Windows icon and open Windows Terminal (Admin)
; Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.\Sophia.ps1
and press Enter; .\Sophia.ps1
PowerShell
;Import-TabCompletion.ps1
file first:# With a dot at the beginning
. .\Import-TabCompletion.ps1
Sophia -Functions
Sophia -Functions temp
Sophia -Functions unin
Sophia -Functions uwp
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
UninstallUWPApps, "PinToStart -UnpinAll"
Or use an old-style format without the TAB functions autocomplete (the quotation marks required)
.\Sophia.ps1 -Functions CreateRestorePoint, "ScheduledTasks -Disable", "WindowsCapabilities -Uninstall"
@BenchTweakGaming
SophiaScriptWrapper.exe
and import Sophia.ps1
;
Sophia.ps1
has to be in Sophia Script
folder;Console Output
tab and press Run PowerShell
.PowerShell
;Import-TabCompletion.ps1
file first:# With a dot at the beginning
. .\Import-TabCompletion.ps1
Sophia.ps1
you want to revert like this.Sophia -Functions "DiagTrackService -Enable", UninstallUWPApps
Version | Build | Edition |
---|---|---|
Windows 11 24H2 | Latest stable | Home/Pro/Enterprise |
Windows 10 x64 22H2 | Latest stable | Home/Pro/Enterprise |
Windows 11 Enterprise LTSC 2024 | Latest stable | Enterprise |
Windows 10 x64 21H2 Enterprise LTSC 2021 | Latest stable | Enterprise |
Windows 10 x64 1809 Enterprise LTSC 2019 | Latest stable | Enterprise |
Windows Cleanup
and Windows Cleanup Notification
for cleaning up Windows of unused files and Windows updates files;SoftwareDistribution
for cleaning up %SystemRoot%\SoftwareDistribution\Download
;Temp
for cleaning up %TEMP%
.%SystemRoot%\SoftwareDistribution\Download
%TEMP%
$PSUICulture
in PowerShell;SophiApp 2.0 is in ongoing development. 🚀