:zap: A powerful PowerShell module for fine-tuning and tweaking Windows 10
Sophia Script for Windows
is the largest PowerShell module on GitHub
for Windows 10
& 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.
Made with of Windows.
[!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. 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.
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
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
https://github.com/user-attachments/assets/2654b005-9577-4e56-ac9e-501d3e8a18bd
https://github.com/user-attachments/assets/f5bda68f-9509-41dc-b3b1-1518aeaee36f
PowerShell
;Import-TabCompletion.ps1
file first:
# With a dot at the beginning
. .\Import-TabCompletion.ps1
Sophia -Functions<TAB>
Sophia -Functions temp<TAB>
Sophia -Functions unin<TAB>
Sophia -Functions uwp<TAB>
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"
https://github.com/user-attachments/assets/ea90122a-bdb3-4687-bf8b-9b6e7af46826
SophiaScriptWrapper.exe
and import Sophia.ps1
;Sophia.ps1
has to be in Sophia Script
folder;Console Output
tab and press Run PowerShell
.Version | Marketing name | Build | Edition |
---|---|---|---|
Windows 11 24H2 | 2024 Update | Latest stable | Home/Pro/Enterprise |
Windows 10 x64 22H2 | 2022 Update | Latest stable | Home/Pro/Enterprise |
Windows 11 Enterprise LTSC 2024 | 2024 Update | Latest stable | Enterprise |
Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | Latest stable | Enterprise |
Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 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. 🚀