@@ -2,11 +2,11 @@
.SYNOPSIS
"Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version: v5.2.5
Date: 17.05.2021
Version: v5.2.6
Date: 01.06.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & oZ-Zo
Copyright (c) 2019–2021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@@ -24,22 +24,22 @@
Set execution policy to be able to run scripts only in the current PowerShell session:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/
https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
.LINK GitHub link
https://github.com/farag2/Windows-10-Sophia-Script
.LINK Telegram channel & group
https://t.me/sophianews
https://t.me/sophia_chat
.LINK
.LINK Authors
https://github.com/farag2
https://github.com/Inestic
.LINK
https://github.com/farag2/Windows-10-Sophia-Script
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/
https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
#>

#region Checkings
@@ -77,6 +77,13 @@ function Checkings
}
}

# Check whether the script has been run via PowerShell ISE
if ($Host.Name -match "ISE")
{
Write-Warning -Message $Localization.UnsupportedISE
exit
}

# Checking if the current module version is the latest one
try
{
@@ -931,6 +938,10 @@ function AdvertisingID
}
"Enable"
{
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -PropertyType DWord -Value 1 -Force
}
}
@@ -1667,30 +1678,6 @@ function RecycleBinDeleteConfirmation
$Enable
)

$UpdateDesktop = @{
Namespace = "WinAPI"
Name = "UpdateDesktop"
Language = "CSharp"
MemberDefinition = @"
private static readonly IntPtr hWnd = new IntPtr(65535);
private const int Msg = 273;
// Virtual key ID of the F5 in File Explorer
private static readonly UIntPtr UIntPtr = new UIntPtr(41504);
[DllImport("user32.dll", SetLastError=true)]
public static extern int PostMessageW(IntPtr hWnd, uint Msg, UIntPtr wParam, IntPtr lParam);
public static void PostMessage()
{
// F5 pressing simulation to refresh the desktop
PostMessageW(hWnd, Msg, UIntPtr, IntPtr.Zero);
}
"@
}
if (-not ("WinAPI.UpdateDesktop" -as [type]))
{
Add-Type @UpdateDesktop
}

$ShellState = Get-ItemPropertyValue -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShellState

switch ($PSCmdlet.ParameterSetName)
@@ -1706,9 +1693,6 @@ public static void PostMessage()
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShellState -PropertyType Binary -Value $ShellState -Force
}
}

# Send F5 pressing simulation to refresh the desktop
[WinAPI.UpdateDesktop]::PostMessage()
}

<#
@@ -5938,6 +5922,10 @@ function Set-Association
# Generate ProgId
$ProgId = (Get-Item -Path $ProgramPath).BaseName + $Extension.ToUpper()
}
else
{
$ProgId = $ProgramPath
}

#region functions
$RegistryUtils = @'
@@ -6102,13 +6090,15 @@ namespace RegistryUtils
)

$OpenSubKey = [Microsoft.Win32.Registry]::CurrentUser.OpenSubKey($SubKey,'ReadWriteSubTree','TakeOwnership')

$Acl = [System.Security.AccessControl.RegistrySecurity]::new()
# Get current user SID
$UserSID = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq $env:USERNAME}).SID
$Acl.SetSecurityDescriptorSddlForm("O:$UserSID`G:$UserSID`D:AI(D;;DC;;;$UserSID)")
$OpenSubKey.SetAccessControl($Acl)
$OpenSubKey.Close()
if ($OpenSubKey)
{
$Acl = [System.Security.AccessControl.RegistrySecurity]::new()
# Get current user SID
$UserSID = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq $env:USERNAME}).SID
$Acl.SetSecurityDescriptorSddlForm("O:$UserSID`G:$UserSID`D:AI(D;;DC;;;$UserSID)")
$OpenSubKey.SetAccessControl($Acl)
$OpenSubKey.Close()
}
}

function Write-ExtensionKeys
@@ -6131,22 +6121,21 @@ namespace RegistryUtils
)

$OrigProgID = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Classes\$Extension" -Name "(default)" -ErrorAction Ignore)."(default)"

if ($OrigProgID)
{
# Save possible ProgIds history with extension
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgID`_$Extension" -PropertyType String -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgID`_$Extension" -PropertyType DWord -Value 0 -Force
}

$Name = (Get-Item -Path $ProgramPath).Name + $Extension
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name $Name -PropertyType String -Value 0 -Force
$Name = "{0}_$Extension" -f (Split-Path -Path $ProgId -Leaf)
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name $Name -PropertyType DWord -Value 0 -Force

if ("$ProgId`_$Extension" -ne $Name)
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgId`_$Extension" -PropertyType String -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgId`_$Extension" -PropertyType DWord -Value 0 -Force
}

# If ProgId doesn't exist set the specified ProgId for the extansions
# If ProgId doesn't exist set the specified ProgId for the extensions
if (-not $OrigProgID)
{
if (-not (Test-Path -Path "HKCU:\SOFTWARE\Classes\$Extension"))
@@ -6247,7 +6236,7 @@ namespace RegistryUtils
}

$picture = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap" -Name $Extension -ErrorAction Ignore).$Extension
$PBrush = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\PBrush\CLSID" -Name "(default)"
$PBrush = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Classes\PBrush\CLSID" -Name "(default)" -ErrorAction Ignore)."(default)"

if (($picture -eq "picture") -and $PBrush)
{
@@ -6468,7 +6457,7 @@ namespace FileAssoc
}
New-ItemProperty -Path "HKCU:\SOFTWARE\Classes\$ProgId\shell\open\command" -Name "(Default)" -PropertyType String -Value "`"$ProgramPath`" `"%1`"" -Force

$FileNameEXE = (Get-Item -Path $ProgramPath).Name
$FileNameEXE = Split-Path -Path $ProgramPath -Leaf
if (-not (Test-Path -Path "HKCU:\SOFTWARE\Classes\Applications\$FileNameEXE\shell\open\command"))
{
New-Item -Path "HKCU:\SOFTWARE\Classes\Applications\$FileNameEXE\shell\open\command" -Force
@@ -6488,6 +6477,29 @@ namespace FileAssoc

# If the file extension specified configure the extension
Write-ExtensionKeys -ProgId $ProgId -Extension $Extension

# Refresh the desktop icons
$UpdateExplorer = @{
Namespace = "WinAPI"
Name = "UpdateExplorer"
Language = "CSharp"
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
public static void Refresh()
{
// Update desktop icons
SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
}
"@
}
if (-not ("WinAPI.UpdateExplorer" -as [type]))
{
Add-Type @UpdateExplorer
}

[WinAPI.UpdateExplorer]::Refresh()
}
#endregion System

@@ -8305,6 +8317,10 @@ function MSIExtractContext
.EXAMPLE
CABInstallContext -Add
.NOTES
If the .cab file extension type associated to open with a third party app by default, the "Install" context menu item won't be displayed,
so the default association for the .cab file type will be restored forcedly
.NOTES
Current user
#>
@@ -8331,10 +8347,17 @@ function CABInstallContext
{
"Remove"
{
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Recurse -Force -ErrorAction SilentlyContinue
}
"Add"
{
# Checking whether the File Explorer is associated with the .cab files
if (-not ((Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cab\UserChoice -Name ProgId -ErrorAction Ignore) -notmatch "cab"))
{
# The "Install" context menu item won't be visible unless the File Explorer was assosiated with the .cab files
Set-Association -ProgramPath CABFolder -Extension .cab -Icon "%SystemRoot%\system32\cabview.dll,0"
}

if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command))
{
New-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Force
@@ -9159,12 +9182,12 @@ function PreviousVersionsPage
}
#endregion Context menu

#region Refresh
function Refresh
#region Refresh Environment
function RefreshEnvironment
{
$UpdateExplorer = @{
$UpdateEnvironment = @{
Namespace = "WinAPI"
Name = "UpdateExplorer"
Name = "UpdateEnvironment"
Language = "CSharp"
MemberDefinition = @"
private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
@@ -9207,16 +9230,16 @@ public static void PostMessage()
}
"@
}
if (-not ("WinAPI.UpdateExplorer" -as [type]))
if (-not ("WinAPI.UpdateEnvironment" -as [type]))
{
Add-Type @UpdateExplorer
Add-Type @UpdateEnvironment
}

# Simulate pressing F5 to refresh the desktop
[WinAPI.UpdateExplorer]::PostMessage()
[WinAPI.UpdateEnvironment]::PostMessage()

# Refresh desktop icons, environment variables, taskbar
[WinAPI.UpdateExplorer]::Refresh()
[WinAPI.UpdateEnvironment]::Refresh()

# Restart the Start menu
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction Ignore
@@ -9258,7 +9281,7 @@ public static void PostMessage()
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel").Show($ToastMessage)
}
#endregion Refresh
#endregion Refresh Environment

# Errors output
function Errors
@@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.10.5
Date: 14.05.2021
Version: v5.10.6
Date: 01.06.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & oZ-Zo
@@ -53,20 +53,20 @@ function Sophia
$Functions
)

# 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
# Regardless of the functions entered as an argument, the "Checkings" function will be executed first, and the "RefreshEnvironment" and "Errors" functions will be executed at the end
Invoke-Command -ScriptBlock {Checkings}

foreach ($Function in $Functions)
{
Invoke-Expression -Command $Function
}

Invoke-Command -ScriptBlock {Refresh; Errors}
Invoke-Command -ScriptBlock {RefreshEnvironment; Errors}
}

Clear-Host

$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H2/21H1和更高版本
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义Sophia.ps1预设文件中的每个功能?
ControlledFolderAccessDisabled = “受控文件夹访问”禁用
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004/20H2/21H1-Versionen und höher
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1 versions and higher
UnsupportedISE = The script doesn't support running via Windows PowerShell ISE
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script?
ControlledFolderAccessDisabled = Controlled folder access disabled
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 2004/20H2/21H1 y superiores
UnsupportedISE = El script no es compatible con la ejecución a través de Windows PowerShell ISE
UnsupportedRelease = Nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado Sophia.ps1 antes de ejecutar Sophia Script?
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H2/21H1 et ultérieures
UnsupportedISE = Le script ne supporte pas l'exécution via Windows PowerShell ISE
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage Sophia.ps1 avant d'exécuter Sophia Script?
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
@@ -13,10 +14,10 @@ OptionalFeaturesTitle = Fonctionnalités optionnelles
EnableHardwareVT = Activer la virtualisation dans UEFI
UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}" \nDéplacer les manuellement vers un nouvel emplacement
RetrievingDrivesList = Récupération de la liste des lecteurs...
DriveSelect = Seleccione la unidad dentro de la raíz de la cual se creará la carpeta "{0}"
UserFolderRequest = ¿Le gustaría cambiar la ubicación de la carpeta "{0}"?
UserFolderSelect = Seleccione una carpeta para la carpeta "{0}"
UserDefaultFolder = ¿Le gustaría cambiar la ubicación de la carpeta "{0}" al valor predeterminado?
DriveSelect = Sélectionnez le disque à la racine dans lequel le dossier "{0}" sera créé.
UserFolderRequest = Voulez vous changer où est placé le dossier "{0}" ?
UserFolderSelect = Sélectionnez un dossier pour le dossier "{0}"
UserDefaultFolder = Voulez vous changer où est placé le dossier "{0}" à sa valeur par défaut?
ReservedStorageIsInUse = Cette opération n'est pas suppportée le stockage réservé est en cours d'utilisation \nVeuillez attendre la fin des opérations de maintenance, puis réessayer plus tard
ShortcutPinning = Le raccourci "{0}" est épinglé sur Démarrer
UninstallUWPForAll = Pour tous les utilisateurs
@@ -26,7 +27,7 @@ WSLUpdateInstalling = Installation du package de mise à j
HEVCDownloading = Téléchargement de Extensions vidéo HEVC du fabricant de l'appareil... ~2,8 MB
GraphicsPerformanceTitle = Préférence de performances graphiques
GraphicsPerformanceRequest = Souhaitez-vous définir le paramètre de performances graphiques d'une application de votre choix sur "Haute performance"?
TaskNotificationTitle = Notificación
TaskNotificationTitle = Notificacion
CleanupTaskNotificationTitle = Une information important
CleanupTaskDescription = Nettoyage des fichiers Windows inutilisés et des mises à jour à l'aide de l'application intégrée pour le nettoyage de disque
CleanupTaskNotificationEventTitle = Exécuter la tâche pour nettoyer les fichiers et les mises à jour inutilisés de Windows?
@@ -77,6 +78,6 @@ Select = Sélectionner
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
TelegramTitle = Rejoignez notre chaîne Telegram officielle
TelegramTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller
'@
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript a Windows 10 2004/20H2/21H1 és újabb kiadásokat támogatja
UnsupportedISE = A szkript nem támogatja a "Windows PowerShell ISE" futtatását
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a Sophia.ps1 preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10, 2004/20H2/21H1 versioni e superiori
UnsupportedISE = Lo script non supporta l'esecuzione tramite Windows PowerShell ISE
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file delle preimpostazioni Sophia.ps1 prima di eseguire Sophia Script?
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 2004/20H2/21H1 e superior
UnsupportedISE = O guião não suporta a execução através do Windows PowerShell ISE
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição Sophia.ps1 antes de executar o Sophia Script?
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H2/21H1 и выше
UnsupportedISE = Скрипт не поддерживает работу через Windows PowerShell ISE
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Bu betik sadece Windows 10 2004/20H2/21H1 sürüm ve üstünü destekliyor
UnsupportedISE = Komut dosyası, Windows PowerShell ISE üzerinden çalıştırmayı desteklemiyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce Sophia.ps1 ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 версії 2004/20H2/21H1 та вище
UnsupportedISE = Скрипт не підтримує роботу через Windows PowerShell ISE
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
@@ -2,11 +2,11 @@
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script"
Version: v5.10.5
Date: 14.05.2021
Version: v5.10.6
Date: 01.06.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & oZ-Zo
Copyright (c) 2019–2021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@@ -40,22 +40,22 @@
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
.LINK GitHub link
https://github.com/farag2/Windows-10-Sophia-Script
.LINK Telegram channel & group
https://t.me/sophianews
https://t.me/sophia_chat
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/
https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
.LINK Telegram channel & group
https://t.me/sophianews
https://t.me/sophia_chat
.LINK
.LINK Authors
https://github.com/farag2
https://github.com/Inestic
.LINK
https://github.com/farag2/Windows-10-Sophia-Script
#>

#Requires -RunAsAdministrator
@@ -71,7 +71,7 @@ param

Clear-Host

$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
@@ -261,7 +261,7 @@ BingSearch -Disable

#region UI & Personalization
# Show the "This PC" icon on Desktop
# Отобразить значок "Этот компьютер" на рабочем столе
# Отображать значок "Этот компьютер" на рабочем столе
ThisPC -Show

# Hide the "This PC" icon on Desktop (default value)
@@ -324,30 +324,6 @@ OneDriveFileExplorerAd -Hide
# Показывать уведомления поставщика синхронизации в проводнике (значение по умолчанию)
# OneDriveFileExplorerAd -Show

# Hide Task View button on the taskbar
# Скрывать кнопку Просмотра задач
TaskViewButton -Hide

# Show Task View button on the taskbar (default value)
# Показывать кнопку Просмотра задач (значение по умолчанию)
# TaskViewButton -Show

# Hide People button on the taskbar
# Скрывать панель "Люди" на панели задач
PeopleTaskbar -Hide

# Show People button on the taskbar (default value)
# Показывать панель "Люди" на панели задач (значение по умолчанию)
# PeopleTaskbar -Show

# Show seconds on the taskbar clock
# Отображать секунды в системных часах на панели задач
SecondsInSystemClock -Show

# Hide seconds on the taskbar clock (default value)
# Скрывать секунды в системных часах на панели задач (значение по умолчанию)
# SecondsInSystemClock -Hide

# When I snap a window, do not show what I can snap next to it
# При прикреплении окна не показывать, что можно прикрепить рядом с ним
SnapAssist -Disable
@@ -385,7 +361,7 @@ RecycleBinDeleteConfirmation -Enable
3DObjects -Hide

# Show the "3D Objects" folder in "This PC" and Quick access (default value)
# Отобразить папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# Отображать папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# 3DObjects -Show

# Hide frequently used folders in Quick access
@@ -404,6 +380,30 @@ QuickAccessRecentFiles -Hide
# Показать недавно использовавшиеся файлы на панели быстрого доступа (значение по умолчанию)
# QuickAccessRecentFiles -Show

# Hide Task View button on the taskbar
# Скрывать кнопку Просмотра задач
TaskViewButton -Hide

# Show Task View button on the taskbar (default value)
# Показывать кнопку Просмотра задач (значение по умолчанию)
# TaskViewButton -Show

# Hide People button on the taskbar
# Скрывать панель "Люди" на панели задач
PeopleTaskbar -Hide

# Show People button on the taskbar (default value)
# Показывать панель "Люди" на панели задач (значение по умолчанию)
# PeopleTaskbar -Show

# Show seconds on the taskbar clock
# Отображать секунды в системных часах на панели задач
SecondsInSystemClock -Show

# Hide seconds on the taskbar clock (default value)
# Скрывать секунды в системных часах на панели задач (значение по умолчанию)
# SecondsInSystemClock -Hide

# Hide the search on the taskbar
# Скрыть поле или значок поиска на панели задач
TaskbarSearch -Hide
@@ -437,9 +437,17 @@ TrayIcons -Show
MeetNow -Hide

# Show the Meet Now icon in the notification area
# Отобразить иконку "Провести собрание" в трее
# Отображать иконку "Провести собрание" в трее
# MeetNow -Show

# Hide "News and Interests" on the taskbar
# Скрыть "Новости и интересы" на панели задач
NewsInterests -Hide

# Show "News and Interests" on the taskbar (default value)
# Отображать "Новости и интересы" на панели задач (значение по умолчанию)
# NewsInterests -Show

# Unpin Microsoft Edge and Microsoft Store from the taskbar
# Открепить Microsoft Edge и Microsoft Store от панели задач
UnpinTaskbarEdgeStore
@@ -1269,8 +1277,15 @@ MSIExtractContext -Add
# Удалить пункт "Извлечь все" из контекстного меню Windows Installer (.msi) (значение по умолчанию)
# MSIExtractContext -Remove

# Add the "Install" item to the .cab archives context menu
# Добавить пункт "Установить" в контекстное меню .cab архивов
<#
Add the "Install" item to the .cab archives context menu
If the .cab file extension type associated to open with a third party app by default, the "Install" context menu item won't be displayed,
so the default association for the .cab file type will be restored forcedly
Добавить пункт "Установить" в контекстное меню .cab архивов
Если .cab файлы ассоциированы со сторонним приложением, пункт "Установить" в контекстное меню не будет отображаться,
поэтому принудительно будет восстановлена ассоциация по умолчанию
#>
CABInstallContext -Add

# Remove the "Install" item from the .cab archives context menu (default value)
@@ -1425,7 +1440,7 @@ PreviousVersionsPage -Hide
Перезапустить меню "Пуск"
Пожалуйста, не комментируйте данную функцию
#>
Refresh
RefreshEnvironment

<#
Errors output
@@ -1,9 +1,9 @@
@{
RootModule = 'Sophia.psm1'
ModuleVersion = '5.10.5'
ModuleVersion = '5.10.6'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & oZ-Zo. All rights reserved.'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
Description = 'Module for Windows 10 fine-tuning and automating the routine tasks'
PowerShellVersion = '5.1'
ProcessorArchitecture = 'AMD64'

Large diffs are not rendered by default.

@@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.10.5
Date: 17.05.2021
Version: v5.10.6
Date: 01.06.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & oZ-Zo
@@ -53,20 +53,20 @@ function Sophia
$Functions
)

# 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
# Regardless of the functions entered as an argument, the "Checkings" function will be executed first, and the "RefreshEnvironment" and "Errors" functions will be executed at the end
Invoke-Command -ScriptBlock {Checkings}

foreach ($Function in $Functions)
{
Invoke-Expression -Command $Function
}

Invoke-Command -ScriptBlock {Refresh; Errors}
Invoke-Command -ScriptBlock {RefreshEnvironment; Errors}
}

Clear-Host

$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H2/20H1和更高版本
UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H2/21H1和更高版本
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义Sophia.ps1预设文件中的每个功能?
ControlledFolderAccessDisabled = “受控文件夹访问”禁用
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004/20H2/20H1-Versionen und höher
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004/20H2/21H1-Versionen und höher
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1 versions and higher
UnsupportedISE = The script doesn't support running via Windows PowerShell ISE
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script?
ControlledFolderAccessDisabled = Controlled folder access disabled
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 2004/20H2/21H1 y superiores
UnsupportedISE = El script no es compatible con la ejecución a través de Windows PowerShell ISE
UnsupportedRelease = Nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado Sophia.ps1 antes de ejecutar Sophia Script?
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H2/20H1 et ultérieures
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H2/21H1 et ultérieures
UnsupportedISE = Le script ne supporte pas l'exécution via Windows PowerShell ISE
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage Sophia.ps1 avant d'exécuter Sophia Script?
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
@@ -13,10 +14,10 @@ OptionalFeaturesTitle = Fonctionnalités optionnelles
EnableHardwareVT = Activer la virtualisation dans UEFI
UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}" \nDéplacer les manuellement vers un nouvel emplacement
RetrievingDrivesList = Récupération de la liste des lecteurs...
DriveSelect = Seleccione la unidad dentro de la raíz de la cual se creará la carpeta "{0}"
UserFolderRequest = ¿Le gustaría cambiar la ubicación de la carpeta "{0}"?
UserFolderSelect = Seleccione una carpeta para la carpeta "{0}"
UserDefaultFolder = ¿Le gustaría cambiar la ubicación de la carpeta "{0}" al valor predeterminado?
DriveSelect = Sélectionnez le disque à la racine dans lequel le dossier "{0}" sera créé.
UserFolderRequest = Voulez vous changer où est placé le dossier "{0}" ?
UserFolderSelect = Sélectionnez un dossier pour le dossier "{0}"
UserDefaultFolder = Voulez vous changer où est placé le dossier "{0}" à sa valeur par défaut?
ReservedStorageIsInUse = Cette opération n'est pas suppportée le stockage réservé est en cours d'utilisation \nVeuillez attendre la fin des opérations de maintenance, puis réessayer plus tard
ShortcutPinning = Le raccourci "{0}" est épinglé sur Démarrer
UninstallUWPForAll = Pour tous les utilisateurs
@@ -26,7 +27,7 @@ WSLUpdateInstalling = Installation du package de mise à j
HEVCDownloading = Téléchargement de Extensions vidéo HEVC du fabricant de l'appareil... ~2,8 MB
GraphicsPerformanceTitle = Préférence de performances graphiques
GraphicsPerformanceRequest = Souhaitez-vous définir le paramètre de performances graphiques d'une application de votre choix sur "Haute performance"?
TaskNotificationTitle = Notificación
TaskNotificationTitle = Notificacion
CleanupTaskNotificationTitle = Une information important
CleanupTaskDescription = Nettoyage des fichiers Windows inutilisés et des mises à jour à l'aide de l'application intégrée pour le nettoyage de disque
CleanupTaskNotificationEventTitle = Exécuter la tâche pour nettoyer les fichiers et les mises à jour inutilisés de Windows?
@@ -77,6 +78,6 @@ Select = Sélectionner
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
TelegramTitle = Rejoignez notre chaîne Telegram officielle
TelegramTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller
'@
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript a Windows 10 2004/20H2/21H1 és újabb kiadásokat támogatja
UnsupportedISE = A szkript nem támogatja a "Windows PowerShell ISE" futtatását
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a Sophia.ps1 preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10, 2004/20H2/21H1 versioni e superiori
UnsupportedISE = Lo script non supporta l'esecuzione tramite Windows PowerShell ISE
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file delle preimpostazioni Sophia.ps1 prima di eseguire Sophia Script?
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 2004/20H2/21H1 e superior
UnsupportedISE = O guião não suporta a execução através do Windows PowerShell ISE
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição Sophia.ps1 antes de executar o Sophia Script?
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H2/21H1 и выше
UnsupportedISE = Скрипт не поддерживает работу через Windows PowerShell ISE
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Bu betik sadece Windows 10 2004/20H2/21H1 sürüm ve üstünü destekliyor
UnsupportedISE = Komut dosyası, Windows PowerShell ISE üzerinden çalıştırmayı desteklemiyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce Sophia.ps1 ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
@@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 версії 2004/20H2/21H1 та вище
UnsupportedISE = Скрипт не підтримує роботу через Windows PowerShell ISE
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
@@ -2,11 +2,11 @@
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script"
Version: v5.10.5
Date: 17.05.2021
Version: v5.10.6
Date: 01.06.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & oZ-Zo
Copyright (c) 2019–2021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@@ -40,22 +40,22 @@
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
.LINK GitHub link
https://github.com/farag2/Windows-10-Sophia-Script
.LINK Telegram channel & group
https://t.me/sophianews
https://t.me/sophia_chat
.NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
https://habr.com/post/521202/
https://forums.mydigitallife.net/threads/powershell-windows-10-sophia-script.81675/
https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/
.LINK Telegram channel & group
https://t.me/sophianews
https://t.me/sophia_chat
.LINK
.LINK Authors
https://github.com/farag2
https://github.com/Inestic
.LINK
https://github.com/farag2/Windows-10-Sophia-Script
#>

#Requires -RunAsAdministrator
@@ -71,7 +71,7 @@ param

Clear-Host

$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
@@ -261,7 +261,7 @@ BingSearch -Disable

#region UI & Personalization
# Show the "This PC" icon on Desktop
# Отобразить значок "Этот компьютер" на рабочем столе
# Отображать значок "Этот компьютер" на рабочем столе
ThisPC -Show

# Hide the "This PC" icon on Desktop (default value)
@@ -324,30 +324,6 @@ OneDriveFileExplorerAd -Hide
# Показывать уведомления поставщика синхронизации в проводнике (значение по умолчанию)
# OneDriveFileExplorerAd -Show

# Hide Task View button on the taskbar
# Скрывать кнопку Просмотра задач
TaskViewButton -Hide

# Show Task View button on the taskbar (default value)
# Показывать кнопку Просмотра задач (значение по умолчанию)
# TaskViewButton -Show

# Hide People button on the taskbar
# Скрывать панель "Люди" на панели задач
PeopleTaskbar -Hide

# Show People button on the taskbar (default value)
# Показывать панель "Люди" на панели задач (значение по умолчанию)
# PeopleTaskbar -Show

# Show seconds on the taskbar clock
# Отображать секунды в системных часах на панели задач
SecondsInSystemClock -Show

# Hide seconds on the taskbar clock (default value)
# Скрывать секунды в системных часах на панели задач (значение по умолчанию)
# SecondsInSystemClock -Hide

# When I snap a window, do not show what I can snap next to it
# При прикреплении окна не показывать, что можно прикрепить рядом с ним
SnapAssist -Disable
@@ -385,7 +361,7 @@ RecycleBinDeleteConfirmation -Enable
3DObjects -Hide

# Show the "3D Objects" folder in "This PC" and Quick access (default value)
# Отобразить папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# Отображать папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# 3DObjects -Show

# Hide frequently used folders in Quick access
@@ -404,6 +380,30 @@ QuickAccessRecentFiles -Hide
# Показать недавно использовавшиеся файлы на панели быстрого доступа (значение по умолчанию)
# QuickAccessRecentFiles -Show

# Hide Task View button on the taskbar
# Скрывать кнопку Просмотра задач
TaskViewButton -Hide

# Show Task View button on the taskbar (default value)
# Показывать кнопку Просмотра задач (значение по умолчанию)
# TaskViewButton -Show

# Hide People button on the taskbar
# Скрывать панель "Люди" на панели задач
PeopleTaskbar -Hide

# Show People button on the taskbar (default value)
# Показывать панель "Люди" на панели задач (значение по умолчанию)
# PeopleTaskbar -Show

# Show seconds on the taskbar clock
# Отображать секунды в системных часах на панели задач
SecondsInSystemClock -Show

# Hide seconds on the taskbar clock (default value)
# Скрывать секунды в системных часах на панели задач (значение по умолчанию)
# SecondsInSystemClock -Hide

# Hide the search on the taskbar
# Скрыть поле или значок поиска на панели задач
TaskbarSearch -Hide
@@ -437,9 +437,17 @@ TrayIcons -Show
MeetNow -Hide

# Show the Meet Now icon in the notification area
# Отобразить иконку "Провести собрание" в трее
# Отображать иконку "Провести собрание" в трее
# MeetNow -Show

# Hide "News and Interests" on the taskbar
# Скрыть "Новости и интересы" на панели задач
NewsInterests -Hide

# Show "News and Interests" on the taskbar (default value)
# Отображать "Новости и интересы" на панели задач (значение по умолчанию)
# NewsInterests -Show

# Unpin Microsoft Edge and Microsoft Store from the taskbar
# Открепить Microsoft Edge и Microsoft Store от панели задач
UnpinTaskbarEdgeStore
@@ -1,9 +1,9 @@
@{
RootModule = 'Sophia.psm1'
ModuleVersion = '5.10.5'
ModuleVersion = '5.10.6'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & oZ-Zo. All rights reserved.'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
Description = 'Module for Windows 10 fine-tuning and automating the routine tasks'
PowerShellVersion = '7.1'
ProcessorArchitecture = 'AMD64'

Large diffs are not rendered by default.

@@ -0,0 +1,184 @@
#region Protection

1;chk;Logging;
1;chk;CreateRestorePoint

#region Privacy & Telemetry

2;cmb;DiagTrackService -Disable;DiagTrackService -Enable;
2;cmb;DiagnosticDataLevel -Minimal;DiagnosticDataLevel -Default;
2;cmb;ErrorReporting -Disable;ErrorReporting -Enable;
2;cmb;WindowsFeedback -Disable;WindowsFeedback -Enable;
2;cmb;ScheduledTasks -Disable;ScheduledTasks -Enable;
2;cmb;SigninInfo -Disable;SigninInfo -Enable;
2;cmb;LanguageListAccess -Disable;LanguageListAccess -Enable;
2;cmb;AdvertisingID -Disable;AdvertisingID -Enable;
2;cmb;ShareAcrossDevices -Disable;ShareAcrossDevices -Enable;
2;cmb;WindowsWelcomeExperience -Hide;WindowsWelcomeExperience -Show;
2;cmb;WindowsTips -Enable;WindowsTips -Disable;
2;cmb;SettingsSuggestedContent -Hide;SettingsSuggestedContent -Show;
2;cmb;AppsSilentInstalling -Disable;AppsSilentInstalling -Enable;
2;cmb;WhatsNewInWindows -Disable;WhatsNewInWindows -Enable;
2;cmb;TailoredExperiences -Disable;TailoredExperiences -Enable;
2;cmb;BingSearch -Disable;BingSearch -Enable

#region UI & Personalization

2;cmb;ThisPC -Show;ThisPC -Hide;
2;cmb;CheckBoxes -Disable;CheckBoxes -Enable;
2;cmb;HiddenItems -Enable;HiddenItems -Disable;
2;cmb;FileExtensions -Show;FileExtensions -Hide;
2;cmb;MergeConflicts -Show;MergeConflicts -Hide;
2;cmb;OpenFileExplorerTo -ThisPC;OpenFileExplorerTo -QuickAccess;
2;cmb;CortanaButton -Hide;CortanaButton -Show;
2;cmb;OneDriveFileExplorerAd -Hide;OneDriveFileExplorerAd -Show;
2;cmb;TaskViewButton -Hide;TaskViewButton -Show;
2;cmb;PeopleTaskbar -Hide;PeopleTaskbar -Show;
2;cmb;SecondsInSystemClock -Show;SecondsInSystemClock -Hide;
2;cmb;SnapAssist -Disable;SnapAssist -Enable;
2;cmb;FileTransferDialog -Detailed;FileTransferDialog -Compact;
2;cmb;FileExplorerRibbon -Expanded;FileExplorerRibbon -Minimized;
2;cmb;RecycleBinDeleteConfirmation -Enable;RecycleBinDeleteConfirmation -Disable;
2;cmb;3DObjects -Hide;3DObjects -Show;
2;cmb;QuickAccessFrequentFolders -Hide;QuickAccessFrequentFolders -Show;
2;cmb;QuickAccessRecentFiles -Hide;QuickAccessRecentFiles -Show;
3;cmb;TaskbarSearch -Hide;TaskbarSearch -SearchIcon;TaskbarSearch -SearchBox;
2;cmb;WindowsInkWorkspace -Hide;WindowsInkWorkspace -Show;
2;cmb;TrayIcons -Show;TrayIcons -Hide;
2;cmb;MeetNow -Hide;MeetNow -Show;
2;cmb;NewsInterests -Hide;NewsInterests -Show;
1;chk;UnpinTaskbarEdgeStore;
3;cmb;ControlPanelView -Category;ControlPanelView -LargeIcons;ControlPanelView -SmallIcons;
2;cmb;WindowsColorScheme -Dark;WindowsColorScheme -Light;
2;cmb;AppMode -Dark;AppMode -Light;
2;cmb;NewAppInstalledNotification -Hide;NewAppInstalledNotification -Show;
2;cmb;FirstLogonAnimation -Disable;FirstLogonAnimation -Enable;
2;cmb;JPEGWallpapersQuality -Max;JPEGWallpapersQuality -Default;
2;cmb;TaskManagerWindow -Expanded;TaskManagerWindow -Compact;
2;cmb;RestartNotification -Show;RestartNotification -Hide;
2;cmb;ShortcutsSuffix -Disable;ShortcutsSuffix -Enable;
2;cmb;PrtScnSnippingTool -Enable;PrtScnSnippingTool -Disable;
2;cmb;AppsLanguageSwitch -Disable;AppsLanguageSwitch -Enable

#region OneDrive

2;cmb;OneDrive -Uninstall;OneDrive -Install

#region System

2;cmb;StorageSense -Enable;StorageSense -Disable;
2;cmb;StorageSenseFrequency -Month;StorageSenseFrequency -Default;
2;cmb;StorageSenseTempFiles -Enable;StorageSenseTempFiles -Disable;
2;cmb;StorageSenseRecycleBin -Enable;StorageSenseRecycleBin -Disable;
2;cmb;Hibernate -Disable;Hibernate -Enable;
2;cmb;TempFolder -SystemDrive;TempFolder -Default;
2;cmb;Win32LongPathLimit -Disable;Win32LongPathLimit -Enable;
2;cmb;BSoDStopError -Enable;BSoDStopError -Disable;
2;cmb;AdminApprovalMode -Disable;AdminApprovalMode -Enable;
2;cmb;MappedDrivesAppElevatedAccess -Enable;MappedDrivesAppElevatedAccess -Disable;
2;cmb;DeliveryOptimization -Disable;DeliveryOptimization -Enable;
2;cmb;WaitNetworkStartup -Enable;WaitNetworkStartup -Disable;
2;cmb;WindowsManageDefaultPrinter -Disable;WindowsManageDefaultPrinter -Enable;
2;cmb;WindowsFeatures -Disable;WindowsFeatures -Enable;
2;cmb;WindowsCapabilities -Uninstall;WindowsCapabilities -Install;
2;cmb;UpdateMicrosoftProducts -Enable;UpdateMicrosoftProducts -Disable;
2;cmb;PowerManagementScheme -High;PowerManagementScheme -Balanced;
2;cmb;LatestInstalled.NET -Enable;LatestInstalled.NET -Disable;
2;cmb;PCTurnOffDevice -Disable;PCTurnOffDevice -Enable;
2;cmb;SetInputMethod -English;SetInputMethod -Default;
3;cmb;SetUserShellFolderLocation -Root;SetUserShellFolderLocation -Custom;SetUserShellFolderLocation -Default;
2;cmb;WinPrtScrFolder -Desktop;WinPrtScrFolder -Default;
2;cmb;RecommendedTroubleshooting -Automatic;RecommendedTroubleshooting -Default;
2;cmb;FoldersLaunchSeparateProcess -Enable;FoldersLaunchSeparateProcess -Disable;
2;cmb;ReservedStorage -Disable;ReservedStorage -Enable;
2;cmb;F1HelpPage -Disable;F1HelpPage -Enable;
2;cmb;NumLock -Enable;NumLock -Disable;
2;cmb;CapsLock -Enable;CapsLock -Disable;
2;cmb;StickyShift -Disable;StickyShift -Enable;
2;cmb;Autoplay -Disable;Autoplay -Enable;
2;cmb;ThumbnailCacheRemoval -Disable;ThumbnailCacheRemoval -Enable;
2;cmb;SaveRestartableApps -Enable;SaveRestartableApps -Disable;
2;cmb;NetworkDiscovery -Enable;NetworkDiscovery -Disable;
2;cmb;SmartActiveHours -Enable;SmartActiveHours -Disable;
2;cmb;DeviceRestartAfterUpdate -Enable;DeviceRestartAfterUpdate -Disable

#region WSL

2;cmb;WSL -Enable;WSL -Disable;
1;chk;EnableWSL2

#region Start menu

2;cmb;RecentlyAddedApps -Hide;RecentlyAddedApps -Show;
2;cmb;AppSuggestions -Hide;AppSuggestions -Show;
2;cmb;RunPowerShellShortcut -Elevated;RunPowerShellShortcut -NonElevated;
3;chk;PinToStart -Tiles;ControlPanel;DevicesPrinters;PowerShell;
1;chk;PinToStart -UnpinAll

#region UWP apps

1;chk;UninstallUWPApps;
1;chk;UninstallUWPApps -ForAllUsers;
1;chk;RestoreUWPApps;
2;cmb;HEIF -Manual;HEIF -Install;
2;cmb;CortanaAutostart -Disable;CortanaAutostart -Enable;
2;cmb;BackgroundUWPApps -Disable;BackgroundUWPApps -Enable;
1;chk;CheckUWPAppsUpdates

#region Gaming

2;cmb;XboxGameBar -Disable;XboxGameBar -Enable;
2;cmb;XboxGameTips -Disable;XboxGameTips -Enable;
1;chk;SetAppGraphicsPerformance;
2;cmb;GPUScheduling -Enable;GPUScheduling -Disable

#region Scheduled tasks

2;cmb;CleanupTask -Register;CleanupTask -Delete;
2;cmb;SoftwareDistributionTask -Register;SoftwareDistributionTask -Delete;
2;cmb;TempTask -Register;TempTask -Delete

#region Microsoft Defender & Security

2;cmb;AddProtectedFolders;RemoveProtectedFolders;
2;cmb;AddAppControlledFolder;RemoveAllowedAppsControlledFolder;
2;cmb;AddDefenderExclusionFolder;RemoveDefenderExclusionFolders;
2;cmb;AddDefenderExclusionFile;RemoveDefenderExclusionFiles;
2;cmb;NetworkProtection -Enable;NetworkProtection -Disable;
2;cmb;PUAppsDetection -Enable;PUAppsDetection -Disable;
2;cmb;DefenderSandbox -Enable;DefenderSandbox -Disable;
1;chk;DismissMSAccount;
1;chk;DismissSmartScreenFilter;
2;cmb;AuditProcess -Enable;AuditProcess -Disable;
2;cmb;AuditCommandLineProcess -Enable;AuditCommandLineProcess -Disable;
2;cmb;EventViewerCustomView -Enable;EventViewerCustomView -Disable;
2;cmb;PowerShellModulesLogging -Enable;PowerShellModulesLogging -Disable;
2;cmb;PowerShellScriptsLogging -Enable;PowerShellScriptsLogging -Disable;
2;cmb;AppsSmartScreen -Disable;AppsSmartScreen -Enable;
2;cmb;SaveZoneInformation -Disable;SaveZoneInformation -Enable;
2;cmb;WindowsScriptHost -Disable;WindowsScriptHost -Enable;
2;cmb;WindowsSandbox -Enable;WindowsSandbox -Disable

#region Context menu

2;cmb;MSIExtractContext -Add;MSIExtractContext -Remove;
2;cmb;CABInstallContext -Add;CABInstallContext -Remove;
2;cmb;RunAsDifferentUserContext -Add;RunAsDifferentUserContext -Remove;
2;cmb;CastToDeviceContext -Hide;CastToDeviceContext -Show;
2;cmb;ShareContext -Hide;ShareContext -Show;
2;cmb;EditWithPaint3DContext -Hide;EditWithPaint3DContext -Show;
2;cmb;EditWithPhotosContext -Hide;EditWithPhotosContext -Show;
2;cmb;CreateANewVideoContext -Hide;CreateANewVideoContext -Show;
2;cmb;ImagesEditContext -Hide;ImagesEditContext -Show;
2;cmb;PrintCMDContext -Hide;PrintCMDContext -Show;
2;cmb;IncludeInLibraryContext -Hide;IncludeInLibraryContext -Show;
2;cmb;SendToContext -Hide;SendToContext -Show;
2;cmb;BitLockerContext -Hide;BitLockerContext -Show;
2;cmb;BitmapImageNewContext -Remove;BitmapImageNewContext -Add;
2;cmb;RichTextDocumentNewContext -Remove;RichTextDocumentNewContext -Add;
2;cmb;CompressedFolderNewContext -Remove;CompressedFolderNewContext -Add;
2;cmb;MultipleInvokeContext -Enable;MultipleInvokeContext -Disable;
2;cmb;UseStoreOpenWith -Hide;UseStoreOpenWith -Show;
2;cmb;PreviousVersionsPage -Hide;PreviousVersionsPage -Show

<#end#>
@@ -0,0 +1,154 @@
#region Protection

1;chk;Logging;
1;chk;CreateRestorePoint

#region Privacy & Telemetry

2;cmb;DiagTrackService -Disable;DiagTrackService -Enable;
2;cmb;DiagnosticDataLevel -Minimal;DiagnosticDataLevel -Default;
2;cmb;ErrorReporting -Disable;ErrorReporting -Enable;
2;cmb;WindowsFeedback -Disable;WindowsFeedback -Enable;
2;cmb;ScheduledTasks -Disable;ScheduledTasks -Enable;
2;cmb;SigninInfo -Disable;SigninInfo -Enable;
2;cmb;LanguageListAccess -Disable;LanguageListAccess -Enable;
2;cmb;AdvertisingID -Disable;AdvertisingID -Enable;
2;cmb;ShareAcrossDevices -Disable;ShareAcrossDevices -Enable

#region UI & Personalization

2;cmb;ThisPC -Show;ThisPC -Hide;
2;cmb;CheckBoxes -Disable;CheckBoxes -Enable;
2;cmb;HiddenItems -Enable;HiddenItems -Disable;
2;cmb;FileExtensions -Show;FileExtensions -Hide;
2;cmb;MergeConflicts -Show;MergeConflicts -Hide;
2;cmb;OpenFileExplorerTo -ThisPC;OpenFileExplorerTo -QuickAccess;
2;cmb;TaskViewButton -Hide;TaskViewButton -Show;
2;cmb;PeopleTaskbar -Hide;PeopleTaskbar -Show;
2;cmb;SecondsInSystemClock -Show;SecondsInSystemClock -Hide;
2;cmb;SnapAssist -Disable;SnapAssist -Enable;
2;cmb;FileTransferDialog -Detailed;FileTransferDialog -Compact;
2;cmb;FileExplorerRibbon -Expanded;FileExplorerRibbon -Minimized;
2;cmb;RecycleBinDeleteConfirmation -Enable;RecycleBinDeleteConfirmation -Disable;
2;cmb;3DObjects -Hide;3DObjects -Show;
2;cmb;QuickAccessFrequentFolders -Hide;QuickAccessFrequentFolders -Show;
2;cmb;QuickAccessRecentFiles -Hide;QuickAccessRecentFiles -Show;
3;cmb;TaskbarSearch -Hide;TaskbarSearch -SearchIcon;TaskbarSearch -SearchBox;
2;cmb;TrayIcons -Show;TrayIcons -Hide;
3;cmb;ControlPanelView -Category;ControlPanelView -LargeIcons;ControlPanelView -SmallIcons;
2;cmb;WindowsColorScheme -Dark;WindowsColorScheme -Light;
2;cmb;NewAppInstalledNotification -Hide;NewAppInstalledNotification -Show;
2;cmb;FirstLogonAnimation -Disable;FirstLogonAnimation -Enable;
2;cmb;JPEGWallpapersQuality -Max;JPEGWallpapersQuality -Default;
2;cmb;TaskManagerWindow -Expanded;TaskManagerWindow -Compact;
2;cmb;RestartNotification -Show;RestartNotification -Hide;
2;cmb;ShortcutsSuffix -Disable;ShortcutsSuffix -Enable;
2;cmb;PrtScnSnippingTool -Enable;PrtScnSnippingTool -Disable;
2;cmb;AppsLanguageSwitch -Disable;AppsLanguageSwitch -Enable

#region OneDrive



#region System

2;cmb;StorageSense -Enable;StorageSense -Disable;
2;cmb;StorageSenseFrequency -Month;StorageSenseFrequency -Default;
2;cmb;StorageSenseTempFiles -Enable;StorageSenseTempFiles -Disable;
2;cmb;StorageSenseRecycleBin -Enable;StorageSenseRecycleBin -Disable;
2;cmb;Hibernate -Disable;Hibernate -Enable;
2;cmb;TempFolder -SystemDrive;TempFolder -Default;
2;cmb;Win32LongPathLimit -Disable;Win32LongPathLimit -Enable;
2;cmb;BSoDStopError -Enable;BSoDStopError -Disable;
2;cmb;AdminApprovalMode -Disable;AdminApprovalMode -Enable;
2;cmb;MappedDrivesAppElevatedAccess -Enable;MappedDrivesAppElevatedAccess -Disable;
2;cmb;DeliveryOptimization -Disable;DeliveryOptimization -Enable;
2;cmb;WaitNetworkStartup -Enable;WaitNetworkStartup -Disable;
2;cmb;WindowsManageDefaultPrinter -Disable;WindowsManageDefaultPrinter -Enable;
2;cmb;WindowsFeatures -Disable;WindowsFeatures -Enable;
2;cmb;WindowsCapabilities -Uninstall;WindowsCapabilities -Install;
2;cmb;UpdateMicrosoftProducts -Enable;UpdateMicrosoftProducts -Disable;
2;cmb;PowerManagementScheme -High;PowerManagementScheme -Balanced;
2;cmb;LatestInstalled.NET -Enable;LatestInstalled.NET -Disable;
2;cmb;PCTurnOffDevice -Disable;PCTurnOffDevice -Enable;
2;cmb;SetInputMethod -English;SetInputMethod -Default;
3;cmb;SetUserShellFolderLocation -Root;SetUserShellFolderLocation -Custom;SetUserShellFolderLocation -Default;
2;cmb;WinPrtScrFolder -Desktop;WinPrtScrFolder -Default;
2;cmb;FoldersLaunchSeparateProcess -Enable;FoldersLaunchSeparateProcess -Disable;
2;cmb;F1HelpPage -Disable;F1HelpPage -Enable;
2;cmb;NumLock -Enable;NumLock -Disable;
2;cmb;CapsLock -Enable;CapsLock -Disable;
2;cmb;StickyShift -Disable;StickyShift -Enable;
2;cmb;Autoplay -Disable;Autoplay -Enable;
2;cmb;ThumbnailCacheRemoval -Disable;ThumbnailCacheRemoval -Enable;
2;cmb;NetworkDiscovery -Enable;NetworkDiscovery -Disable;
2;cmb;SmartActiveHours -Enable;SmartActiveHours -Disable;

#region WSL



#region Start menu

2;cmb;RecentlyAddedApps -Hide;RecentlyAddedApps -Show;
2;cmb;AppSuggestions -Hide;AppSuggestions -Show;
2;cmb;RunPowerShellShortcut -Elevated;RunPowerShellShortcut -NonElevated


#region UWP apps



#region Gaming

2;cmb;XboxGameBar -Disable;XboxGameBar -Enable;
2;cmb;XboxGameTips -Disable;XboxGameTips -Enable;
1;chk;SetAppGraphicsPerformance;

#region Scheduled tasks

2;cmb;CleanupTask -Register;CleanupTask -Delete;
2;cmb;SoftwareDistributionTask -Register;SoftwareDistributionTask -Delete;
2;cmb;TempTask -Register;TempTask -Delete

#region Microsoft Defender & Security

2;cmb;AddProtectedFolders;RemoveProtectedFolders;
2;cmb;AddAppControlledFolder;RemoveAllowedAppsControlledFolder;
2;cmb;AddDefenderExclusionFolder;RemoveDefenderExclusionFolders;
2;cmb;AddDefenderExclusionFile;RemoveDefenderExclusionFiles;
2;cmb;NetworkProtection -Enable;NetworkProtection -Disable;
2;cmb;PUAppsDetection -Enable;PUAppsDetection -Disable;
2;cmb;DefenderSandbox -Enable;DefenderSandbox -Disable;
1;chk;DismissMSAccount;
1;chk;DismissSmartScreenFilter;
2;cmb;AuditProcess -Enable;AuditProcess -Disable;
2;cmb;AuditCommandLineProcess -Enable;AuditCommandLineProcess -Disable;
2;cmb;EventViewerCustomView -Enable;EventViewerCustomView -Disable;
2;cmb;PowerShellModulesLogging -Enable;PowerShellModulesLogging -Disable;
2;cmb;PowerShellScriptsLogging -Enable;PowerShellScriptsLogging -Disable;
2;cmb;AppsSmartScreen -Disable;AppsSmartScreen -Enable;
2;cmb;SaveZoneInformation -Disable;SaveZoneInformation -Enable;
2;cmb;WindowsScriptHost -Disable;WindowsScriptHost -Enable;
2;cmb;WindowsSandbox -Enable;WindowsSandbox -Disable

#region Context menu

2;cmb;MSIExtractContext -Add;MSIExtractContext -Remove;
2;cmb;CABInstallContext -Add;CABInstallContext -Remove;
2;cmb;RunAsDifferentUserContext -Add;RunAsDifferentUserContext -Remove;
2;cmb;CastToDeviceContext -Hide;CastToDeviceContext -Show;
2;cmb;ShareContext -Hide;ShareContext -Show;
2;cmb;EditWithPaint3DContext -Hide;EditWithPaint3DContext -Show;
2;cmb;PrintCMDContext -Hide;PrintCMDContext -Show;
2;cmb;IncludeInLibraryContext -Hide;IncludeInLibraryContext -Show;
2;cmb;SendToContext -Hide;SendToContext -Show;
2;cmb;BitLockerContext -Hide;BitLockerContext -Show;
2;cmb;BitmapImageNewContext -Remove;BitmapImageNewContext -Add;
2;cmb;RichTextDocumentNewContext -Remove;RichTextDocumentNewContext -Add;
2;cmb;CompressedFolderNewContext -Remove;CompressedFolderNewContext -Add;
2;cmb;MultipleInvokeContext -Enable;MultipleInvokeContext -Disable;
2;cmb;UseStoreOpenWith -Hide;UseStoreOpenWith -Show;
2;cmb;PreviousVersionsPage -Hide;PreviousVersionsPage -Show

<#end#>
@@ -1,6 +1,5 @@
#region Protection

Checkings -Warning;
CreateRestorePoint

#region Privacy & Telemetry
@@ -55,7 +54,9 @@ TaskManagerWindow -Expanded;
RestartNotification -Show;
ShortcutsSuffix -Disable;
PrtScnSnippingTool -Enable;
AppsLanguageSwitch -Disable
AppsLanguageSwitch -Disable;
ControlPanelView -LargeIcons;
TaskbarSearch -Hide

#region OneDrive

@@ -94,7 +95,8 @@ ThumbnailCacheRemoval -Disable;
SaveRestartableApps -Enable;
NetworkDiscovery -Enable;
SmartActiveHours -Enable;
DeviceRestartAfterUpdate -Enable
DeviceRestartAfterUpdate -Enable;
SetUserShellFolderLocation -Root

#region WSL

@@ -103,7 +105,7 @@ DeviceRestartAfterUpdate -Enable
RecentlyAddedApps -Hide;
AppSuggestions -Hide;
RunPowerShellShortcut -Elevated;
PinToStart -Tiles ControlPanel, DevicesPrinters, PowerShell
PinToStart -Tiles ControlPanel,DevicesPrinters,PowerShell

#region UWP apps

@@ -122,7 +124,7 @@ GPUScheduling -Enable

#region Scheduled tasks

CleanUpTask -Register;
CleanupTask -Register;
SoftwareDistributionTask -Register;
TempTask -Register

@@ -168,10 +170,4 @@ MultipleInvokeContext -Enable;
UseStoreOpenWith -Hide;
PreviousVersionsPage -Hide

#region Other

ControlPanelView -LargeIcons;
TaskbarSearch -Hide;
SetUserShellFolderLocation -Root

<#end#>
@@ -1,7 +1,5 @@
#region Protection

Checkings -Warning;Do the required checkings, and display a warning message about whether you've customized the preset file;
Checkings;Do the required checkings;
Logging;Enable script logging. The log will be being recorded into the script folder.To stop logging just close the console or type "Stop-Transcript";
CreateRestorePoint;Create a restore point

@@ -43,7 +41,7 @@ BingSearch -Enable;Enable Bing search in the Start Menu (default value)
#region UI & Personalization

ThisPC -Show;Show the "This PC" icon on Desktop;
ThisPC -Hide; Hide the "This PC" icon on Desktop (default value);
ThisPC -Hide;Hide the "This PC" icon on Desktop (default value);
CheckBoxes -Disable;Do not use check boxes to select items;
CheckBoxes -Enable;Use check boxes to select items (default value);
HiddenItems -Enable;Show hidden files, folders, and drives;
@@ -84,10 +82,15 @@ TrayIcons -Show;Always show all icons in the notification area;
TrayIcons -Hide;Do not show all icons in the notification area (default value);
MeetNow -Hide;Hide the Meet Now icon in the notification area;
MeetNow -Show;Show the Meet Now icon in the notification area (default value);
NewsInterests -Hide;Hide "News and Interests" on the taskbar;
NewsInterests -Show;Show "News and Interests" on the taskbar (default value);
UnpinTaskbarEdgeStore;Unpin "Microsoft Edge" and "Microsoft Store" from the taskbar;
ControlPanelView -Category;View the Control Panel icons by: category (default value);
ControlPanelView -LargeIcons;View the Control Panel icons by: large icons;
ControlPanelView -SmallIcons;View the Control Panel icons by: small icons;
TaskbarSearch -Hide;Hide the search box or the search icon from the taskbar;
TaskbarSearch -SearchIcon;Show the search icon on the taskbar;
TaskbarSearch -SearchBox;Show the search box on the taskbar (default value);
WindowsColorScheme -Dark;Set the Windows mode color scheme to the dark;
WindowsColorScheme -Light;Set the Windows mode color scheme to the light;
AppMode -Dark;Set the default app mode color scheme to the dark;
@@ -199,7 +202,7 @@ AppSuggestions -Hide;Hide app suggestions in the Start menu;
AppSuggestions -Show;Show app suggestions in the Start menu (default value);
RunPowerShellShortcut -Elevated;Run the Windows PowerShell shortcut from the Start menu as Administrator;
RunPowerShellShortcut -NonElevated;Run the Windows PowerShell shortcut from the Start menu as user (default value);
PinToStart -Tiles ControlPanel,DevicesPrinters,PowerShell;Pin to Start the following links: Control Panel, Devices and Printers, PowerShell;
PinToStart -Tiles;Pin to Start the following links: Control Panel, Devices and Printers, PowerShell;
PinToStart -Tiles ControlPanel;Pin the Control Panel shortcut shortcut to Start;
PinToStart -Tiles DevicesPrinters;Pin the "Devices & Printers" shortcut to Start;
PinToStart -Tiles PowerShell;Pin the Windows PowerShell shortcut to Start;
@@ -210,7 +213,8 @@ PinToStart -UnpinAll;Unpin all the Start tiles
UninstallUWPApps;Uninstall UWP apps using the pop-up dialog box. If the "For All Users" is checked apps packages will not be installed for new users. The "For All Users" checkbox isn't checked by default;
UninstallUWPApps -ForAllUsers;Uninstall UWP apps using the pop-up dialog box. If the "For All Users" is checked apps packages will not be installed for new users. The "For All Users" checkbox checked by default;
RestoreUWPApps;Restore the default UWP apps using the pop-up dialog box. UWP apps can be restored only if they were uninstalled only for the current user;
InstallHEIF;Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page to install this extension manually to be able to open .heic and .heif image formats. The extension can be installed without Microsoft account;
HEIF -Manual;Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page to install this extension manually to be able to open .heic and .heif image formats. The extension can be installed without Microsoft account;
HEIF -Install;Open Microsoft Store "HEVC Video Extensions from Device Manufacturer" page to install this extension automatically to be able to open .heic and .heif image formats. The extension can be installed without Microsoft account;
CortanaAutostart -Disable;Disable Cortana autostarting;
CortanaAutostart -Enable;Enable Cortana autostarting (default value);
BackgroundUWPApps -Disable;Do not let all UWP apps run in the background;
@@ -229,8 +233,8 @@ GPUScheduling -Disable;Turn off hardware-accelerated GPU scheduling (default val

#region Scheduled tasks

CleanUpTask -Register;Create the "Windows Cleanup" scheduled task for cleaning up unused files and Windows updates;
CleanUpTask -Delete;Delete the "Windows Cleanup" scheduled task for cleaning up unused files and Windows updates;
CleanupTask -Register;Create the "Windows Cleanup" scheduled task for cleaning up unused files and Windows updates;
CleanupTask -Delete;Delete the "Windows Cleanup" scheduled task for cleaning up unused files and Windows updates;
SoftwareDistributionTask -Register;Create the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder;
SoftwareDistributionTask -Delete;Delete the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder;
TempTask -Register;Create the "Temp" scheduled task for cleaning up the %TEMP% folder;
@@ -1,4 +1,4 @@
File: README.TXT for 'Sophia Script Wrapper' created by https://benchtweakgaming.com/2020/10/10/windows-10-debloat-tool/
File: README.TXT for 'Sophia Script Wrapper v2.0' created by https://benchtweakgaming.com/2020/10/10/windows-10-debloat-tool/
Created for farag2 Windows 10 Sophia Script: https://github.com/farag2/Windows-10-Sophia-Script

INTRODUCTION
@@ -12,51 +12,47 @@ Windows 10 Sophia Script. It serves as a front-end GUI for the Sophia script (Wr

The options are arranged in different tabs and there is a Default preset in the menu so you can debloat a
set of options. You can choose the Default preset first and then add your own choices. You can also create your own
Sophia script to share and open it up. There is also a ‘Opposite’ menu choice to select the alternate radiobutton choices.
This is good to revert the changes into a script to run. There are ToolTips balloon message popups for detailed info
for each radiobutton. There is also a square button with each radiobutton for you to go launch a text window and read
or edit the function in the PowerShell 'Sophia.psm1' file module.
Sophia script to share and open it up. There are ToolTips balloon message popups for detailed info for each item.

After choosing your options you can directly run the PowerShell script from the program after creating your script.
Click the ‘Run Powershell’ button after you fill in the radiobutton choices and click the ‘Output PowerShell’ button.
The “Run PowerShell” button creates a PowerShell script called ‘Sophia.ps1’ in the same directory and runs it.
To do so, open up 'Sophia.ps1' preset, this also gets the path for files to run directly, then fill in your combobox
choices, click the ‘Output PowerShell’ button and then click ‘Run Powershell’ button. The “Run PowerShell” button
creates a PowerShell script called ‘Sophia_edited.ps1’ in the same directory and runs it.

OR save the PowerShell script as Sophia.ps1 with the other files (see heading FILES below) and run it using
the following commands.
OR save the PowerShell script as 'Sophia.ps1' with the farag2 Sophia files (see heading FILES below)
and run it using the following commands.

Launch PowerShell (Run as administrator) and navigate to where your script is.

1. Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
2. .\Sophia.ps1
2. ./Sophia.ps1

FILES
-----
There needs to be 5 files for this program to run properly.
There needs to be 6 files for this program to run properly. The txt files are stored in a folder 'Config'.

►Sophia Script Wrapper.exe: The GUI program.
►data.txt: Contains the options (function names) to select from (usually only 2 options that something is Enable or Disable or "LeaveAlone").
Notice the sections "#region Xxx" and how a semi colon separate the function commands. The last command option in each
section does not have a semi colon. Add or substract from the set.
►Sophia Script Wrapper.exe : The GUI program.
►data.txt : Contains the options (function names) to select from (usually only 2 options that something is Enable or Disable or ‘LeaveAlone’).
Notice the sections ‘#region Xxx’ and how a semi colon separate the function commands. The last command option in each section does not have a semi colon.
Add or substract from the set.
►dataltsc.txt : LTSC version of data.txt
►default.txt : Contains Default preset to debloat. Click this preset from Option menu in program.
►tooltip.txt : Contains ToolTips for each radiobutton option. In English.
►tooltip.txt : Contains ToolTips for each combobox item. In English.
►README.txt : This documentation.

INSTRUCTIONS
------------
UNZIP the files and open the 'Sophia.ps1' file to import your preset and to get the path for files to run.
UNZIP all the files and open the 'Sophia.ps1' file to import your preset and to get the path for files to run.
If you do not open 'Sophia.ps1' then you can not run directly the PowerShell script you create and must run
your script manually via PowerShell command line in console.

***********************************************************************************************************
*** For the file 'Sophia.ps1', you should make a copy/backup of it as the wrapper overwrites this file. ***
***********************************************************************************************************
►Sophia.ps1 : farag2 Original Windows PowerShell Script.
►Sophia.psd1 : farag2 Windows PowerShell Data File
►Sophia.psm1 : farag2 Windows PowerShell Script Module
►Functions.ps1 : farag2 Windows PowerShell Script to run functions with tab autocompletion

►Sophia.ps1 : Original Windows PowerShell Script
►Sophia.psd1 : Windows PowerShell Data File
►Sophia.psm1 : Windows PowerShell Script Module
►Functions.ps1 : PS script to run functions with tab autocompletion

The folders are localized language files for prompts during the PowerShell execution each with a PowerShell Data File 'Sophia.psd1'
The 'Localizations' folder contains folders that are localized language files for prompts during the PowerShell
execution each with a PowerShell Data File 'Sophia.psd1'.

►cn-CN
►de-DE
BIN +3.39 MB (740%) Wrapper/Sophia Script Wrapper.exe
Binary file not shown.

This file was deleted.

This file was deleted.