Skip to content

About

⚡ The most powerful PowerShell module for fine-tuning Windows 10 & Windows 11 on GitHub

Topics

Resources

Code of conduct

Stars

9.8k stars

Watchers

158 watching

Forks

Latest commit

 

History

2,782 Commits

Folders and files

Repository files navigation

🌐 English | Deutsch | Русский | Українська

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

  • 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
  • Configure Windows AI
  • Configure Windows privacy, security, and personalization
  • Available via Scoop, Chocolatey, and WinGet
  • Arm64 support
  • PowerShell 7 support
  • Compatible with VAC
  • Uninstall UWP apps showing their localized package names
    • The list of installed UWP apps is generated dynamically
  • Applied registry policies will be displayed in the Local Group Policy Editor snap-in (gpedit.msc)
  • Enable DNS-over-HTTPS using
  • Uninstall OneDrive
  • Interactive prompts and pop-ups
  • TAB completion 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 on the fly
  • 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 using friendly distro names
  • Create scheduled tasks with a native toast notification
    • 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

How to download

From the release page

Windows 10 Windows 11

Download via PowerShell

Download the latest Sophia Script for Windows version for your Windows and PowerShell versions and extract it to the Downloads folder.

iwr script.sophia.team -useb | iex

Download the Sophia Script for Windows version from the latest commit for your Windows and PowerShell versions and extract it to the Downloads folder.

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.

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.

choco install sophia --params "/PS7" --force --yes
# 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.

$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
# 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.

# scoop bucket rm extras
scoop bucket add extras
scoop install sophia-script --no-cache
# Uninstall Sophia Script for Windows
scoop uninstall sophia-script --purge

How to use

Sophia.mp4
  • 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
cd path\to\folder
  • Allow running scripts in the current PowerShell session only
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
  • Type .\Sophia.ps1 and press Enter

How to run the specific function(s)

Call_function.mp4
  • Follow the steps from How to use up to and including setting the execution policy, but don't run Sophia.ps1
  • Dot source the Import-TabCompletion.ps1 file first:
# With a dot at the beginning
. .\Import-TabCompletion.ps1
  • Call any script function with name autocompletion using TAB
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

Version Build Edition
Windows 11 25H2+ Latest stable Home/Pro/Enterprise
Windows 10 x64 22H2 Latest stable Home/Pro/Enterprise
Windows 11 Enterprise LTSC 2024 Latest stable Enterprise
Windows 10 21H2 Enterprise LTSC 2021 Latest stable Enterprise
Windows 10 x64 1809 Enterprise LTSC 2019 Latest stable Enterprise

Screenshots

UWP apps removal
UWP apps
Scheduled tasks
Scheduled tasks
WSL installation
WSL
Toast notifications
Toast notifications

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

Articles and mentions

SophiApp 2.0 (C# + WinUI 3)

SophiApp 2.0 is under active development. 🚀

SophiApp — Privacy SophiApp — Settings

About

⚡ The most powerful PowerShell module for fine-tuning Windows 10 & Windows 11 on GitHub

Topics

Resources

Code of conduct

Stars

9.8k stars

Watchers

158 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages