diff --git a/Wrapper/Config/config_Windows_10.json b/Wrapper/Config/config_Windows_10.json index 6923bdf7..603144cd 100644 --- a/Wrapper/Config/config_Windows_10.json +++ b/Wrapper/Config/config_Windows_10.json @@ -974,6 +974,23 @@ "Preset": "Zero", "WindowsDefault": "Zero" }, + { + "Id": 340, + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "UserFolders", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, { "Id": 400, "Region": "OneDrive", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json index 9fb86163..07380495 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json @@ -863,6 +863,21 @@ } } }, + { + "Id": 339, + "Region": "UI & Personalization", + "Function": "UserFolders", + "Arg": { + "Zero": { + "Tag": "Show", + "ToolTip": "Benutzerordner in \"Dieser PC\" anzeigen." + }, + "One": { + "Tag": "Hide", + "ToolTip": "Benutzerordner in \"Dieser PC\" ausblenden." + } + } + }, { "Id": 400, "Region": "OneDrive", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index 70c7c766..0838d710 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -535,7 +535,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Zeigen Sie die Schaltfläche "Copilot" in der Taskleiste an (Standardeinstellung)." + "ToolTip": "Zeigen Sie die Schaltfläche Copilot in der Taskleiste an (Standardeinstellung)." } } }, diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index 625b94f3..c503c776 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -863,6 +863,21 @@ } } }, + { + "Id": 339, + "Region": "UI & Personalization", + "Function": "UserFolders", + "Arg": { + "Zero": { + "Tag": "Show", + "ToolTip": "Show user folders in \"This PC\"." + }, + "One": { + "Tag": "Hide", + "ToolTip": "Hide user folders in \"This PC\"." + } + } + }, { "Id": 400, "Region": "OneDrive", diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json index 5578a08f..c34a7d98 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json @@ -863,6 +863,21 @@ } } }, + { + "Id": 339, + "Region": "UI & Personalization", + "Function": "UserFolders", + "Arg": { + "Zero": { + "Tag": "Show", + "ToolTip": "Отобразить пользовательские папки в \"Этот компьютер\"" + }, + "One": { + "Tag": "Hide", + "ToolTip": "Скрыть пользовательские папки в \"Этот компьютер\"" + } + } + }, { "Id": 400, "Region": "OneDrive", diff --git a/Wrapper/SophiaScriptWrapper.exe b/Wrapper/SophiaScriptWrapper.exe index ee2b6e7d..7548df5b 100644 Binary files a/Wrapper/SophiaScriptWrapper.exe and b/Wrapper/SophiaScriptWrapper.exe differ diff --git a/sophia_script_versions.json b/sophia_script_versions.json index f373fcea..0fb05ca0 100644 --- a/sophia_script_versions.json +++ b/sophia_script_versions.json @@ -1,9 +1,9 @@ { - "Sophia_Script_Windows_10_PowerShell_5_1": "5.17.6", - "Sophia_Script_Windows_10_PowerShell_7": "5.17.6", - "Sophia_Script_Windows_10_LTSC2019": "5.7.6", - "Sophia_Script_Windows_10_LTSC2021": "5.17.6", - "Sophia_Script_Windows_11_PowerShell_5_1": "6.5.6", - "Sophia_Script_Windows_11_PowerShell_7": "6.5.6", - "Sophia_Script_Wrapper": "2.6.11" + "Sophia_Script_Windows_10_PowerShell_5_1": "5.17.7", + "Sophia_Script_Windows_10_PowerShell_7": "5.17.7", + "Sophia_Script_Windows_10_LTSC2019": "5.7.7", + "Sophia_Script_Windows_10_LTSC2021": "5.17.7", + "Sophia_Script_Windows_11_PowerShell_5_1": "6.5.7", + "Sophia_Script_Windows_11_PowerShell_7": "6.5.7", + "Sophia_Script_Wrapper": "2.6.12" } diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1 index 25dbf686..ac57d463 100644 --- a/src/Sophia_Script_for_Windows_10/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force @@ -171,6 +171,23 @@ $Parameters = @{ continue } + # If a module command is UserFolders + if ($Command -eq "UserFolders") + { + # Get all command arguments, excluding defaults + foreach ($ParameterSet in $ParameterSets.Name) + { + $ValidValues = ((Get-Command -Name UserFolders).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues + foreach ($ValidValue in $ValidValues) + { + # The "UserFolders -ThreeDObjects Hide" construction + "UserFolders" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + continue + } + } + foreach ($ParameterSet in $ParameterSets.Name) { # The "Function -Argument" construction diff --git a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 index 94f59d05..9e8d5951 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows. UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2. -UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3448+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3570+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 index 2f9c762a..436c36f4 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports 64-bit Windows only. UnsupportedOSBuild = The script supports Windows 10 22H2. -UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3448+. Run Windows Update and try again. +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3570+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 index aee0da61..282fcdbc 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits. UnsupportedOSBuild = El script es compatible con versión Windows 10 22H2. -UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3448+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3570+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 index 36ba0a40..0a8cba79 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2. -UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3448+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3570+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 index f18cc9bc..5c14391b 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja. UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verzióját. -UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3448+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3570+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 index cf45536d..1fb6ba0b 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit. UnsupportedOSBuild = Lo script supporta Windows 10 22H2. -UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3448+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3570+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 index 9c66c20f..d4a2818d 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows. UnsupportedOSBuild = Skrypt obsługuje system Windows 10 22H2. -UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3448+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3570+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 index 265d6dd0..692c4e83 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits. UnsupportedOSBuild = O script suporta versões Windows 10 22H2. -UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3448+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3570+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 index ef076046..6ccbfb66 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows. UnsupportedOSBuild = Скрипт поддерживает Windows 10 22H2. -UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3448+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3570+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 index fd09226b..66954d8d 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler. UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler. -UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3448+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3570+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 index cdcd273d..8daeada0 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows. UnsupportedOSBuild = Скрипт підтримує Windows 10 22H2. -UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3448+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3570+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 index 26009fa8..76c5f842 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = 该脚本仅支持64位Windows。 UnsupportedOSBuild = 该脚本支持Windows 10版本22H2和更高版本。 -UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3448+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3570+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 index 42520e39..7cb63a81 100644 --- a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.6' + ModuleVersion = '5.17.7' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 521d7cc5..fbda00e9 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.3448+ + Builds: 19045.3570+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -194,9 +194,9 @@ public static string GetString(uint strId) { {$_ -eq 19045} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3448) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3570) { - # Check whether the OS minor build version is 3448 minimum + # Check whether the OS minor build version is 3570 minimum # https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -872,7 +872,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -937,7 +937,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) @@ -10193,6 +10193,7 @@ function Export-Associations Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + # Save in UTF-8 without BOM $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Encoding Default -Force Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index ca97632b..00663194 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10" - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.3448+ + Builds: 19045.3570+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 index 1cb52ba8..891589a7 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.7.6 - Date: 17.09.2023 + Version: v5.7.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 index 1bb3d129..771777a4 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows. UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2019. -UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 17763.4851+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 17763.4974+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 index b9765c03..baf0489e 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports 64-bit Windows only. UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2019. -UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 17763.4851+. Run Windows Update and try again. +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 17763.4974+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 index 8abceea1..8cedd863 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits. UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2019. -UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 17763.4851+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 17763.4974+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 index d509698b..5141a4de 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte le version Windows 10 Enterprise LTSC 2019. -UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 17763.4851+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 17763.4974+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 index a8077b93..43f827c1 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja. UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2019 kiadást. -UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 17763.4851+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 17763.4974+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 index 9c0b62c6..a827c89b 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit. UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2019. -UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 17763.4851+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 17763.4974+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 index e7cc529c..164bcb72 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows. UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2019. -UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 17763.4851+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 17763.4974+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 index 9940d7bc..ad8b8737 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits. UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2019. -UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 17763.4851+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 17763.4974+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 index 6c99155e..c27278c9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows. UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2019. -UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 17763.4851+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 17763.4974+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 index df8b2a0d..43cc94e5 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler. UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2019'u destekler. -UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 17763.4851+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 17763.4974+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 index 8a142c72..cf779e1b 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows. UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2019. -UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 17763.4851+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 17763.4974+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 index 4a4705c6..cf953572 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = 该脚本仅支持64位Windows。 UnsupportedOSBuild = 该脚本支持Windows 10版本Enterprise LTSC 2019。 -UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 17763.4851+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 17763.4974+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 index b808dc1a..0cb3e337 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.7.6' + ModuleVersion = '5.7.7' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index b98e9cac..127df173 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.7.6 - Date: 17.09.2023 + Version: v5.7.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 version Version: 1809 - Build: 17763.4851+ + Build: 17763.4974+ Edition: Enterprise LTSC Architecture: x64 @@ -105,9 +105,9 @@ public static string GetString(uint strId) { $true { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 4851) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 4974) { - # Check whether the OS minor build version is 4851 minimum + # Check whether the OS minor build version is 4974 minimum # https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -385,18 +385,6 @@ public static string GetString(uint strId) exit } - # Check Microsoft Defender state - $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState - $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) - if ($DefenderState -notmatch "00|01") - { - $Script:DefenderproductState = $true - } - else - { - $Script:DefenderproductState = $false - } - # Checking services try { @@ -413,6 +401,18 @@ public static string GetString(uint strId) } $Script:DefenderServices = ($Services | Where-Object -FilterScript {$_.Status -ne "running"} | Measure-Object).Count -lt $Services.Count + # Check Microsoft Defender state + $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState + $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) + if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + # Specify whether Antispyware protection is enabled if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/Microsoft/Windows/Defender).AntispywareEnabled) { @@ -721,7 +721,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -786,7 +786,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) @@ -8540,6 +8540,7 @@ function Export-Associations Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + # Save in UTF-8 without BOM $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Encoding Default -Force Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 index aaaf8f6d..958a4d6f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2019" - Version: v5.7.6 - Date: 17.09.2023 + Version: v5.7.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 version Version: 1809 - Build: 17763.4851+ + Build: 17763.4974+ Edition: Enterprise LTSC 2019 Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 index aefb0137..c5988ae9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 index 931f8bc7..187a8f54 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows. UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2021. -UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19044.3448+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19044.3570+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 index 0ca64d8f..cac6cb46 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports 64-bit Windows only. UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2021. -UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19044.3448+. Run Windows Update and try again. +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19044.3570+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 index 7ce77a8d..65996f2a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits. UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2021. -UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19044.3448+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19044.3570+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 index f7228fa5..03e127ff 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 Enterprise LTSC 2021. -UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19044.3448+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19044.3570+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 index f12bdcee..d7db74f6 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja. UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2021. -UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19044.3448+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19044.3570+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 index e9c57304..381a8569 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit. UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2021. -UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19044.3448+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19044.3570+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 index 24d3b4ba..3660d69f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows. UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2021. -UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19044.3448+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19044.3570+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 index 398a39e1..5f0498a1 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits. UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2021. -UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19044.3448+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19044.3570+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 index 52d2c3ee..8d9b78c8 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows. UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2021. -UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19044.3448+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19044.3570+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 index 67b845b0..173420ba 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler. UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2021'u destekler. -UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19044.3448+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19044.3570+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 index b4085c23..a04ba21b 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows. UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2021. -UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19044.3448+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19044.3570+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 index b2a6916d..ae0f3a73 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = 该脚本仅支持64位Windows。 UnsupportedOSBuild = 该脚本支持Windows 10 Enterprise LTSC 2021。 -UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19044.3448+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19044.3570+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 index 42520e39..7cb63a81 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.6' + ModuleVersion = '5.17.7' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 5e8d7922..93ca2c77 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.3448+ + Build: 19044.3570+ Edition: Enterprise LTSC 2021 Architecture: x64 @@ -105,9 +105,9 @@ public static string GetString(uint strId) { $true { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3448) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3570) { - # Check whether the OS minor build version is 3448 minimum + # Check whether the OS minor build version is 3570 minimum # https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -721,7 +721,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -786,7 +786,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) @@ -9165,6 +9165,7 @@ function Export-Associations Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + # Save in UTF-8 without BOM $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Encoding Default -Force Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 index 80bfa70d..1028cd4a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2021" - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.3448+ + Build: 19044.3570+ Edition: Enterprise LTSC 2021 Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 index 07830bb7..77005da1 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.6 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.7 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force @@ -178,6 +178,23 @@ $Parameters = @{ continue } + # If a module command is UserFolders + if ($Command -eq "UserFolders") + { + # Get all command arguments, excluding defaults + foreach ($ParameterSet in $ParameterSets.Name) + { + $ValidValues = ((Get-Command -Name UserFolders).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues + foreach ($ValidValue in $ValidValues) + { + # The "UserFolders -ThreeDObjects Hide" construction + "UserFolders" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + continue + } + } + foreach ($ParameterSet in $ParameterSets.Name) { # The "Function -Argument" construction diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 index 94f59d05..9e8d5951 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows. UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2. -UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3448+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3570+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 index 2f9c762a..436c36f4 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports 64-bit Windows only. UnsupportedOSBuild = The script supports Windows 10 22H2. -UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3448+. Run Windows Update and try again. +UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3570+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 index aee0da61..282fcdbc 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits. UnsupportedOSBuild = El script es compatible con versión Windows 10 22H2. -UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3448+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3570+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 index 36ba0a40..0a8cba79 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2. -UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3448+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3570+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 index f18cc9bc..5c14391b 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja. UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verzióját. -UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3448+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3570+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 index cf45536d..1fb6ba0b 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit. UnsupportedOSBuild = Lo script supporta Windows 10 22H2. -UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3448+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3570+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 index 9c66c20f..d4a2818d 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows. UnsupportedOSBuild = Skrypt obsługuje system Windows 10 22H2. -UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3448+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3570+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 index 265d6dd0..692c4e83 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits. UnsupportedOSBuild = O script suporta versões Windows 10 22H2. -UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3448+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3570+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 index ef076046..6ccbfb66 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows. UnsupportedOSBuild = Скрипт поддерживает Windows 10 22H2. -UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3448+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3570+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 index fd09226b..66954d8d 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler. UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler. -UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3448+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3570+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 index cdcd273d..8daeada0 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows. UnsupportedOSBuild = Скрипт підтримує Windows 10 22H2. -UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3448+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3570+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 index 26009fa8..76c5f842 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = 该脚本仅支持64位Windows。 UnsupportedOSBuild = 该脚本支持Windows 10版本22H2和更高版本。 -UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3448+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 10构建: {0}.{1}。支持的构建: 19045.3570+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 index 32cba94a..50e3461e 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.6' + ModuleVersion = '5.17.7' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index dae697da..33aaef2e 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.3448+ + Builds: 19045.3570+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -190,9 +190,9 @@ public static string GetString(uint strId) { {$_ -eq 19045} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3448) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3570) { - # Check whether the OS minor build version is 3448 minimum + # Check whether the OS minor build version is 3570 minimum # https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -876,7 +876,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -941,7 +941,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 index 7025146a..c5145167 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" - Version: v5.17.6 - Date: 17.09.2023 + Version: v5.17.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.3448+ + Builds: 19045.3570+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.6 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.7 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index abac876c..3d11f3c9 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 index e35c3d87..ceb8044e 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Das Skript unterstützt Windows 11 22H2+. -UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.2283+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.2428+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 index ce51ccb5..0009ebbf 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = The script supports Windows 11 22H2+. -UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.2283+. Run Windows Update and try again. +UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.2428+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 index 2fee8b8f..a4bd1a44 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = El script es compatible con Windows 11 22H2+. -UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.2283+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.2428+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 index 3ed0f408..5222fd25 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Le script prend en charge Windows 11 22H2+. -UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.2283+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.2428+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 index d6755ead..91bc486e 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = A szkript támogatja a Windows 11 22H2+ rendszert. -UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.2283+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.2428+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 index 72bbd1d3..b7e7170f 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Lo script supporta Windows 11 22H2+. -UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.2283+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.2428+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 index 45023459..b26fa351 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Skrypt obsługuje system Windows 11 22H2+. -UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.2283+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.2428+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 index b106a36d..f680a23b 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = O script suporta Windows 11 22H2+. -UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.2283+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.2428+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 index a84ddf72..f40e0e2d 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Скрипт поддерживает Windows 11 22H2+. -UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.2283+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.2428+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 index 53d41163..a6e288f5 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Komut dosyası Windows 11 22H2+'yı destekler. -UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.2283+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.2428+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 index b372a3c8..e9318696 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Скрипт підтримує Windows 11 22H2+. -UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.2283+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.2428+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 index 5f1bb98b..d8890467 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = 脚本支持Windows 11 22H2+。 -UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.2283+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.2428+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 index 0ffc677b..65e9db40 100644 --- a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.6' + ModuleVersion = '6.5.7' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 05226d04..9e9fed32 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 11 versions Version: 22H2/23H2+ - Builds: 22621.2283+ + Builds: 22621.2428+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -285,9 +285,9 @@ public static string GetString(uint strId) } {$_ -eq 22621} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2283) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2428) { - # Check whether the OS minor build version is 2283 minimum + # Check whether the OS minor build version is 2428 minimum # https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information#windows-11-current-versions $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -919,7 +919,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -984,7 +984,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) @@ -1522,9 +1522,15 @@ function ScheduledTasks # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "MareBackup", + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", + # Updates compatibility database + "StartupAppTask", + # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program "Proxy", @@ -10578,7 +10584,7 @@ function UnpinAllStartApps 3275D9CEEF37E62C3574C036F327D1110AB0977996D67A2F8FA897D7207BEE85586B8CE6AD4F9736AA2154E3DCC9D082996984B76F1C73067F124F92A41F2B2CA83EF35436670979556FAE85AB10EA1 6C932C3AECE1D45DA06D64BC42F4565AD0FCB8C63CDE7F6BB97ACE300198C3EACA3E1C974F547B1A7CF5B9C6A912448AB38A3BE2D6F0230A4A9AACC710C3E75088754CC2FB054B55B1D6ED7AD41EB8B 0C9D4C274E87A525582F6CFBEAE5A904A1B0A3BA07939B79CAB4F1C3DF35BF88DE846E64555F0AEB47562C329206A9975664558849E0C251E8832D52B4FD7560347E5606AC882B9FC1F43C96922C0EA -1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84851481FE1FF41CA9A2534CCE7AFC45 +1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84974481FE1FF41CA9A2534CCE7AFC45 584370B4940DF30555536344249690F00C3A7E2552E352FE733C7ED2F80A29AD16937810AF805A444A344188C0CBDA51E5466BF45F2587508A69581CC2BCDAE06CB363658D94CD60569352FDA17AE7C DD785810F369B41F2D15930430A809567CC6C643FE7986CAD545EF3DB40CA6FA9220BFC7F65610AECB22799838B80DE73AF549923F8219FFAAD64780E2DB53133D73890294E77F9B0970484E86A0507 37724FF15281C1726D334D3C9A67A85A78AE33F55DB675DAA31C47A156C0F8212DCEE228537668F4BF898C0CB869B74C98DF7EFBE0130859E5156417A85CC634B86314FAB47FB9A8DFEAFA1AEFC5E59 @@ -13006,7 +13012,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Run the task Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_.CreationTime -lt (Get-Date).AddDays(-1)} | Remove-Item -Recurse -Force -# This the only way to get "C:\$WinREAgent" path because we need to open brackets for $env:SystemDrive but not for $WinREAgent +# Get "C:\$WinREAgent" path because we need to open brackets for $env:SystemDrive but not for $WinREAgent Remove-Item -Path (-join ("`$env:SystemDrive\", '$WinREAgent')) -Recurse -Force [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index 33e032c4..85740964 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11" - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 11 versions Version: 22H2 - Builds: 22621.2283+ + Builds: 22621.2428+ Editions: Home/Pro/Enterprise .NOTES @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 index ffbfd175..ff7760e4 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.6 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.7 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 index e35c3d87..ceb8044e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Das Skript unterstützt Windows 11 22H2+. -UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.2283+. Führen Sie Windows Update aus und versuchen Sie es erneut. +UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.2428+. Führen Sie Windows Update aus und versuchen Sie es erneut. 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}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 index ce51ccb5..0009ebbf 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = The script supports Windows 11 22H2+. -UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.2283+. Run Windows Update and try again. +UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.2428+. Run Windows Update and try again. 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}.{1}. Run the script in the appropriate PowerShell version. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 index 2fee8b8f..a4bd1a44 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = El script es compatible con Windows 11 22H2+. -UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.2283+. Ejecute Windows Update y vuelva a intentarlo. +UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.2428+. Ejecute Windows Update y vuelva a intentarlo. 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}.{1}. Ejecute el script en la versión apropiada de PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 index 3ed0f408..5222fd25 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Le script prend en charge Windows 11 22H2+. -UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.2283+. Exécutez Windows Update et réessayez. +UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.2428+. Exécutez Windows Update et réessayez. 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}.{1}. Exécutez le script dans la version appropriée de PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 index d6755ead..91bc486e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = A szkript támogatja a Windows 11 22H2+ rendszert. -UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.2283+. Futtassa a Windows Update programot, és próbálja meg újra. +UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.2428+. Futtassa a Windows Update programot, és próbálja meg újra. UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 index 72bbd1d3..b7e7170f 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Lo script supporta Windows 11 22H2+. -UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.2283+. Eseguire Windows Update e riprovare. +UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.2428+. Eseguire Windows Update e riprovare. UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 index 45023459..b26fa351 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Skrypt obsługuje system Windows 11 22H2+. -UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.2283+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.2428+. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 index b106a36d..f680a23b 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = O script suporta Windows 11 22H2+. -UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.2283+. Execute o Windows Update e tente novamente. +UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.2428+. Execute o Windows Update e tente novamente. 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}.{1}. Execute o script na versão apropriada do PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 index a84ddf72..f40e0e2d 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Скрипт поддерживает Windows 11 22H2+. -UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.2283+. Запустите обновление Windows и попробуйте заново. +UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.2428+. Запустите обновление Windows и попробуйте заново. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 index 53d41163..a6e288f5 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Komut dosyası Windows 11 22H2+'yı destekler. -UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.2283+. Windows Update'i çalıştırın ve tekrar deneyin. +UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.2428+. Windows Update'i çalıştırın ve tekrar deneyin. 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 {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 index b372a3c8..e9318696 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = Скрипт підтримує Windows 11 22H2+. -UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.2283+. Запустіть Windows Update і повторіть спробу. +UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.2428+. Запустіть Windows Update і повторіть спробу. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 index 5f1bb98b..d8890467 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 @@ -1,6 +1,6 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBuild = 脚本支持Windows 11 22H2+。 -UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.2283+。运行Windows Update并再次尝试。 +UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.2428+。运行Windows Update并再次尝试。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 index e3f81a42..1135133b 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.6' + ModuleVersion = '6.5.7' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index cc1b3038..85dd1f0e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -13,7 +13,7 @@ .NOTES Supported Windows 11 versions Version: 22H2/23H2+ - Builds: 22621.2283+ + Builds: 22621.2428+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -281,9 +281,9 @@ public static string GetString(uint strId) } {$_ -eq 22621} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2283) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2428) { - # Check whether the OS minor build version is 2283 minimum + # Check whether the OS minor build version is 2428 minimum # https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information#windows-11-current-versions $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -920,7 +920,7 @@ public static string GetString(uint strId) Write-Information -MessageData "" -InformationAction Continue # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu - $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) if ($AddSkip) { @@ -985,7 +985,7 @@ public static string GetString(uint strId) $Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "") # Extract the localized "&Yes" string from shell32.dll $Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "") - $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817) + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) # Extract the localized "Skip" string from shell32.dll $Script:Skip = [WinAPI.GetStr]::GetString(16956) @@ -1523,9 +1523,15 @@ function ScheduledTasks # The following tasks will have their checkboxes checked [string[]]$CheckedScheduledTasks = @( + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "MareBackup", + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program "Microsoft Compatibility Appraiser", + # Updates compatibility database + "StartupAppTask", + # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program "Proxy", @@ -10579,7 +10585,7 @@ function UnpinAllStartApps 3275D9CEEF37E62C3574C036F327D1110AB0977996D67A2F8FA897D7207BEE85586B8CE6AD4F9736AA2154E3DCC9D082996984B76F1C73067F124F92A41F2B2CA83EF35436670979556FAE85AB10EA1 6C932C3AECE1D45DA06D64BC42F4565AD0FCB8C63CDE7F6BB97ACE300198C3EACA3E1C974F547B1A7CF5B9C6A912448AB38A3BE2D6F0230A4A9AACC710C3E75088754CC2FB054B55B1D6ED7AD41EB8B 0C9D4C274E87A525582F6CFBEAE5A904A1B0A3BA07939B79CAB4F1C3DF35BF88DE846E64555F0AEB47562C329206A9975664558849E0C251E8832D52B4FD7560347E5606AC882B9FC1F43C96922C0EA -1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84851481FE1FF41CA9A2534CCE7AFC45 +1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84974481FE1FF41CA9A2534CCE7AFC45 584370B4940DF30555536344249690F00C3A7E2552E352FE733C7ED2F80A29AD16937810AF805A444A344188C0CBDA51E5466BF45F2587508A69581CC2BCDAE06CB363658D94CD60569352FDA17AE7C DD785810F369B41F2D15930430A809567CC6C643FE7986CAD545EF3DB40CA6FA9220BFC7F65610AECB22799838B80DE73AF549923F8219FFAAD64780E2DB53133D73890294E77F9B0970484E86A0507 37724FF15281C1726D334D3C9A67A85A78AE33F55DB675DAA31C47A156C0F8212DCEE228537668F4BF898C0CB869B74C98DF7EFBE0130859E5156417A85CC634B86314FAB47FB9A8DFEAFA1AEFC5E59 @@ -14894,7 +14900,7 @@ function OpenWindowsTerminalAdminContext } # Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-latin characters will have "?" instead of titles - ConvertTo-Json -InputObject $Terminal -Depth 4 | Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding utf8nobom -Force + ConvertTo-Json -InputObject $Terminal -Depth 4 | Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding utf8 -Force } } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 index 146b4436..ccfd529c 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" - Version: v6.5.6 - Date: 17.09.2023 + Version: v6.5.7 + Date: 22.10.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 11 versions Version: 22H2 - Builds: 22621.2283+ + Builds: 22621.2428+ Editions: Home/Pro/Enterprise .NOTES @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.6 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.7 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force