Sophia-Script-for-Windows

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

MIT License

Stars
7.3K
Committers
30

Bot releases are hidden (Show)

Sophia-Script-for-Windows - 17.05.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.10.4
5.10.4...5.10.5

  • Updated all WPF forms;
    • The WPF forms' appearance has been brought to the single design;
    • Now window forms are opened in their own separate windows;
    • Fixed bug when opening window form freezed waiting for pressing any button;
    • Fixed bug when opened window form was in the background;
  • PowerShell 7 version;
    • CsWinRT updated up to 1.2.6;
    • Microsoft.Windows.SDK.NET.Ref updated up to 10.0.19041.17.
  • Minor changes. :feelsgood:
File SHA-256
Sophia.Script.LTSC.v5.2.5.zip 5D7C674274B23E67C64B344FAFA5CCC1654DE93E734705D9AABB9617D1461CF5
Sophia.Script.v5.10.5.PowerShell.7.zip F0B89CE96FFCB2B98A263CDD44B3AE8D7939C58292D00D347E0FC3DD9FB4C79E
Sophia.Script.v5.10.5.zip 7A98B7B4C14B0569A5C757ADE8CA04F177FC7ACEC7BEADACCBC30DA640F422C1
Sophia.Script.Wrapper.zip F0033929AC31804CDCB3947E6996A3BEC3B623F278FAB3526A12A06337C3F368
Sophia-Script-for-Windows - 08.05.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.10.3
5.10.3...5.10.4

  • Почитайте лонгрид на Хабре, как происходила разработка скрипта последние полгода.
  • Added a warning message before the script running to be sure a user has customized the Sophia.ps1 preset file;
    • You may disable it by removing the Warning argument in the Checkings function in the preset file.
      image
  • Moved all localization files to the Localizations folder;
    image
  • Fixed wrong encoding the ProcessCreation.xml file saving in the EventViewerCustomView function;
    • To create the file with a right encoding you may re-run the function: EventViewerCustomView -Enable.
  • Updated the GitHub Action config to automate the SHA256 file creation and uploading to the release page. As @aaronhatesregex wanted 😄;
  • Updated the Turkish translation. Thanks to @v30xy;
  • Added the Hungarian translation . Thanks to @84stangman;
  • Updated Sophia Script Wrapper to 1.1 build 5;
    • The read/edit button function can now edit all functions in 'Sophia.psm1' file;
    • The wrapper creates a 'Sophia_edited.ps1' file in Sophia Script folder to run.
  • Minor changes. :feelsgood:
File SHA-256
Sophia.Script.LTSC.v5.2.4.zip F0D7F9537FD9D001BD3FC92E03AC249DA5DE94EA250076366748AB0D80919E19
Sophia.Script.v5.10.4.PowerShell.7.zip 496DEA022FA6A3F83FD676D0D2739DAE0E76899BB545FBCFB0780735D3944C10
Sophia.Script.v5.10.4.zip 87DC9434865F10D05BD0AD36B5E09D8A7BD4B8BC04DFA4B2F57FE6F530FEDF43
Sophia.Script.Wrapper.zip E0444F8A212EC92534F54C1DA663853F4EF1CB62BA7FF18BABD7B0BA64E17463
Sophia-Script-for-Windows - 27.04.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.10.2
5.10.2...5.10.3

  • Почитайте лонгрид на Хабре, как происходила разработка скрипта последние полгода.
  • Closed #163;
  • The DiagnosticDataLevel function updated;
    • You may re-run it: DiagnosticDataLevel -Minimal or DiagnosticDataLevel -Default;
  • The ErrorReporting & RecommendedTroubleshooting functions updated;
  • Sophia Script Wrapper updated;
    • The version bumped to 1.1 build 4;
    • Fixed inability to open preset file from the LTSC version.
      wrapper
  • Minor changes. :feelsgood:
  • The development focus shifted to SophiApp 🚀
File SHA-256
Sophia.Script.LTSC.v5.2.3.zip 126CF01DDA127EEF0C822516E3F5B306D53BCA6CD09674FC4AA4783A8CA9D48C
Sophia.Script.v5.10.3.PowerShell.7.zip D4B7A7483610CCB910ACA36480725049E05B0A9172CA5D722C878DB77E7902FA
Sophia.Script.v5.10.3.zip 77B85259A91C43AF3C107D67CCC8A6B719B1A8F43F73F0E4C7C017B7BF9AEE15
Sophia.Script.Wrapper.zip C2B03ABCA29B29D273C3D92EAD30168FAA90E851B6CB685BA7E1AEE5D6AAF07C
Sophia-Script-for-Windows - 23.04.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.10.1
5.10.1...5.10.2

  • Updated the descriptions;
  • PowerShell 7 version;
    • CsWinRT updated up to 1.2.5.
  • Sophia Script Wrapper updated (re-released 18:30 MSK);
    • Now you can just import the .ps1 preset file without the need to expand all files into the script folder.
    • Fixed exception;
    • Minor UI changes;
      wrapper
  • Minor changes. :feelsgood:
Sophia-Script-for-Windows - 14.04.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.10
5.10...5.10.1

  • Added the video of how the script scheduled tasks work
    YT

  • The development focus shifted to SophiApp 🚀

  • The TAB automplete function improved;

  • Revert the feature to call functions from Sophia.ps1

    .\Sophia.ps1 -Functions CreateRestorePoint, "ScheduledTasks -Disable", "WindowsCapabilities -Uninstall"
    
  • Closed #158;

  • Remove the unnecessary AppMode function in LTSC version;

  • Sophia Script Wrapper' version bumped to 1.1: UI updated;
    Image

  • Minor changes. :feelsgood:

Sophia-Script-for-Windows - 09.04.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.9
5.9...5.10

  • Calling the specific function was completely rewritten! 🚀
    • Added the Tab automplete function for functions and their arguments by typing its' first letters
      Image

    • The code from Sophia.ps1 moved to the Functions.ps1 file;

    • If you want to call the specific function you need to dot source the Functions.ps1 first

      # With a dot at the beginning
      . .\Functions
      
      • Now you can do like this
      Sophia -Functions <tab>
      Sophia -Functions temp<tab>
      Sophia -Functions unin<tab>
      Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
      
    • The code isn't perfect but it works. Anyway it's better than recalling the functions' names. Hopefully I'll improve it in the next releases.

  • Added the RestoreUWPApps function;
    Image
    • Now it's possible to restore the default UWP apps uninstalled for current user;
    • This list isn't hardcoded, but dynamically generated loading localized packages names;
    • Restorable packages will always be displayed in English in a pop form;
    • If you uninstalled packages for all users they can be restored only by downloading from the Microsoft Store.
  • Fixed bug in the PinToStart function when it was unable to pin the "Devices and Printers" shortcut;
  • Fixed bug in the UninstallUWPApps function when packages names displayed in the center instead of the top;
  • Now the TempTask task removes only files and folders older than a day;
  • After script applying a pop-up will apper
    Image
  • Formally added the 21H1, 19043 build support;
  • Minor changes. :feelsgood:
  • Thanks to iNNOKENTIY21 for moral support and pick-me-up!
  • The full changelog for all years can be found here.

Wrapper

  • TXT file radiobutton preset creation and opening are removed;
  • PS1 files can be read from now via Open PS1 choice in the "Options" menu;
  • <#privacy&telemetry#> regions are now "#region Privacy & Telemetry format;
  • Please do not edit the #region ... line or it will fail to read the PS1 file.
Sophia-Script-for-Windows - 27.03.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.9
5.8...5.9

  • Для граждан СНГ добавил перевод пожертвований с помощью ЮMoney, используя прямой перевод с карты;
  • Updated the UnpinTaskbarEdgeStore function again;
    • Fixed bug when calling this function before UninstallUWPApps breaks the retrieval of the localized UWP apps packages names;
    • Refixed #145;
    • Thanks to iNNOKENTIY21
  • The TempFolders and the OneDrive functions update
    • TempFolders totally rewritten using the MoveFileExA function
    • Now with the MOVEFILE_DELAY_UNTIL_REBOOT flag all unremovable files and folder will be removed after reboot (log off) automatically. After that the temporary scheduled task will create a symobolic link and remove itself;
    • Thanks to @gtumanyan for the tip;
public enum MoveFileFlags
{
	MOVEFILE_DELAY_UNTIL_REBOOT = 0x00000004
}

[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, MoveFileFlags dwFlags);

public static bool MarkFileDelete (string sourcefile)
{
	return MoveFileEx(sourcefile, null, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);
}
  • Fixed #152;
  • Minor changes. :feelsgood:
  • The full changelog for all years can be found here.
Sophia-Script-for-Windows - 17.03.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.7
5.7...5.8

  • The UninstallUWPApps function huge update

  • The Set-Association function huge update

  • Now possible to associate extension using the relative paths

  • Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"

  • Fix by westlife and @default-username-was-already-taken

  • Updated the SoftwareDistributionTask and the TempTask task

    • Added pop-up notification after the successful task completion
      • Image
      • Image
    • To update the existing SoftwareDistributionTask and TempTask functions run (no need to restart)
    .\Sophia.ps1 -Functions "SoftwareDistributionTask -Register", "TempTask -Register"
    
    • Fixed #143
  • Fixed small bug in the Windows Cleanup function

    • To update the existing Windows Cleanup function run (no need to restart)
    .\Sophia.ps1 -Functions "CleanUpTask -Register"
    
  • Added the Portuguese translation

    • Thanks to ZZ
  • Fixed typos;

  • Minor changes. :feelsgood:

    • Thanks to @gtumanyan
Sophia-Script-for-Windows - 05.03.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.6
5.6...5.7


  • The CleanupTask function huge update;

    • Splited into two functions: Windows Cleanup and Windows Cleanup Notification. Windows Cleanup Notification enables you the option to run the cleanup task or not. The Windows Cleanup Notification function runs once every month and displays native toast notification where you can choose to snooze (with drop down menu time reminder), run the cleanup task now or dismiss. You will be asked for this notification about Windows cleanup once a month.
      Image
    • To update the existing Windows Cleanup function run (no need to restart)
    .\Sophia.ps1 -Functions "CleanUpTask -Register"
    
  • Added MeetNow function;

    • Hide or show the Meet Now icon in the system tray;
  • Updated Sophia Script Wrapper

    • Fixed LeaveAlone outputting to script when pressing Output PowerShell;
    • Moved Tooltips ControlPanelView to Other section;
  • Fixed typos;

  • Minor changes. :feelsgood:

Sophia-Script-for-Windows - 02.03.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.5
5.5...5.6

  • PinToStart function fixed & updated
    • Now, wherever the -UnpinAll (unpin all tiles) argument is placed, it will always be executed first, to avoid the situation when the tiles were pinned and then all were unpinned;
  • The HEIF function huge update
    • Now it's possible to open Microsoft Store extension page manually (-Manual argument) or download and install (-Install argument) appx package directly from Microsoft server using the https://store.rg-adguard.net parser;
    • Built upon awesome @KaiWalter function; 🚀
    • Thanks to iNNOKENTIY21 for the tips.
  • Added the Set-Association function (commented out by default);
  • Updated descriptions;
  • Fixed typos;
  • Minor changes. :feelsgood:
Sophia-Script-for-Windows - 21.02.2021

Published by farag2 over 3 years ago

Windows 10 2004 2004/20H2/21H1 | LTSC

Diff from v5.4.0.1
5.4.0.1...5.5

  • Finally we created the video how to use Sophia Script!

    • YT
  • Also I created a Telegram group if have a question about Sophia Script and too lazy to open an issue on GitHub

    • Telegram
    • Allowed languages: English, русский (Russian).
  • The PinControlPanel, PinDevicesPrinters, PinCommandPrompt, and UnpinAllStartTiles functions were rewritten into one, PinToStart

    • Now it's possible to pin Control Panel, Device and Printers, and PowerShell shortcuts without using the syspin app — just pure PowerShell! syspin was removed.
    • You can choose what to pin
    PinToStart -Tiles ControlPanel, DevicesPrinters, PowerShell
    

    or unpin all tiles

    PinToStart -UnpinAll
    
  • Updated descriptions;

  • Fixed typos.

Sophia-Script-for-Windows - 06.02.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.4
5.4...5.4.0.1

  • Fixed UWP apps form not loading.
  • The full changelog for all years can be found here.
Sophia-Script-for-Windows - 04.02.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.3.3
5.3.3...5.4

  • Now all archives are being created and uploaded to the release page via GitHub Actions;
    • Thnx to @inv2004
  • When running the script using .\Sophia.ps1 -Functions "FunctionName1 -Parameter" regardless of the functions entered as an argument, the Checkings function will be executed first, and the Refresh and Errors functions will be executed at the end;
  • Updated the CreateRestorePoint function
    • Closed #124
  • Updated the EnableWSL2 function
  • Code refactoring for the ScheduledTasks, WindowsFeatures, WindowsCapabilities & UninstallUWPApps
    • The WindowsFeatures function generates friendly Windows features names instead of packages names 🚀
    • The WindowsCapabilities function generates friendly Windows capabilities names instead of packages names 🚀
    • The UninstallUWPApps function generates friendly UWP apps names instead of packages names 🚀
      • Clicking on "Uninstall for all users" dynamically generates UWP apps list for all users and vice versa. Currently works only on PowerShell 5.1 🤔
    • Thanks to iNNOKENTIY21 & @oz-zo
    • Closed #56

Image
Image
Image

  • Removed unnecessary WSLSwap & syspin functions;
  • Updated description;
  • Wrapper updated;
  • Minor changes. :feelsgood:
Sophia-Script-for-Windows - 21.01.2021

Published by farag2 over 3 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.3.2
5.3.2...5.3.3

  • Added the feature to run the script by specifying module functions as parameters

    • If you want to run the specific functions without editing the preset file you can run them as parameters now
    .\Sophia.ps1 -Functions CreateRestorePoint, "ScheduledTasks -Disable", "WindowsCapabilities -Disable", Refresh
    
    • The quotation marks required;
    • Thnx to YuS 2 & iNNOKENTIY21 for spending their time.
  • Bugfixed and improved the "WindowsCapabilities" function. Thnx to cheetoh

  • There is a bug in KVM with QEMU: enabling the DefenderSandbox -Enabled function causes VM to freeze up during the loading phase of Windows

    • Read more on #120
  • The MediaPlayback feature in the WindowsFeatures function is unchecked now by default. Thnx to Nevals

    • If you want to leave "Multimedia settings" in the advanced settings of Power Options do not uninstall this feature
  • Updated description;

  • Minor changes. :feelsgood:

Sophia-Script-for-Windows - 16.01.2021

Published by farag2 almost 4 years ago

Windows 10 2004/20H2/21H1 | LTSC

Diff from v5.3.1
5.3.1...5.3.2

  • Updated "TelemetryService" function

    • Renamed into "DiagTrackService";

    • Added "Disable firewall rule for Unified Telemetry Client Outbound Traffic and block connection" feature.

      • Closed #116
      • To do it manually run
      Get-NetFirewallRule -Group DiagTrack | Set-NetFirewallRule -Enabled False -Action Block
      
  • Added online checking whether the current module version is the latest;

  • Added "Disable Caps Lock" function;

  • Swaped "disable"/"enable" arguments in the "AppsLanguageSwitch" function;

  • Minor changes. :feelsgood:

Sophia-Script-for-Windows - 22.12.2020

Published by farag2 almost 4 years ago

Windows 10 2004/20H2/21H1

Diff from v5.3
5.3...5.3.1

  • Also uploaded the updated LTSC module version up to 5.0;
  • Added a new logo on the main page. Logo made by teahead
  • Added PowerShell 7.1 compatibility 🏆
    • Closed #70;
    • Anyway sometimes pinning shortcuts via syspin do nothing. It's PS Core bug. 🤔
  • Fixed typo causing bug in CleanUpTask -Register function. Please re-register task;
  • Added Logging function using the Start-Transcript cmdlet. Commented out by default.
    • To stop logging just close the console or type Stop-Transcript. The log will be being recorded into the script folder
  • Added AppsLanguageSwitch function. Lets use a different input method for each app window. Thanks to WindR
  • Updated the Italian translation. Closed #103. Thanks to @garf02;
  • Updated syspin app up to the 0.99.9.1;
  • Minor changes. :feelsgood:
  • Added the New Year easter egg to the console title! 🤭
  • It's the latest release this year. 🤗 Happy New Year! Image
Sophia-Script-for-Windows - 12.12.2020

Published by farag2 almost 4 years ago

Windows 10 2004/20H2

Diff from v5.2
5.2...5.3

  • Some functions were updated and improved, especially
    • ScheduledTasks, WindowsFeatures, WindowsCapabilities now support arguments to load pop-up dialog box;
    • SetUserShellFolderLocation gets -Custom argument (commented out by default) to select a folder for the location of the user folders manually using a folder browser dialog. Closed #98;
    • Fixed and changed method for saving code for creating the "Windows Cleanup" task in CleanUpTask function;
      • There won't be any more AV false positives. Better to reregistre task again. Sometimes a toast didn't even load and the task runs forever. LOL
  • Updated the Sophia.ps1 preset file. Use the new one;
  • Added Spanish localization 🇪🇸. Thanks to @AnxoMJ;
  • Updated, improved and simplified all localizations. Thanks to all translators;
    • Now available in: 🇬🇧 🇨🇳 🇩🇪 🇫🇷 🇮🇹 🇷🇺 🇺🇦 🇹🇷 🇪🇸
  • Updated descriptions;
  • Closed #101
  • Minor changes. :feelsgood:

Also guy from benchtweakgaming.com created a GUI wrapper for the script. 🗡️

Sophia-Script-for-Windows - 11.11.2020

Published by farag2 almost 4 years ago

Windows 10 2004/20H2

Diff from v5.1.1
5.1.1...5.2

  • Code refactoring. Thx to FrankSinatra 🏆 & iNNOKENTIY21 🏆;
    • Almost all functions were rewritten to accept arguments;
    • e.g. DisableTelemetryServices and EnableTelemetryServices are now
TelemetryService -Disable
TelemetryService -Enable
  • Updated the Sophia.ps1 preset file. Use the new one!;
  • Added localizations
    • Chinese simplified (#79). Thanks to @JonathanChuyan;
    • Italian (#80). Thanks to @garf02;
    • Turkish (#82). Thanks to @v30xy;
    • French. Thanks to coleoptere2007;
    • Ukranian. Thanks to lowlif3;
    • Now available in
  • Updated localizations;
  • Closed #81, #83, #84, #85, #86, #87
  • Minor changes.

Also guy from benchtweakgaming.com created a GUI wrapper for the script. Hope it'll help! 🗡️

Sophia-Script-for-Windows - 09.10.2020

Published by farag2 about 4 years ago

Windows 10 2004/20H2

Diff from v5.1
5.1...5.1.1

  • Added the German localization. Thanks to ERRASoft 🏆;
  • Updated localizations;
  • Added manifest file;
  • EnableWin32LongPaths function wasn't enabled as a default one;
  • Functions updated
    • DisableWindowsErrorReporting;
    • EnableWindowsErrorReporting;
    • DisableScheduledTasks;
    • EnableScheduledTasks.
  • Minor changes.
Sophia-Script-for-Windows - 08.10.2020

Published by farag2 about 4 years ago

Windows 10 2004/20H2

Diff from v5.0.1
5.0.1...5.1

  • The script becomes fully translatable 🏆;
    • The translations are moved to separate files Sophia.psd1;
    • To translate into your language you should
      • Create a folder with the appropriate future localization name;

        $PSUICulture
        
      • Place the translation into this folder without changing the file name (Sophia.psd1)

      • Thanks to FrankSinatra & westlife for the tip.

  • "DisableSuggestedContent" function renamed into "DisableWhatsNewInWindows";
  • "EnableSuggestedContent" function renamed into "EnableWhatsNewInWindows";
  • Closed #65, #71, #72 thanks to westlife;
  • Functions improved
    • UninstallOneDrive;
    • SetupWSL;
    • DisableBackgroundUWPApps westlife 🏆;
    • DisableReservedStorage.
  • Functions simplified
    • RemoveProtectedFolders;
    • RemoveAppsControlledFolder;
    • RemoveDefenderExclusionFolders;
    • RemoveDefenderExclusionFiles.
  • The preset file renamed into Sophia.ps1;
  • Comments;
  • Minor changes.
Badges
Extracted from project README
Telegram Telegram Discord ko-fi YT YT YT Discord
Related Projects