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 - 16.05.2020

Published by farag2 over 4 years ago

Diff from v4.2
4.2...4.2.1

  • Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal;
  • Added for the all tasks in the Task Scheduler a description displayed in the "Description" section;
  • Fixed bug in "Include command line in process creation events" section
  • Minor changes;
  • Thanks 4r0 for found bugs.
Sophia-Script-for-Windows - 12.05.2020

Published by farag2 over 4 years ago

  • Now the script will not be executed by PowerShell ISE;
  • Moved from the "Read-Host" cmdlet to $Host.UI.PromptForChoice();
  • Updated "Create a task in the Task Scheduler to start Windows cleaning up";
    • A toast notification will be activated before starting cleaning up;
    • Now cleanmgr.exe window starts minimized;
    • Now using DISM to clean up unused Windows updates instead of cleanmgr.exe
DISM.exe /Online /English /Cleanup-Image /StartComponentCleanup /NoRestart
  • Minor changes;
  • Thanks westlife for the tips.
Sophia-Script-for-Windows - 03.05.2020

Published by farag2 over 4 years ago

  • The "Turn off Windows features" and "Uninstall all UWP apps from all accounts" sections moved from CLI to GUI!
  • WPF form made by oz-zo, fixes by westlife
  • Minor changes.
Sophia-Script-for-Windows - 28.04.2020

Published by farag2 over 4 years ago

  • Added the "Create a restore point" section (#14 );
  • Updated "Include command line in process creation events" section;
  • Minor changes;
  • Comments.
Sophia-Script-for-Windows - 24.04.2020

Published by farag2 over 4 years ago

  • The "Set "High performance" in graphics performance preference for apps" section moved from CLI to GUI
  • Minor changes;
  • Comments.
Sophia-Script-for-Windows - 20.04.2020

Published by farag2 over 4 years ago

  • Comments;
  • Added Internet connection test in "Pin the shortcuts to Start" section to ensure syspin.exe will be downloaded from GitHub. Anyway it can be loaded locally;
  • The following sections transferred from CLI to GUI
    • Turn on Controlled folder access and add protected folders;
    • Allow an app through Controlled folder access;
    • Add exclusion folder from Microsoft Defender Antivirus scanning;
    • Add exclusion file from Windows Defender Antivirus scanning.
  • Minor changes.
Sophia-Script-for-Windows - 10.04.2020

Published by farag2 over 4 years ago

  • Improved "Uninstall OneDrive" section;
    • Now it takes into account whether user signed in to OnedDrive;
  • Added Xbox related apps to the exclusion list in "Uninstall all UWP apps from all accounts, except the followings..." section;
  • Added "Uninstall all Xbox related UWP apps from all accounts" section;
  • Comments;
  • Minor changes.
Sophia-Script-for-Windows - 08.04.2020

Published by farag2 over 4 years ago

  • Improved "Uninstall OneDrive" section. Thanks westlife;
  • Added "Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page" section
  • Comments;
  • Minor changes.
Sophia-Script-for-Windows - 05.04.2020

Published by farag2 over 4 years ago

Updated

  • Totally rewritten "Uninstall OneDrive" section
  • "Turn off diagnostics tracking scheduled tasks" section
    • Now the "FODCleanupTask" task, related to Windows Hello, does not turn off if device is a laptop
  • "Remove Windows capabilities" section
    • Now the "Hello.Face*" сapabilities, related to Windows Hello, does not removed if device is a laptop
  • "Save screenshots by pressing Win+PrtScr to the Desktop" section
  • "Set "High performance" in graphics performance preference for apps" section
  • "Uninstall all UWP apps from all accounts" section
    • Now using "-Verbose" instead of "Write-Progress";
    • Added "Realtek Audio Console" app to the exclusion
  • Comments;
  • Minor changes;
  • Still cooking GUI.

Обновлено

  • Переписан раздел "Удалить OneDrive"
  • Раздел "Отключить задачи диагностического отслеживания"
    • Теперь задача "FODCleanupTask", относящаяся к Windows Hello, не выключается, если устройство является ноутбуком
  • Раздел "Удалить компоненты"
    • Теперь компоненты "Hello.Face*", относящиеся к Windows Hello, не удаляется, если устройство является ноутбуком
  • Раздел "Сохранять скриншоты по нажатию Win+PrtScr на рабочем столе"
  • Раздел "Удалить все UWP-приложения из всех учетных записей"
    • Теперь вместо "Write-Progress" используется "-Verbose";
    • Добавлено приложение "Realtek Audio Console" в исключение
  • Комментарии;
  • Незначительные изменения;
  • Все еще колдуем над GUI. 2020H3
Sophia-Script-for-Windows - 20.03.2020

Published by farag2 over 4 years ago

  • Added "Do not show sync provider notification" section;

  • "Save screenshots by pressing Win+PrtScr to the Desktop" section. To return the original value execute

    Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}" -Name RelativePath -Type String -Value Screenshots -Force
    
  • Removed "Uninstall all provisioned UWP apps from System account, except the followings..." section

    • Using the "-AllUsers" key, applications were already deleted from all accounts
  • Fixed all en dashes (0x2013). Thanks to YuS_2;

  • Comments;

  • Minor changes.

Sophia-Script-for-Windows - 18.03.2020

Published by farag2 over 4 years ago

  • "Uninstall OneDrive" section

    • Now even after restarting File Explorer your opened folders will be restored
  • "Uninstall all UWP apps from all accounts, except the followings..." section

  • "Uninstall all provisioned UWP apps from System account, except the followings..." section

    • Now displays progress bar while uninstalling
  • Deleted "Checking whether the script was saved in UTF-8 with BOM encoding if it runs locally" section

    • There is no way for PowerShell to automatically determine the file encoding
    • Anyway this code checks the encoding
    if ($PSCommandPath)
    {
         $bytes = Get-Content -Path $PSCommandPath -Encoding Byte -Raw
         # https://tools.ietf.org/html/rfc3629#section-6
         if ($bytes[0] -ne 239 -and $bytes[1] -ne 187 -and $bytes[2] -ne 191)
         {
              Write-Warning -Message "The script wasn't saved in `"UTF-8 with BOM`" encoding"
              break
         }
    }
    
  • Comments

  • Minor changes.

Sophia-Script-for-Windows - 16.03.2020

Published by farag2 over 4 years ago

  • Do not allow apps to use advertising ID. To delete unnecessary key execute

    Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Force
    
  • Turn on acrylic taskbar transparency;

  • Added "Show me the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested" section;

  • Added "Check for updates for UWP apps" section;

  • Added "Do not suggest ways I can finish setting up my device to get the most out of Windows" section;

  • Comments;

  • Minor changes.

Sophia-Script-for-Windows - 13.03.2020

Published by farag2 over 4 years ago

  • Added F5 pressing simulation to refresh the desktop
  • Comments;
  • Minor changes.
Sophia-Script-for-Windows - 11.03.2020

Published by farag2 over 4 years ago

  • Turn on recycle bin files delete confirmation

    • Now configuring without using policy. To delete unnecessary key execute
    Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name ConfirmFileDelete -Force
    
  • Turn off Delivery Optimization

    • Now using cmdlets. To delete unnecessary key execute
    Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization -Force
    
  • Rearranged "Set power management scheme for desktop and laptop" section

  • Renamed sections

    • "Turn off hibernate" to "Turn off hibernate for devices, except laptops"
    • "Turn off location for this device" to "Turn off location access for this device"
  • Minor changes.

Sophia-Script-for-Windows - 06.03.2020

Published by farag2 over 4 years ago

  • Comments;
  • Rewritten "Pin to Start the shortcuts" section;
    • Now using syspin.exe to pin shortcuts
    • Hash (SHA256): 6967E7A3C2251812DD6B3FA0265FB7B61AADC568F562A98C50C345908C6E827
    • Shorcuts pinned by default:
      • Control Panel;
      • Devices and Printers;
      • Command Prompt.
  • Minor changes.
Sophia-Script-for-Windows - 03.03.2020

Published by farag2 over 4 years ago

  • Added Comment-Based Help;
  • Fixed bug in a task to clear the $env:SystemRoot\SoftwareDistribution\Download folder;
  • Minor changes.
Sophia-Script-for-Windows - 25.02.2020

Published by farag2 over 4 years ago

  • Removed "Use Unicode UTF-8 for worldwide language support (beta)" section due to instability. To recover execute

    # Open Administrative Tab in Region
    cmd.exe --% /c control intl.cpl,,1
    # Change system locale
    # Uncheck "Beta: Use Unicode UTF-8 for worldwide language support"
    # Restart PC
    
  • Minor changes.

Sophia-Script-for-Windows - 21.02.2020

Published by farag2 over 4 years ago

  • Removed "Let Windows track app launches to improve Start menu and search results" section. To recover execute

    Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_TrackProgs -Force
    
  • Removed "Turn off Windows Game Recording and Broadcasting" section. To recover execute

    Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR -Force
    
  • Removed "Turn off Game Mode" section. To recover execute

    Remove-ItemProperty -Path HKCU:\Software\Microsoft\GameBar -Name AllowAutoGameMode -Force
    
  • Removed "Remove "Previous Versions" from file context menu" section. To recover execute

    Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{596AB062-B4D2-4215-9F74-E9109B0A8153}" -Force
    
  • Removed "Turn off "The Windows Filtering Platform has blocked a connection" message in "Windows Logs/Security"" section. To recover execute

    auditpol /set /subcategory:"{0CCE9226-69AE-11D9-BED3-505054503030}" /success:enable /failure:enable
    
  • Added

    • "Use Unicode UTF-8 for worldwide language support (beta)";
    • "Turn on logging for all Windows PowerShell modules";
    • "Turn on logging of all PowerShell script input to the Microsoft-Windows-PowerShell/Operational event log";
    • "Turn on events auditing generated when a process is created or starts".
  • Comments

  • Minor changes.

Sophia-Script-for-Windows - 17.02.2020

Published by farag2 over 4 years ago

  • Uploaded file with UTF-8 with BOM encoding by default;
  • Added "Checking the file encoding if it runs locally" section;
  • Minor changes.
Sophia-Script-for-Windows - 11.02.2020

Published by farag2 over 4 years ago

  • Fixed typo in "Unpin all Start menu tiles section;
  • Updated "Uninstall OneDrive" section;
  • Minor changes.
Badges
Extracted from project README
Telegram Telegram Discord ko-fi YT YT YT Discord
Related Projects