diff --git a/Sophia/LTSC/Functions.ps1 b/Sophia/LTSC/Functions.ps1 index f7b060ae..af58743a 100644 --- a/Sophia/LTSC/Functions.ps1 +++ b/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) 2014–2021 farag Copyright (c) 2019–2021 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" diff --git a/Sophia/LTSC/Localizations/de-DE/Sophia.psd1 b/Sophia/LTSC/Localizations/de-DE/Sophia.psd1 index 31509f64..6fca367f 100644 --- a/Sophia/LTSC/Localizations/de-DE/Sophia.psd1 +++ b/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 '@ \ No newline at end of file diff --git a/Sophia/LTSC/Localizations/en-US/Sophia.psd1 b/Sophia/LTSC/Localizations/en-US/Sophia.psd1 index 65c54281..d61db188 100644 --- a/Sophia/LTSC/Localizations/en-US/Sophia.psd1 +++ b/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 diff --git a/Sophia/LTSC/Localizations/es-ES/Sophia.psd1 b/Sophia/LTSC/Localizations/es-ES/Sophia.psd1 index 0df268d9..649b0ff9 100644 --- a/Sophia/LTSC/Localizations/es-ES/Sophia.psd1 +++ b/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 = Sí 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 '@ diff --git a/Sophia/LTSC/Localizations/fr-FR/Sophia.psd1 b/Sophia/LTSC/Localizations/fr-FR/Sophia.psd1 index 90c8dd52..4c6638e0 100644 --- a/Sophia/LTSC/Localizations/fr-FR/Sophia.psd1 +++ b/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 où 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 '@ diff --git a/Sophia/LTSC/Localizations/hu-HU/Sophia.psd1 b/Sophia/LTSC/Localizations/hu-HU/Sophia.psd1 index cdde8254..7e9a41a7 100644 --- a/Sophia/LTSC/Localizations/hu-HU/Sophia.psd1 +++ b/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 '@ diff --git a/Sophia/LTSC/Localizations/it-IT/Sophia.psd1 b/Sophia/LTSC/Localizations/it-IT/Sophia.psd1 index 9f83fc89..c3c960c0 100644 --- a/Sophia/LTSC/Localizations/it-IT/Sophia.psd1 +++ b/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 = Sì 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 '@ diff --git a/Sophia/LTSC/Localizations/pt-BR/Sophia.psd1 b/Sophia/LTSC/Localizations/pt-BR/Sophia.psd1 index 32aa5e69..33c57955 100644 --- a/Sophia/LTSC/Localizations/pt-BR/Sophia.psd1 +++ b/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 '@ diff --git a/Sophia/LTSC/Localizations/ru-RU/Sophia.psd1 b/Sophia/LTSC/Localizations/ru-RU/Sophia.psd1 index 634bf8e5..214e6f88 100644 --- a/Sophia/LTSC/Localizations/ru-RU/Sophia.psd1 +++ b/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 = Удалить '@ diff --git a/Sophia/LTSC/Localizations/tr-TR/Sophia.psd1 b/Sophia/LTSC/Localizations/tr-TR/Sophia.psd1 index 1e059a9c..0a04a882 100644 --- a/Sophia/LTSC/Localizations/tr-TR/Sophia.psd1 +++ b/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 '@ \ No newline at end of file diff --git a/Sophia/LTSC/Localizations/uk-UA/Sophia.psd1 b/Sophia/LTSC/Localizations/uk-UA/Sophia.psd1 index 0a01cac6..a8f56954 100644 --- a/Sophia/LTSC/Localizations/uk-UA/Sophia.psd1 +++ b/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 = Видалити '@ diff --git a/Sophia/LTSC/Localizations/zh-CN/Sophia.psd1 b/Sophia/LTSC/Localizations/zh-CN/Sophia.psd1 index 92f67707..9b867466 100644 --- a/Sophia/LTSC/Localizations/zh-CN/Sophia.psd1 +++ b/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 = 卸载 '@ diff --git a/Sophia/LTSC/Manifest/Sophia.psd1 b/Sophia/LTSC/Manifest/Sophia.psd1 index 0910f3ff..39355913 100644 --- a/Sophia/LTSC/Manifest/Sophia.psd1 +++ b/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' } } } diff --git a/Sophia/LTSC/Module/Sophia.psm1 b/Sophia/LTSC/Module/Sophia.psm1 index e755c436..6dc179a8 100644 --- a/Sophia/LTSC/Module/Sophia.psm1 +++ b/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) 2014–2021 farag Copyright (c) 2019–2021 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">