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
- Open PowerShell as Administrator in the script folder and allow scripts for this session:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force - Load the functions:
. .\Functions.ps1 - Call functions with tab completion. Type part of a name and press Tab:
Sophia -Functions temp<Tab> - 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
- Find your UI culture:
$PSUICulture - Create a folder with this name in the
Localizationsfolder. - Put your translated
Sophia.psd1into it.