Browse Source

05.08.2021 v5.2.11

pull/227/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
f35325d9df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      Sophia/LTSC/Functions.ps1
  2. 7
      Sophia/LTSC/Localizations/de-DE/Sophia.psd1
  3. 10
      Sophia/LTSC/Localizations/en-US/Sophia.psd1
  4. 7
      Sophia/LTSC/Localizations/es-ES/Sophia.psd1
  5. 9
      Sophia/LTSC/Localizations/fr-FR/Sophia.psd1
  6. 10
      Sophia/LTSC/Localizations/hu-HU/Sophia.psd1
  7. 7
      Sophia/LTSC/Localizations/it-IT/Sophia.psd1
  8. 7
      Sophia/LTSC/Localizations/pt-BR/Sophia.psd1
  9. 7
      Sophia/LTSC/Localizations/ru-RU/Sophia.psd1
  10. 7
      Sophia/LTSC/Localizations/tr-TR/Sophia.psd1
  11. 7
      Sophia/LTSC/Localizations/uk-UA/Sophia.psd1
  12. 7
      Sophia/LTSC/Localizations/zh-CN/Sophia.psd1
  13. 12
      Sophia/LTSC/Manifest/Sophia.psd1
  14. 330
      Sophia/LTSC/Module/Sophia.psm1
  15. 98
      Sophia/LTSC/Sophia.ps1

18
Sophia/LTSC/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.2.10
Date: 13.07.2021
Version: v5.2.11
Date: 04.08.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -27,8 +27,12 @@
Separate functions with a comma
.LINK
https://github.com/farag2/Windows-10-Sophia-Script
https://github.com/farag2/Sophia-Script-for-Windows
#>
#Requires -RunAsAdministrator
#Requires -Version 5.1
function Sophia
{
[CmdletBinding()]
@ -39,8 +43,6 @@ function Sophia
$Functions
)
Invoke-Command -ScriptBlock {Checkings}
foreach ($Function in $Functions)
{
Invoke-Expression -Command $Function
@ -52,13 +54,17 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.10 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.11 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checkings. Please, do not comment out this function
# Обязательные проверки. Пожалуйста, не комментируйте данную функцию
Checkings
$Parameters = @{
CommandName = "Sophia"
ParameterName = "Functions"

7
Sophia/LTSC/Localizations/de-DE/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Das Skript unterstützt nur Windows
UnsupportedOSBuild = Das Skript unterstützt Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen, ein Skript über PowerShell {0} auszuführen. Führen Sie das Skript in der entsprechenden PowerShell-Version aus
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert
UnsupportedRelease = Neue Version gefunden
@ -52,7 +53,8 @@ Install = Installieren
Minute = 1 Minute
NoData = Nichts anzuzeigen
NoInternetConnection = Keine Internetverbindung
NoResponse = Eine Verbindung mit https://store.rg-adguard.net konnte nicht hergestellt werden
RestartFunction = Bitte starten Sie die Funktion "{0}" neu
NoResponse = Eine Verbindung mit {0} konnte nicht hergestellt werden
No = Nein
Yes = Ja
Open = Öffnen
@ -62,6 +64,7 @@ Run = Starten
SelectAll = Wählen Sie Alle
Skip = Überspringen
Skipped = Übersprungen
TelegramTitle = Abonniere doch unseren offiziellen Kanal telegram
TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei
TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei
Uninstall = Deinstallieren
'@

10
Sophia/LTSC/Localizations/en-US/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = The script supports Windows 10 x64 o
UnsupportedOSBuild = The script supports Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}. Run the script in the appropriate PowerShell version
UnsupportedISE = The script doesn't support running via Windows PowerShell ISE
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor
UnsupportedRelease = A new version found
@ -46,13 +47,14 @@ Enable = Enable
EXEFilesFilter = *.exe|*.exe|All Files (*.*)|*.*
FolderSelect = Select a folder
FilesWontBeMoved = Files will not be moved
FourHours = 4 Hours
HalfHour = 30 Minutes
FourHours = 4 hours
HalfHour = 30 minutes
Install = Install
Minute = 1 Minute
Minute = 1 minute
NoData = Nothing to display
NoInternetConnection = No Internet connection
NoResponse = A connection could not be established with https://store.rg-adguard.net
RestartFunction = Please re-run the "{0}" function
NoResponse = A connection could not be established with {0}
No = No
Yes = Yes
Open = Open

7
Sophia/LTSC/Localizations/es-ES/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = El script sólo es compatible con Wi
UnsupportedOSBuild = El script es compatible con versión Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}. Ejecute el script en la versión apropiada de PowerShell
UnsupportedISE = El script no es compatible con la ejecución a través de Windows PowerShell ISE
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker
UnsupportedRelease = Una nueva versión encontrada
@ -52,7 +53,8 @@ Install = Instalar
Minute = 1 minuto
NoData = Nada que mostrar
NoInternetConnection = No hay conexión a Internet
NoResponse = No se pudo establecer una conexión con https://store.rg-adguard.net
RestartFunction = Por favor, reinicie la función "{0}"
NoResponse = No se pudo establecer una conexión con {0}
No = No
Yes =
Open = Abierta
@ -62,6 +64,7 @@ Run = Iniciar
SelectAll = Seleccionar todo
Skip = Omitir
Skipped = Omitido
TelegramTitle = Únete a nuestro canal oficial de Telegram
TelegramGroupTitle = Únete a nuestro grupo oficial de Telegram
TelegramChannelTitle = Únete a nuestro canal oficial de Telegram
Uninstall = Desinstalar
'@

9
Sophia/LTSC/Localizations/fr-FR/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Le script supporte uniquement Window
UnsupportedOSBuild = Le script supporte le version Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}. Exécutez le script dans la version appropriée de PowerShell
UnsupportedISE = Le script ne supporte pas l'exécution via Windows PowerShell ISE
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker
UnsupportedRelease = Nouvelle version trouvée
@ -12,7 +13,7 @@ ScheduledTasks = Tâches planifiées
WindowsFeaturesTitle = Fonctionnalités
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
UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}". Déplacer les manuellement vers un nouvel emplacement
RetrievingDrivesList = Récupération de la liste des lecteurs...
DriveSelect = Sélectionnez le disque à la racine dans lequel le dossier "{0}" sera créé.
UserFolderRequest = Voulez vous changer est placé le dossier "{0}" ?
@ -52,7 +53,8 @@ Install = Installer
Minute = 1 minute
NoData = Rien à afficher
NoInternetConnection = Pas de connexion Internet
NoResponse = Une connexion n'a pas pu être établie avec https://store.rg-adguard.net
RestartFunction = Veuillez redémarrer la fonction "{0}"
NoResponse = Une connexion n'a pas pu être établie avec {0}
No = Non
Yes = Oui
Open = Ouvert
@ -62,6 +64,7 @@ Run = Démarrer
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
TelegramTitle = Rejoignez notre canal Telegram officiel
TelegramGroupTitle = Rejoignez notre groupe Telegram officiel
TelegramChannelTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller
'@

10
Sophia/LTSC/Localizations/hu-HU/Sophia.psd1

@ -3,7 +3,9 @@ UnsupportedOSBitness = A szkript csak a Windows 10 64 bites
UnsupportedOSBuild = A szkript támogatja a Windows 10 1809 Enterprise LTSC kiadást
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedISE = A szkript nem támogatja a "Windows PowerShell ISE" futtatását
UnsupportedPowerShell = A szkriptet a PowerShell 7 segítségével próbálja futtatni. Futtassa a szkriptet a megfelelő PowerShell verzióban
UnsupportedISE = A szkript nem támogatja a Windows PowerShell ISE futtatását
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg
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
@ -51,7 +53,8 @@ Install = Telepítés
Minute = 1 perc
NoData = Nincs megjeleníthető információ
NoInternetConnection = Nincs internetkapcsolat
NoResponse = Nem hozható létre kapcsolat a https://store.rg-adguard.net weboldallal
RestartFunction = Ponovo pokrenite funkciju "{0}"
NoResponse = Nem hozható létre kapcsolat a {0} weboldallal
No = Nem
Yes = Igen
Open = Megnyitás
@ -61,6 +64,7 @@ Run = Futtatás
SelectAll = Összes kijelölése
Skip = Átugrás
Skipped = Átugorva
TelegramTitle = Csatlakozzon a hivatalos Telegram csoportunkhoz
TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram
TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram
Uninstall = Eltávolít
'@

7
Sophia/LTSC/Localizations/it-IT/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Lo script supporta solo Windows 10 x
UnsupportedOSBuild = Lo script supporta Windows 10 versione 1809 Enterprise LTSC
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in una modalità di lingua limitata
LoggedInUserNotAdmin = L'utente connesso non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}. Esegui lo script nella versione di PowerShell appropriata
UnsupportedISE = Lo script non supporta l'esecuzione tramite Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
UnsupportedRelease = Nuova versione trovata
@ -52,7 +53,8 @@ Install = Installare
Minute = 1 minuto
NoData = Niente da esposizione
NoInternetConnection = Nessuna connessione Internet
NoResponse = Non è stato possibile stabilire una connessione con https://store.rg-adguard.net
RestartFunction = Si prega di riavviare la funzione "{0}"
NoResponse = Non è stato possibile stabilire una connessione con {0}
No = No
Yes =
Open = Aperto
@ -62,6 +64,7 @@ Run = Eseguire
SelectAll = Seleziona tutto
Skip = Salta
Skipped = Saltato
TelegramTitle = Unisciti al nostro canale ufficiale di Telegram
TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram
TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram
Uninstall = Disinstallare
'@

7
Sophia/LTSC/Localizations/pt-BR/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = O script suporta somente Windows 10
UnsupportedOSBuild = O script suporta versões Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}. Execute o script na versão apropriada do PowerShell
UnsupportedISE = O guião não suporta a execução através do Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
UnsupportedRelease = Nova versão encontrada
@ -52,7 +53,8 @@ Install = Instalar
Minute = 1 minuto
NoData = Nada à exibir
NoInternetConnection = Sem conexão à Internet
NoResponse = Uma conexão não pôde ser estabelecida com https://store.rg-adguard.net
RestartFunction = Favor reiniciar a função "{0}"
NoResponse = Uma conexão não pôde ser estabelecida com {0}
No = Não
Yes = Sim
Open = Abrir
@ -62,6 +64,7 @@ Run = Executar
SelectAll = Selecionar tudo
Skip = Pular
Skipped = Ignorados
TelegramTitle = Entre no canal oficial do Telegram
TelegramGroupTitle = Entre no grupo oficial do Telegram
TelegramChannelTitle = Entre no canal oficial do Telegram
Uninstall = Desinstalar
'@

7
Sophia/LTSC/Localizations/ru-RU/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Скрипт поддерживае
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}. Запустите скрипт в соответствующей версии PowerShell
UnsupportedISE = Скрипт не поддерживает работу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker заражена трояном
UnsupportedRelease = Обнаружена новая версия
@ -52,7 +53,8 @@ Install = Установить
Minute = 1 минута
NoData = Отсутствуют данные
NoInternetConnection = Отсутствует интернет-соединение
NoResponse = Невозможно установить соединение с https://store.rg-adguard.net
RestartFunction = Пожалуйста, повторно запустите функцию "{0}"
NoResponse = Невозможно установить соединение с {0}
No = Нет
Yes = Да
Open = Открыть
@ -62,6 +64,7 @@ Run = Запустить
SelectAll = Выбрать всё
Skip = Пропустить
Skipped = Пропущено
TelegramTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram
Uninstall = Удалить
'@

7
Sophia/LTSC/Localizations/tr-TR/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Bu betik sadece Windows 10 x64 deste
UnsupportedOSBuild = Bu betik sadece Windows 10 1809 Enterprise LTSC
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell 7 aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
UnsupportedISE = Komut dosyası, Windows PowerShell ISE üzerinden çalıştırmayı desteklemiyor
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı
UnsupportedRelease = Yeni sürüm bulundu
@ -52,7 +53,8 @@ Install = Yükle
Minute = 1 Dakika
NoData = Görüntülenecek bir şey yok
NoInternetConnection = İnternet bağlantısı yok
NoResponse = https://store.rg-adguard.net ile bağlantı kurulamadı
RestartFunction = Lütfen "{0}" işlevini yeniden çalıştırın
NoResponse = {0} ile bağlantı kurulamadı
No = Hayır
Yes = Evet
Open = Açık
@ -62,6 +64,7 @@ Run = Başlat
SelectAll = Hepsini seç
Skip = Atla
Skipped = Atlandı
TelegramTitle = Resmi Telegram grubumuza katılın
TelegramGroupTitle = Resmi Telegram grubumuza katılın
TelegramChannelTitle = Resmi Telegram kanalımıza katılın
Uninstall = Kaldır
'@

7
Sophia/LTSC/Localizations/uk-UA/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = Скрипт підтримує ті
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 1809 версії Enterprise LTSC
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний увійшов користувач не володіє правами адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}. Запустіть скрипт у відповідній версії PowerShell
UnsupportedISE = Скрипт не підтримує роботу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker заражена трояном
UnsupportedRelease = Виявлено нову версію
@ -52,7 +53,8 @@ Install = Встановити
Minute = 1 хвилина
NoData = Відсутні дані
NoInternetConnection = Відсутнє інтернет-з'єднання
NoResponse = Не вдалося встановити звязок із https://store.rg-adguard.net
RestartFunction = Будь ласка, повторно запустіть функцію "{0}"
NoResponse = Не вдалося встановити звязок із {0}
No = Немає
Yes = Так
Open = Відкрити
@ -62,6 +64,7 @@ Run = Запустити
SelectAll = Вибрати все
Skip = Пропустити
Skipped = Пропущено
TelegramTitle = Приєднуйтесь до нашої офіційної групи Telegram
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи Telegram
TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram
Uninstall = Видалити
'@

7
Sophia/LTSC/Localizations/zh-CN/Sophia.psd1

@ -3,6 +3,7 @@ UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本1809 Enterprise LTSC
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}运行脚本在适当的PowerShell版本中运行该脚本
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
Win10TweakerWarning = 可能你的操作系统是通过Win 10 Tweaker后门感染的
UnsupportedRelease = 找到新版本
@ -52,7 +53,8 @@ Install = 安装
Minute = 1分钟
NoData = 无数据
NoInternetConnection = 无网络连接
NoResponse = 无法建立https://store.rg-adguard.net连接
RestartFunction = 请重新运行"{0}"函数
NoResponse = 无法建立{0}
No =
Yes = 是的
Open = 打开
@ -62,6 +64,7 @@ Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
TelegramTitle = 加入我们的官方电报群组
TelegramGroupTitle = 加入我们的官方Telegram
TelegramChannelTitle = 加入我们的官方Telegram 频道
Uninstall = 卸载
'@

12
Sophia/LTSC/Manifest/Sophia.psd1

@ -1,20 +1,20 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.2.10'
ModuleVersion = '5.2.11'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
Description = 'Module for Windows 10 fine-tuning and automating the routine tasks'
Description = 'Module for Windows fine-tuning and automating the routine tasks'
PowerShellVersion = '5.1'
ProcessorArchitecture = 'AMD64'
FunctionsToExport = '*'
PrivateData = @{
PSData = @{
LicenseUri = 'https://github.com/farag2/Windows-10-Sophia-Script/blob/master/LICENSE'
ProjectUri = 'https://github.com/farag2/Windows-10-Sophia-Script'
IconUri = 'https://raw.githubusercontent.com/farag2/Windows-10-Sophia-Script/master/img/Sophia.png'
ReleaseNotes = 'https://github.com/farag2/Windows-10-Sophia-Script/blob/master/CHANGELOG.md'
LicenseUri = 'https://github.com/farag2/Sophia-Script-for-Windows/blob/master/LICENSE'
ProjectUri = 'https://github.com/farag2/Sophia-Script-for-Windows'
IconUri = 'https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/img/Sophia.png'
ReleaseNotes = 'https://github.com/farag2/Sophia-Script-for-Windows/blob/master/CHANGELOG.md'
}
}
}

330
Sophia/LTSC/Module/Sophia.psm1

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Sophia Script (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.2.10
Date: 13.07.2021
Version: v5.2.11
Date: 05.08.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -25,7 +25,7 @@
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.LINK GitHub link
https://github.com/farag2/Windows-10-Sophia-Script
https://github.com/farag2/Sophia-Script-for-Windows
.LINK Telegram channel & group
https://t.me/sophianews
@ -104,6 +104,13 @@ function Checkings
}
}
# Check whether the script was run via PowerShell 5.1
if ($PSVersionTable.PSVersion.Major -ne 5)
{
Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major)
exit
}
# Check whether the script was run via PowerShell ISE
if ($Host.Name -match "ISE")
{
@ -122,12 +129,12 @@ function Checkings
exit
}
# Checking if the current module version is the latest one
# Check if the current module version is the latest one
try
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Windows-10-Sophia-Script/master/Sophia/LTSC/Manifest/Sophia.psd1"
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/Sophia/LTSC/Manifest/Sophia.psd1"
OutFile = "$DownloadsFolder\Manifest.psd1"
Verbose = [switch]::Present
}
@ -146,18 +153,18 @@ function Checkings
Start-Sleep -Seconds 5
Start-Process -FilePath "https://github.com/farag2/Windows-10-Sophia-Script/releases/latest"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"
exit
}
}
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Warning -Message ($Localization.NoResponse -f "https://github.com/farag2/Sophia-Script-for-Windows")
Write-Error -Message ($Localization.NoResponse -f "https://github.com/farag2/Sophia-Script-for-Windows") -ErrorAction SilentlyContinue
}
# Unblock all files in the folder by removing the Zone.Identifier alternate data stream with a value of "3"
# Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot -Recurse -Force | Unblock-File
# Display a warning message about whether a user has customized the preset file
@ -179,8 +186,7 @@ function Checkings
Start-Sleep -Seconds 5
Start-Process -FilePath "https://github.com/farag2/Windows-10-Sophia-Script#how-to-use"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#how-to-use"
exit
}
"1"
@ -597,9 +603,10 @@ function ScheduledTasks
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Name="Window"
MinHeight="450" MinWidth="400"
SizeToContent="Width" WindowStartupLocation="CenterScreen"
SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Candara" FontSize="16" ShowInTaskbar="True">
FontFamily="Candara" FontSize="16" ShowInTaskbar="True"
Background="#F1F1F1" Foreground="#262626">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"/>
@ -800,7 +807,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -886,13 +893,13 @@ function SigninInfo
<#
.SYNOPSIS
The provision to websites a locally relevant content by accessing language list
The provision to websites a locally relevant content by accessing my language list
.PARAMETER Disable
Do not let websites provide locally relevant content by accessing language list
Do not let websites provide locally relevant content by accessing my language list
.PARAMETER Enable
Let websites provide locally relevant content by accessing language list
Let websites provide locally relevant content by accessing language my list
.EXAMPLE
LanguageListAccess -Disable
@ -1000,17 +1007,17 @@ function AdvertisingID
.SYNOPSIS
The "This PC" icon on Desktop
.PARAMETER Hide
.PARAMETER Show
Show the "This PC" icon on Desktop
.PARAMETER Show
.PARAMETER Hide
Hide the "This PC" icon on Desktop
.EXAMPLE
ThisPC -Hide
ThisPC -Show
.EXAMPLE
ThisPC -Show
ThisPC -Hide
.NOTES
Current user
@ -1945,46 +1952,65 @@ function TaskbarSearch
Hide all icons in the notification area
.EXAMPLE
TrayIcons -Show
NotificationAreaIcons -Show
.EXAMPLE
TrayIcons -Hide
NotificationAreaIcons -Hide
.NOTES
Current user
#>
function TrayIcons
function NotificationAreaIcons
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
ParameterSetName = "Show"
)]
[switch]
$Hide,
$Show,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
ParameterSetName = "Hide"
)]
[switch]
$Show
$Hide
)
switch ($PSCmdlet.ParameterSetName)
{
"Show"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name EnableAutoTray -PropertyType DWord -Value 0 -Force
}
"Hide"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name EnableAutoTray -PropertyType DWord -Value 1 -Force
}
"Show"
}
# Save all opened folders in order to restore them after File Explorer restart
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# In order for the changes to take effect the File Explorer process has to be restarted
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
# Restoring closed folders
foreach ($OpenedFolder in $OpenedFolders)
{
if (Test-Path -Path $OpenedFolder)
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name EnableAutoTray -PropertyType DWord -Value 0 -Force
Invoke-Item -Path $OpenedFolder
}
}
}
<#
.SYNOPSIS
The Control Panel icons view
@ -2182,11 +2208,11 @@ function NewAppInstalledNotification
.SYNOPSIS
First sign-in animation after the upgrade
.PARAMETER Hide
Hide first sign-in animation after the upgrade
.PARAMETER Disable
Disable first sign-in animation after the upgrade
.PARAMETER Show
Show first sign-in animation after the upgrade
.PARAMETER Enable
Enable first sign-in animation after the upgrade
.EXAMPLE
FirstLogonAnimation -Disable
@ -2750,10 +2776,10 @@ function StorageSenseFrequency
Enable hibernation
.EXAMPLE
Hibernate -Enable
Hibernation -Enable
.EXAMPLE
Hibernate -Disable
Hibernation -Disable
.NOTES
Do not recommend turning it off on laptops
@ -2761,7 +2787,7 @@ function StorageSenseFrequency
.NOTES
Current user
#>
function Hibernate
function Hibernation
{
param
(
@ -3497,9 +3523,10 @@ function WindowsFeatures
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Name="Window"
MinHeight="450" MinWidth="400"
SizeToContent="Width" WindowStartupLocation="CenterScreen"
SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Candara" FontSize="16" ShowInTaskbar="True">
FontFamily="Candara" FontSize="16" ShowInTaskbar="True"
Background="#F1F1F1" Foreground="#262626">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"/>
@ -3708,7 +3735,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -like "Windows 10 Sophia Script*"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -3839,9 +3866,10 @@ function WindowsCapabilities
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Name="Window"
MinHeight="450" MinWidth="400"
SizeToContent="Width" WindowStartupLocation="CenterScreen"
SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen"
TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True"
FontFamily="Candara" FontSize="16" ShowInTaskbar="True">
FontFamily="Candara" FontSize="16" ShowInTaskbar="True"
Background="#F1F1F1" Foreground="#262626">
<Window.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal"/>
@ -3894,20 +3922,6 @@ function WindowsCapabilities
}
#region Functions
function InternetConnectionStatus
{
try
{
(Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
return
}
}
function Get-CheckboxClicked
{
[CmdletBinding()]
@ -4018,7 +4032,20 @@ function WindowsCapabilities
{
"Install"
{
InternetConnectionStatus
# Check the internet connection
try
{
(Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return
}
$State = "NotPresent"
$ButtonContent = $Localization.Install
@ -4074,7 +4101,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -like "Windows 10 Sophia Script*"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC"} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -4326,6 +4353,85 @@ function NetworkAdaptersSavePower
}
}
<#
.SYNOPSIS
Internet Protocol Version 6 (TCP/IPv6) component
.PARAMETER Disable
Disable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections
.PARAMETER Enable
Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections
.EXAMPLE
IPv6Component -Disable
.EXAMPLE
IPv6Component -Enable
.NOTES
Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipv6-test.com
.NOTES
Current user
#>
function IPv6Component
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable
)
# Check the internet connection
try
{
if ((Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription)
{
# Check whether the ISP supports IPv6 protocol using https://ipv6-test.com
$IPv6Test = Invoke-RestMethod -Uri "https://v4v6.ipv6-test.com/api/myip.php?json" | Where-Object -FilterScript {$_.proto -eq "ipv6"}
}
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return
}
switch ($PSCmdlet.ParameterSetName)
{
"Disable"
{
if ($null -eq $IPv6Test)
{
Disable-NetAdapterBinding Name * ComponentID ms_tcpip6
}
}
"Enable"
{
if ($IPv6Test)
{
Enable-NetAdapterBinding Name * ComponentID ms_tcpip6
}
}
}
}
<#
.SYNOPSIS
Override for default input method
@ -5284,7 +5390,7 @@ function WinPrtScrFolder
"Desktop"
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
}
"Default"
{
@ -6055,15 +6161,15 @@ namespace RegistryUtils
if ($OrigProgID)
{
# Save possible ProgIds history with extension
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgID`_$Extension" -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgID_$Extension" -PropertyType DWord -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)
if ("$ProgId_$Extension" -ne $Name)
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" -Name "$ProgId`_$Extension" -PropertyType DWord -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 extensions
@ -6902,18 +7008,18 @@ while (`$true)
"@
# Create the "Windows Cleanup Notification" task
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $ToastNotification"
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $ToastNotification"
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 30 -At 9pm
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 30 -At 9pm
$Parameters = @{
TaskName = "Windows Cleanup Notification"
TaskPath = "Sophia Script"
Principal = $Principal
Action = $Action
Description = $Localization.CleanupNotificationTaskDescription
Settings = $Settings
Principal = $Principal
Trigger = $Trigger
Description = $Localization.CleanupNotificationTaskDescription
}
Register-ScheduledTask @Parameters -Force
}
@ -7017,18 +7123,18 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For
"@
# Create the "SoftwareDistribution" task
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $SoftwareDistributionTask"
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 90 -At 9pm
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $SoftwareDistributionTask"
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 90 -At 9pm
$Parameters = @{
TaskName = "SoftwareDistribution"
TaskPath = "Sophia Script"
Principa = $Principal
Action = $Action
Description = $Localization.FolderTaskDescription -f "%SystemRoot%\SoftwareDistribution\Download"
Settings = $Settings
Principal = $Principal
Trigger = $Trigger
Description = $Localization.FolderTaskDescription -f "%SystemRoot%\SoftwareDistribution\Download"
}
Register-ScheduledTask @Parameters -Force
}
@ -7114,18 +7220,18 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object {`$_.CreationTime
"@
# Create the "Temp" task
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $TempTask"
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 60 -At 9pm
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $TempTask"
$Settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable
$Principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest
$Trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 60 -At 9pm
$Parameters = @{
TaskName = "Temp"
TaskPath = "Sophia Script"
Principal = $Principal
Action = $Action
Description = $Localization.FolderTaskDescription -f "%TEMP%"
Settings = $Settings
Principal = $Principal
Trigger = $Trigger
Description = $Localization.FolderTaskDescription -f "%TEMP%"
}
Register-ScheduledTask @Parameters -Force
}
@ -7180,11 +7286,17 @@ function NetworkProtection
{
"Enable"
{
Set-MpPreference -EnableNetworkProtection Enabled
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
Set-MpPreference -EnableNetworkProtection Enabled
}
}
"Disable"
{
Set-MpPreference -EnableNetworkProtection Disabled
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
Set-MpPreference -EnableNetworkProtection Disabled
}
}
}
}
@ -7231,11 +7343,17 @@ function PUAppsDetection
{
"Enable"
{
Set-MpPreference -PUAProtection Enabled
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
Set-MpPreference -PUAProtection Enabled
}
}
"Disable"
{
Set-MpPreference -PUAProtection Disabled
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
Set-MpPreference -PUAProtection Disabled
}
}
}
}
@ -7285,11 +7403,17 @@ function DefenderSandbox
{
"Enable"
{
setx /M MP_FORCE_USE_SANDBOX 1
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
setx /M MP_FORCE_USE_SANDBOX 1
}
}
"Disable"
{
setx /M MP_FORCE_USE_SANDBOX 0
if ((Get-MpComputerStatus).AntivirusEnabled -eq $true)
{
setx /M MP_FORCE_USE_SANDBOX 0
}
}
}
}
@ -8025,7 +8149,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide"
)]
[switch]
$Hide
$Remove
)
switch ($PSCmdlet.ParameterSetName)
@ -8496,6 +8620,9 @@ function BitmapImageNewContext
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return
}
}
@ -8574,6 +8701,9 @@ function RichTextDocumentNewContext
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return
}
}
@ -8817,11 +8947,12 @@ public static void PostMessage()
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
# Telegram group
[xml]$ToastTemplate = @"
<toast duration="Long" scenario="reminder">
<visual>
<binding template="ToastGeneric">
<text>$($Localization.TelegramTitle)</text>
<text>$($Localization.TelegramGroupTitle)</text>
<group>
<subgroup>
<text hint-style="body" hint-wrap="true">https://t.me/sophia_chat</text>
@ -8842,6 +8973,33 @@ public static void PostMessage()
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel").Show($ToastMessage)
# Telegram channel
[xml]$ToastTemplate = @"
<toast duration="Long" scenario="reminder">
<visual>
<binding template="ToastGeneric">
<text>$($Localization.TelegramChannelTitle)</text>
<group>
<subgroup>
<text hint-style="body" hint-wrap="true">https://t.me/sophianews</text>
</subgroup>
</group>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://t.me/sophianews" content="$($Localization.Open)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
</actions>
</toast>
"@
$ToastXml = [Windows.Data.Xml.Dom.XmlDocument]::New()
$ToastXml.LoadXml($ToastTemplate.OuterXml)
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel").Show($ToastMessage)
}
#endregion Refresh Environment

98
Sophia/LTSC/Sophia.ps1

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script" (LTSC version)
Default preset file for "Sophia Script for Windows 10 LTSC"
Version: v5.2.10
Date: 12.07.2021
Version: v5.2.11
Date: 05.08.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -41,7 +41,7 @@
Read more in the Functions.ps1 file
.LINK GitHub link
https://github.com/farag2/Windows-10-Sophia-Script
https://github.com/farag2/Sophia-Script-for-Windows
.LINK Telegram channel & group
https://t.me/sophianews
@ -71,7 +71,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.10 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.11 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -107,7 +107,7 @@ if ($Functions)
#region Protection
<#
The necessary checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
The mandatory checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
@ -139,11 +139,11 @@ DiagTrackService -Disable
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum
# Установить уровень сбора диагностических сведений ОС на минимальный
# Установить уровень сбора диагностических данных ОС на минимальный
DiagnosticDataLevel -Minimal
# Set the diagnostic data collection to default (default value)
# Установить уровень сбора диагностических сведений ОС по умолчанию (значение по умолчанию)
# Установить уровень сбора диагностических данных ОС по умолчанию (значение по умолчанию)
# DiagnosticDataLevel -Default
# Turn off the Windows Error Reporting
@ -191,18 +191,18 @@ LanguageListAccess -Disable
AdvertisingID -Disable
# Let apps use advertising ID to make ads more interresting to you based on your app usage (default value)
# Разрешать приложениям использовать идентификатор рекламы (значение по умолчанию)
# Разрешить приложениям использовать идентификатор рекламы (значение по умолчанию)
# AdvertisingID -Enable
#endregion Privacy & Telemetry
#region UI & Personalization
# Show the "This PC" icon on Desktop
# Отображать значок "Этот компьютер" на рабочем столе
# Отобразить значок "Этот компьютер" на рабочем столе
ThisPC -Show
# Hide the "This PC" icon on Desktop (default value)
# Скрывать "Этот компьютер" на рабочем столе (значение по умолчанию)
# Скрыть "Этот компьютер" на рабочем столе (значение по умолчанию)
# ThisPC -Hide
# Do not use item check boxes
@ -214,15 +214,15 @@ CheckBoxes -Disable
# CheckBoxes -Enable
# Show hidden files, folders, and drives
# Отображать скрытые файлы, папки и диски
# Отобразить скрытые файлы, папки и диски
HiddenItems -Enable
# Do not show hidden files, folders, and drives (default value)
# Не отображать скрытые файлы, папки и диски (значение по умолчанию)
# Не показывать скрытые файлы, папки и диски (значение по умолчанию)
# HiddenItems -Disable
# Show file name extensions
# Отображать расширения имён файлов
# Отобразить расширения имён файлов
FileExtensions -Show
# Hide file name extensions (default value)
@ -282,7 +282,7 @@ RecycleBinDeleteConfirmation -Enable
3DObjects -Hide
# Show the "3D Objects" folder in "This PC" and Quick access (default value)
# Отображать папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# Отобразить папку "Объемные объекты" в "Этот компьютер" и панели быстрого доступа (значение по умолчанию)
# 3DObjects -Show
# Hide recently used files in Quick access
@ -302,27 +302,27 @@ QuickAccessFrequentFolders -Hide
# QuickAccessFrequentFolders -Show
# Hide the Task View button on the taskbar
# Скрывать кнопку Просмотра задач
# Скрыть кнопку Просмотра задач
TaskViewButton -Hide
# Show the 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
@ -339,11 +339,11 @@ TaskbarSearch -Hide
# Always show all icons in the notification area
# Всегда отображать все значки в области уведомлений
TrayIcons -Show
NotificationAreaIcons -Show
# Hide all icons in the notification area (default value)
# Скрыть все значки в области уведомлений (значение по умолчанию)
# TrayIcons -Hide
# NotificationAreaIcons -Hide
# View the Control Panel icons by large icons
# Просмотр иконок Панели управления как: крупные значки
@ -459,18 +459,18 @@ StorageSenseFrequency -Month
# Disable hibernation. Do not recommend turning it off on laptops
# Отключить режим гибернации. Не рекомендуется выключать на ноутбуках
Hibernate -Disable
Hibernation -Disable
# Enable hibernate (default value)
# Включить режим гибернации (значение по умолчанию)
# Hibernate -Enable
# Hibernation -Enable
# Change the %TEMP% environment variable path to "%SystemDrive%\Temp"
# Изменить путь переменной среды для %TEMP% на "%SystemDrive%\Temp"
# Change the %TEMP% environment variable path to %SystemDrive%\Temp
# Изменить путь переменной среды для %TEMP% на %SystemDrive%\Temp
# TempFolder -SystemDrive
# Change %TEMP% environment variable path to "%LOCALAPPDATA%\Temp" (default value)
# Изменить путь переменной среды для %TEMP% на "LOCALAPPDATA%\Temp" (значение по умолчанию)
# Change %TEMP% environment variable path to %LOCALAPPDATA%\Temp (default value)
# Изменить путь переменной среды для %TEMP% на LOCALAPPDATA%\Temp (значение по умолчанию)
# TempFolder -Default
# Disable the Windows 260 characters path limit
@ -592,6 +592,24 @@ NetworkAdaptersSavePower -Disable
# Разрешить отключение всех сетевых адаптеров для экономии энергии (значение по умолчанию)
# NetworkAdaptersSavePower -Enable
<#
Disable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections
Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipv6-test.com
Выключить IP версии 6 (TCP/IPv6)
Перед выполнением функции будет провердена проверка: поддерживает ли ваш провайдер IPv6, используя ресурс https://ipv6-test.com
#>
IPv6Component -Disable
<#
Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections (default value)
Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipv6-test.com
Включить IP версии 6 (TCP/IPv6) (значение по умолчанию)
Перед выполнением функции будет провердена проверка: поддерживает ли ваш провайдер IPv6, используя ресурс https://ipv6-test.com
#>
# IPv6Component -Enable
# Override for default input method: English
# Переопределить метод ввода по умолчанию: английский
InputMethod -English
@ -960,7 +978,7 @@ RunAsDifferentUserContext -Show
CastToDeviceContext -Hide
# Show the "Cast to Device" item in the media files and folders context menu (default value)
# Показывать пункт "Передать на устройство" в контекстном меню медиа-файлов и папок (значение по умолчанию)
# Отобразить пункт "Передать на устройство" в контекстном меню медиа-файлов и папок (значение по умолчанию)
# CastToDeviceContext -Show
# Hide the "Share" item from the context menu
@ -968,7 +986,7 @@ CastToDeviceContext -Hide
ShareContext -Hide
# Show the "Share" item in the context menu (default value)
# Показывать пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
# Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
# ShareContext -Show
# Hide the "Edit with Paint 3D" item from the media files context menu
@ -976,7 +994,7 @@ ShareContext -Hide
EditWithPaint3DContext -Hide
# Show the "Edit with Paint 3D" item in the media files context menu (default value)
# Показывать пункт "Изменить с помощью Paint 3D" в контекстном меню медиа-файлов (значение по умолчанию)
# Отобразить пункт "Изменить с помощью Paint 3D" в контекстном меню медиа-файлов (значение по умолчанию)
# EditWithPaint3DContext -Show
# Hide the "Print" item from the .bat and .cmd context menu
@ -984,7 +1002,7 @@ EditWithPaint3DContext -Hide
PrintCMDContext -Hide
# Show the "Print" item in the .bat and .cmd context menu (default value)
# Показывать пункт "Печать" в контекстном меню .bat и .cmd файлов (значение по умолчанию)
# Отобразить пункт "Печать" в контекстном меню .bat и .cmd файлов (значение по умолчанию)
# PrintCMDContext -Show
# Hide the "Include in Library" item from the folders and drives context menu
@ -992,7 +1010,7 @@ PrintCMDContext -Hide
IncludeInLibraryContext -Hide
# Show the "Include in Library" item in the folders and drives context menu (default value)
# Показывать пункт "Добавить в библиотеку" в контекстном меню папок и дисков (значение по умолчанию)
# Отобразить пункт "Добавить в библиотеку" в контекстном меню папок и дисков (значение по умолчанию)
# IncludeInLibraryContext -Show
# Hide the "Send to" item from the folders context menu
@ -1000,7 +1018,7 @@ IncludeInLibraryContext -Hide
SendToContext -Hide
# Show the "Send to" item in the folders context menu (default value)
# Показывать пункт "Отправить" в контекстном меню папок (значение по умолчанию)
# Отобразить пункт "Отправить" в контекстном меню папок (значение по умолчанию)
# SendToContext -Show
# Hide the "Turn on BitLocker" item from the drives context menu
@ -1008,7 +1026,7 @@ SendToContext -Hide
BitLockerContext -Hide
# Show the "Turn on BitLocker" item in the drives context menu (default value)
# Показывать пункт "Включить BitLocker" в контекстном меню дисков (значение по умолчанию)
# Отобразить пункт "Включить BitLocker" в контекстном меню дисков (значение по умолчанию)
# BitLockerContext -Show
# Hide the "Bitmap image" item from the "New" context menu
@ -1016,7 +1034,7 @@ BitLockerContext -Hide
BitmapImageNewContext -Hide
# Show the "Bitmap image" item to the "New" context menu (default value)
# Восстановить пункт "Точечный рисунок" в контекстного меню "Создать" (значение по умолчанию)
# Отобразить пункт "Точечный рисунок" в контекстного меню "Создать" (значение по умолчанию)
# BitmapImageNewContext -Show
# Hide the "Rich Text Document" item from the "New" context menu
@ -1024,7 +1042,7 @@ BitmapImageNewContext -Hide
RichTextDocumentNewContext -Hide
# Show the "Rich Text Document" item to the "New" context menu (default value)
# Восстановить пункт "Документ в формате RTF" в контекстного меню "Создать" (значение по умолчанию)
# Отобразить пункт "Документ в формате RTF" в контекстного меню "Создать" (значение по умолчанию)
# RichTextDocumentNewContext -Show
# Hide the "Compressed (zipped) Folder" item from the "New" context menu
@ -1032,7 +1050,7 @@ RichTextDocumentNewContext -Hide
CompressedFolderNewContext -Hide
# Show the "Compressed (zipped) Folder" item to the "New" context menu (default value)
# Восстановить пункт "Сжатая ZIP-папка" в контекстном меню "Создать" (значение по умолчанию)
# Отобразить пункт "Сжатая ZIP-папка" в контекстном меню "Создать" (значение по умолчанию)
# CompressedFolderNewContext -Show
# Enable the "Open", "Print", and "Edit" context menu items for more than 15 items selected
@ -1048,7 +1066,7 @@ MultipleInvokeContext -Enable
UseStoreOpenWith -Hide
# Show the "Look for an app in the Microsoft Store" item in the "Open with" dialog (default value)
# Отображать пункт "Поиск приложения в Microsoft Store" в диалоге "Открыть с помощью" (значение по умолчанию)
# Отобразить пункт "Поиск приложения в Microsoft Store" в диалоге "Открыть с помощью" (значение по умолчанию)
# UseStoreOpenWith -Show
#endregion Context menu

Loading…
Cancel
Save