Skip to content

farag2/Sophia-Script-for-Windows

Repository files navigation

Sophia Script for Windows

Sophia Script for Windows

The most powerful PowerShell module for fine-tuning Windows on GitHub

Made with of Windows







This page is also available in other languages

About Sophia Script

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 default settings.

Key features

  • Fully open-source project
  • Available via scoop, Chocolatey, and WinGet
  • Has no conflict with VAC
  • Configure Windows privacy
  • Configure Windows security
  • Personalize Windows UI
  • Display applied registry policies in the Local Group Policy Editor snap-in (gpedit.msc)
  • Enable DNS-over-HTTPS for IPv4
  • Turn off diagnostics tracking scheduled tasks with pop-up form written in WPF
  • Uninstall OneDrive "correctly"
  • Interactive prompts
  • The TAB completion for functions and their arguments (if using the Import-TabCompletion.ps1 file)
  • Change location of the user folders programmatically (without moving user files) within interactive menu using arrows to select a drive
    • Desktop
    • Documents
    • Downloads
    • Music
    • Pictures
    • Videos
  • Install free (light and dark) "Windows 11 Cursors Concept v2" cursors from Jepri Creations on-the-fly
  • Uninstall UWP apps displaying their localized packages names
  • Download and install the HEVC Video Extensions from Device Manufacturer to be able to open HEVC format
  • Set an app as default one for specific extension without the "How do you want to open this" pop-up using special function
  • Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder
  • Import exported JSON file after a clean installation. You need to install all apps according to exported JSON file to restore all associations
  • Install any supported Linux distribution for WSL displaying friendly distro names with pop-up form written in WPF
  • Create scheduled tasks with a native toast notification, where you will be able to run or dismiss 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%
  • Create tasks in the Task Scheduler to clear
    • %SystemRoot%\SoftwareDistribution\Download
    • %TEMP%
  • Install the latest provided Microsoft Visual C++ 2015–2026 x86/x64 (ARM64 supported)
  • Install the latest provided .NET Desktop Runtime 8, 9, 10 x64
  • Many more File Explorer and context menu "deep" tweaks

Table of Contents

How to download

From release page

Download depending to your Windows and PowerShell versions.

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.

iwr script.sophia.team -useb | iex

Download and expand to Downloads folder the latest Sophia Script for Windows version from the last commit depending to your Windows and PowerShell versions you use.

iwr sl.sophia.team -useb | iex

Download via Chocolatey

https://chocolatey.org

Download and expand to Downloads folder latest Sophia Script for Windows version depending to your Windows version you use.

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.

choco install sophia --params "/PS7" --force -y
# Uninstall and then remove downloaded folder manually
choco uninstall sophia --force -y

Download via WinGet

https://github.com/microsoft/winget-cli

Download and expand to Downloads folder latest Sophia Script for Windows version for Windows 11 and PowerShell 5.1 (SFX archive sophiascript.exe).

$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"
# Uninstall Sophia Script for Windows
winget uninstall --id TeamSophia.SophiaScript --force

Download via scoop

https://scoop.sh

Download and expand to Downloads folder latest Sophia Script for Windows version for Windows 11 for PowerShell 5.1.

# 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

  • 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)
    • 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
  Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
  • Type .\Sophia.ps1and press Enter
  .\Sophia.ps1

Windows 11

11.mp4

Windows 10

10.mp4

How to run the specific function(s)

  • Do all steps from How to use section and stop at setting execution policy in PowerShell
  • Dot source the Import-TabCompletion.ps1 file first:
# With a dot at the beginning
. .\Import-TabCompletion.ps1
  • Сall 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

Uninstall-UWPApps, "PinToStart -UnpinAll"
2026-01-05.182518.mp4

Wrapper

Image

Read more here

@BenchTweakGaming

  • Download the 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 section and stop at setting execution policy in PowerShell
  • Dot source the Import-TabCompletion.ps1 file first:
# With a dot at the beginning
. .\Import-TabCompletion.ps1
  • Call functions from Sophia.ps1 you want to revert like this.
Sophia -Functions "DiagTrackService -Enable", Uninstall-UWPApps

Donations

ko-fi

System Requirements

Version Build Edition
Windows 11 24H2/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 x64 21H2 Enterprise LTSC 2021 Latest stable Enterprise
Windows 10 x64 1809 Enterprise LTSC 2019 Latest stable Enterprise

Screenshots

Localized UWP packages names

Image

Download and install any supported Linux distribution in automatic mode

Image

Native interactive toasts for the scheduled tasks

Image

Videos

Video Tutorial

Chris Titus Tech' Review

Znorux' Review

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


SophiApp 2.0 (C# + WinUI 3)

SophiApp 2.0 is in ongoing development. 🚀

Image Image