Sophia Script

Usage

Run the whole preset, or call only the functions you need.

Run the preset

Edit Sophia.ps1 and run it as described in Installation. Every tweak in the preset has a matching function that restores the default value, so you can undo a change later.

Run single functions

  1. Open PowerShell as Administrator in the script folder and allow scripts for this session:
    Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
  2. Load the functions:
    . .\Functions.ps1
  3. Call functions with tab completion. Type part of a name and press Tab:
    Sophia -Functions temp<Tab>
  4. Or pass several functions at once. Functions with arguments go in quotes:
    Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps

Older syntax

You can also pass functions directly to the preset file:

.\Sophia.ps1 -Functions CreateRestorePoint, "ScheduledTasks -Disable", "WindowsCapabilities -Uninstall"

Translation

  1. Find your UI culture:
    $PSUICulture
  2. Create a folder with this name in the Localizations folder.
  3. Put your translated Sophia.psd1 into it.