From a70c7636b3ca874a718c802f0cc1494c3f3dea84 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Tue, 14 Mar 2023 20:31:54 +0300 Subject: [PATCH] Small fixes --- .../de-DE/tooltip_Windows_10.json | 2 +- .../de-DE/tooltip_Windows_11.json | 2 +- .../en-US/tooltip_Windows_10.json | 2 +- .../en-US/tooltip_Windows_11.json | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 52 +++---- src/Sophia_Script_for_Windows_10/Sophia.ps1 | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 18 ++- .../Sophia.ps1 | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 49 ++----- .../Sophia.ps1 | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 54 +++----- .../Sophia.ps1 | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 131 +++++++++--------- src/Sophia_Script_for_Windows_11/Sophia.ps1 | 2 +- .../Localizations/de-DE/Sophia.psd1 | 2 +- .../Localizations/en-US/Sophia.psd1 | 2 +- .../Localizations/es-ES/Sophia.psd1 | 2 +- .../Localizations/fr-FR/Sophia.psd1 | 2 +- .../Localizations/hu-HU/Sophia.psd1 | 2 +- .../Localizations/it-IT/Sophia.psd1 | 2 +- .../Localizations/pl-PL/Sophia.psd1 | 2 +- .../Localizations/pt-BR/Sophia.psd1 | 2 +- .../Localizations/ru-RU/Sophia.psd1 | 2 +- .../Localizations/tr-TR/Sophia.psd1 | 2 +- .../Localizations/uk-UA/Sophia.psd1 | 2 +- .../Localizations/zh-CN/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 25 +++- .../Sophia.ps1 | 2 +- 88 files changed, 229 insertions(+), 264 deletions(-) diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json index 55e8f0f4..f928baa9 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json @@ -43,7 +43,7 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Deaktiviert den Dienst \"Connected User Experiences and Telemetry\" (DiagTrack), und blockiert die Verbindung für den ausgehenden Verkehr des Unified Telemetry Client. Das Deaktivieren des Dienstes \"Benutzererfahrungen und Telemetrie im verbundenen Modus\" (DiagTrack) kann dazu führen, dass Sie keine Xbox-Erfolge mehr erhalten können" + "ToolTip": "Deaktiviert den Dienst \"Connected User Experiences and Telemetry\" (DiagTrack), und blockiert die Verbindung für den ausgehenden Verkehr des Unified Telemetry Client. Das Deaktivieren des Dienstes \"Benutzererfahrungen und Telemetrie im verbundenen Modus\" (DiagTrack) kann dazu führen, dass Sie keine Xbox-Erfolge mehr erhalten können, wirkt sich auf Feedback Hub aus" }, "One": { "Tag": "Enable", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index a9b0d577..fdc139ad 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -43,7 +43,7 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Deaktiviert den Dienst \"Connected User Experiences and Telemetry\" (DiagTrack), und blockiert die Verbindung für den ausgehenden Verkehr des Unified Telemetry Client. Das Deaktivieren des Dienstes \"Benutzererfahrungen und Telemetrie im verbundenen Modus\" (DiagTrack) kann dazu führen, dass Sie keine Xbox-Erfolge mehr erhalten können, wirkt sich auf Feedback Hub aus" + "ToolTip": "Deaktiviert den Dienst \"Connected User Experiences and Telemetry\" (DiagTrack), und blockiert die Verbindung für den ausgehenden Verkehr des Unified Telemetry Client. Das Deaktivieren des Dienstes \"Benutzererfahrungen und Telemetrie im verbundenen Modus\" (DiagTrack) kann dazu führen, dass Sie keine Xbox-Erfolge mehr erhalten können, wirkt sich auf Feedback Hub aus, wirkt sich auf Feedback Hub aus" }, "One": { "Tag": "Enable", diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index 5a602b0e..75e7d514 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -43,7 +43,7 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Disable the \"Connected User Experiences and Telemetry\" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic. Disabling the \"Connected User Experiences and Telemetry\" service (DiagTrack) can cause you not being able to get Xbox achievements anymore" + "ToolTip": "Disable the \"Connected User Experiences and Telemetry\" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic. Disabling the \"Connected User Experiences and Telemetry\" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub" }, "One": { "Tag": "Enable", diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index 3c4d0a3b..0c95f71d 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -43,7 +43,7 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Disable the \"Connected User Experiences and Telemetry\" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic. Disabling the \"Connected User Experiences and Telemetry\" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub" + "ToolTip": "Disable the \"Connected User Experiences and Telemetry\" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic. Disabling the \"Connected User Experiences and Telemetry\" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub and affects Feedback Hub" }, "One": { "Tag": "Enable", 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 f05cf375..3cfdbd46 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 Windows 10 x64 UnsupportedOSBuild = \nDas Skript unterstützt Windows 10 22H2+ -UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2728 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 1932a706..ffeecc1f 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 Windows 10 x64 only UnsupportedOSBuild = \nThe script supports Windows 10 22H2+ -UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again +UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2728 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 32007d60..7b1095f1 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 10 x64 UnsupportedOSBuild = \nEl script es compatible con versión Windows 10 22H2+ -UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2728 y superior. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 38ee1c81..6aecbbc7 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 supporte uniquement Windows 10 x64 UnsupportedOSBuild = \nLe script supporte les versions Windows 10 22H2+ -UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez +UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2728 et plus. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 c3af64c3..8e8a88c6 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 Windows 10 64 bites verziót támogatja UnsupportedOSBuild = \nA szkript támogatja a Windows 10 22H2+ verziókat -UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2728 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 f43ab886..b03371b7 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 10 x64 UnsupportedOSBuild = \nLo script supporta Windows 10 22H2+ -UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare +UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2728 o superiori. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 02624eb8..19c1598d 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 system Windows 10 x64 UnsupportedOSBuild = \nSkrypt obsługuje system Windows 10 22H2+ -UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2728 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 57ea8e0d..7ec927ee 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 script suporta somente Windows 10 x64 UnsupportedOSBuild = \nO script suporta versões Windows 10 22H2+ -UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente +UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2728 e superior. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 183f25ed..eb46aa8c 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 = Скрипт поддерживает только Windows 10 x64 UnsupportedOSBuild = \nСкрипт поддерживает Windows 10 22H2+ -UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2728 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 dfbab9ba..35e0c1db 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 = Bu betik sadece Windows 10 x64 destekliyor UnsupportedOSBuild = \nKomut dosyası, Windows 10 22H2+ sürümlerini destekler -UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2728 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 808d46c2..a1a67644 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 = Скрипт підтримує тільки Windows 10 x64 UnsupportedOSBuild = \nСкрипт підтримує Windows 10 22H2+ -UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2728 і вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 7a3500d3..f650369a 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 = 该脚本仅支持Windows 10 x64 UnsupportedOSBuild = \n该脚本支持Windows 10版本22H2/22H2+和更高版本 -UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试 +UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2728及以上。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 16ee334d..9d757fad 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 versions Versions: 22H2+ - Builds: 19045.2604+ + Builds: 19045.2728+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,9 +70,9 @@ function Checks { {($_ -ge 19045) -and ($_ -le 19048)} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2728) { - # Check whether the OS minor build version is 2604 minimum + # Check whether the OS minor build version is 2728 minimum # https://docs.microsoft.com/en-us/windows/release-health/release-information $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version) @@ -156,7 +156,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -6929,7 +6929,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + Write-Information -MessageData $Title -InformationAction Continue + Write-Information -MessageData "" -InformationAction Continue # Extract the localized "Skip" string from shell32.dll $Menu += [WinAPI.GetStr]::GetString(16956) @@ -6945,11 +6953,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } @@ -10186,35 +10194,6 @@ function PinToStart process { - # Extract strings from shell32.dll using its' number - # https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/8#issue-227159084 - $Signature = @{ - Namespace = "WinAPI" - Name = "GetStr" - Language = "CSharp" - UsingNamespace = "System.Text" - MemberDefinition = @" -[DllImport("kernel32.dll", CharSet = CharSet.Auto)] -public static extern IntPtr GetModuleHandle(string lpModuleName); - -[DllImport("user32.dll", CharSet = CharSet.Auto)] -internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); - -public static string GetString(uint strId) -{ - IntPtr intPtr = GetModuleHandle("shell32.dll"); - StringBuilder sb = new StringBuilder(255); - LoadString(intPtr, strId, sb, sb.Capacity); - return sb.ToString(); -} -"@ - } - - if (-not ("WinAPI.GetStr" -as [type])) - { - Add-Type @Signature - } - # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStr]::GetString(30493) @@ -10491,6 +10470,9 @@ function UninstallUWPApps # AV1 Video Extension "Microsoft.AV1VideoExtension", + # Windows Subsystem for Linux + "MicrosoftCorporationII.WindowsSubsystemForLinux", + # HEVC Video Extensions from Device Manufacturer "Microsoft.HEVCVideoExtension", diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index d6ad378b..a90bc1b1 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Versions: 22H2 - Builds: 19045.2604+ + Builds: 19045.2728+ Editions: Home/Pro/Enterprise Architecture: x64 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 a78c0ca5..3b0ae61e 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 Windows 10 x64 UnsupportedOSBuild = \nDas Skript unterstützt Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 4010 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 4131 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 ee8c1ca1..e0dcdc40 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 Windows 10 x64 only UnsupportedOSBuild = \nThe script supports Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative update: 4010 and higher. Run Windows Update and try again +UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative update: 4131 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 47a39db1..5898ee23 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 10 x64 UnsupportedOSBuild = \nEl script es compatible con versión Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 4010 y superior. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 4131 y superior. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 c8c0839b..669b21ef 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 supporte uniquement Windows 10 x64 UnsupportedOSBuild = \nLe script supporte le version Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée : {0}. Mise à jour cumulative prise en charge: 4010 et plus. Exécutez Windows Update et réessayez +UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée : {0}. Mise à jour cumulative prise en charge: 4131 et plus. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 a8d1deba..7e3c5b4a 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 Windows 10 64 bites verziót támogatja UnsupportedOSBuild = \nA szkript támogatja a Windows 10 Enterprise LTSC 2019 kiadást -UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 4010 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 4131 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 370e503d..a1bf1709 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 10 x64 UnsupportedOSBuild = \nLo script supporta Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 4010 o superiori. Eseguire Windows Update e riprovare +UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 4131 o superiori. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 d9a3070d..25b227b9 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 system Windows 10 x64 only UnsupportedOSBuild = \nSkrypt obsługuje system Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 4010 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie +UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 4131 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 96c8f2f5..e8800c83 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 script suporta somente Windows 10 x64 UnsupportedOSBuild = \nO script suporta versões Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 4010 e superior. Execute o Windows Update e tente novamente +UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 4131 e superior. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 b451ae08..63483cf2 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 = Скрипт поддерживает только Windows 10 x64 UnsupportedOSBuild = \nСкрипт поддерживает только Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 4010 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 4131 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 31d32fbe..9ebfe54b 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 = Bu betik sadece Windows 10 x64 destekliyor UnsupportedOSBuild = \nBu betik sadece Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 4010 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 4131 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 9a1bd9b1..497729f6 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 = Скрипт підтримує тільки Windows 10 x64 UnsupportedOSBuild = \nСкрипт підтримує тільки Windows 10 Enterprise LTSC 2019 -UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 4010 і вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 4131 і вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 7c69f393..3a1e9aa8 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 = 该脚本仅支持Windows 10 x64 UnsupportedOSBuild = \n该脚本支持Windows 10版本Enterprise LTSC 2019 -UpdateWarning = \n安装了Windows 10累积更新:{0}. 支持的累积更新:4010及以上。运行Windows Update并再次尝试 +UpdateWarning = \n安装了Windows 10累积更新:{0}. 支持的累积更新:4131及以上。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 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 38e8c031..12ef9b95 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 @@ -70,9 +70,9 @@ function Checks { $true { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 4010) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 4131) { - # Check whether the OS minor build version is 4010 minimum + # Check whether the OS minor build version is 4131 minimum # https://docs.microsoft.com/en-us/windows/release-health/release-information $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version) @@ -150,7 +150,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -5616,7 +5616,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + Write-Information -MessageData $Title -InformationAction Continue + Write-Information -MessageData "" -InformationAction Continue # Extract the localized "Skip" string from shell32.dll $Menu += [WinAPI.GetStr]::GetString(16956) @@ -5632,11 +5640,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } 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 73c6573e..08ee7647 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 version Version: 1809 - Build: 17763.4010+ + Build: 17763.4131+ Edition: Enterprise LTSC 2019 Architecture: x64 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 ea4f8961..6e69b47e 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 Windows 10 x64 UnsupportedOSBuild = \nDas Skript unterstützt Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2728 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 6bee95d1..483b5bd7 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 Windows 10 x64 only UnsupportedOSBuild = \nThe script supports Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again +UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2728 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 c06740f2..ad8d9e06 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 10 x64 UnsupportedOSBuild = \nEl script es compatible con versión Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2728 y superior. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 2c29df2d..825ae1a7 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 supporte uniquement Windows 10 x64 UnsupportedOSBuild = \nLe script supporte les versions Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez +UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2728 et plus. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 c90efbbe..60ff0c32 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 Windows 10 64 bites verziót támogatja UnsupportedOSBuild = \nA szkript támogatja a Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2728 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 7a837166..6f650f28 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 10 x64 UnsupportedOSBuild = \nLo script supporta Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare +UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2728 o superiori. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 a118cfcc..1b472533 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 system Windows 10 x64 UnsupportedOSBuild = \nSkrypt obsługuje system Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie +UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2728 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 ff588cb4..f14c9c23 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 script suporta somente Windows 10 x64 UnsupportedOSBuild = \nO script suporta versões Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente +UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2728 e superior. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 4c5723fa..9f6a720e 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 = Скрипт поддерживает только Windows 10 x64 UnsupportedOSBuild = \nСкрипт поддерживает только Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2728 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 e1021b13..6b54080b 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 = Bu betik sadece Windows 10 x64 destekliyor UnsupportedOSBuild = \nKomut dosyası, Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2728 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 f769001f..fb8947db 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 = Скрипт підтримує тільки Windows 10 x64 UnsupportedOSBuild = \nСкрипт підтримує тільки Windows 10 Enterprise LTSC 2021 -UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2728 і вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 5a781fe4..8306eb41 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 = 该脚本仅支持Windows 10 x64 UnsupportedOSBuild = \n该脚本支持Windows 10 Enterprise LTSC 2021 -UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试 +UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2728及以上。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 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 062fe66f..963a0802 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 @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.2604+ + Build: 19044.2728+ Edition: Enterprise LTSC 2021 Architecture: x64 @@ -70,9 +70,9 @@ function Checks { $true { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2728) { - # Check whether the OS minor build version is 2604 minimum + # Check whether the OS minor build version is 2728 minimum # https://docs.microsoft.com/en-us/windows/release-health/release-information $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version) @@ -150,7 +150,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -6003,7 +6003,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + Write-Information -MessageData $Title -InformationAction Continue + Write-Information -MessageData "" -InformationAction Continue # Extract the localized "Skip" string from shell32.dll $Menu += [WinAPI.GetStr]::GetString(16956) @@ -6019,11 +6027,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } @@ -9156,35 +9164,6 @@ function PinToStart process { - # Extract strings from shell32.dll using its' number - # https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/8#issue-227159084 - $Signature = @{ - Namespace = "WinAPI" - Name = "GetStr" - Language = "CSharp" - UsingNamespace = "System.Text" - MemberDefinition = @" -[DllImport("kernel32.dll", CharSet = CharSet.Auto)] -public static extern IntPtr GetModuleHandle(string lpModuleName); - -[DllImport("user32.dll", CharSet = CharSet.Auto)] -internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); - -public static string GetString(uint strId) -{ - IntPtr intPtr = GetModuleHandle("shell32.dll"); - StringBuilder sb = new StringBuilder(255); - LoadString(intPtr, strId, sb, sb.Capacity); - return sb.ToString(); -} -"@ - } - - if (-not ("WinAPI.GetStr" -as [type])) - { - Add-Type @Signature - } - # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStr]::GetString(30493) 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 c8fa8b70..69d52c43 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.2604+ + Build: 19044.2728+ Edition: Enterprise LTSC 2021 Architecture: x64 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 f05cf375..3cfdbd46 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 Windows 10 x64 UnsupportedOSBuild = \nDas Skript unterstützt Windows 10 22H2+ -UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nDas kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2728 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 1932a706..ffeecc1f 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 Windows 10 x64 only UnsupportedOSBuild = \nThe script supports Windows 10 22H2+ -UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again +UpdateWarning = \nWindows 10 cumulative update installed: {0}. Supported cumulative updates: 2728 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 32007d60..7b1095f1 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 10 x64 UnsupportedOSBuild = \nEl script es compatible con versión Windows 10 22H2+ -UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nActualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2728 y superior. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 38ee1c81..6aecbbc7 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 supporte uniquement Windows 10 x64 UnsupportedOSBuild = \nLe script supporte les versions Windows 10 22H2+ -UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez +UpdateWarning = \nLa mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2728 et plus. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 c3af64c3..8e8a88c6 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 Windows 10 64 bites verziót támogatja UnsupportedOSBuild = \nA szkript támogatja a Windows 10 22H2+ verziókat -UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nA Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2728 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 f43ab886..b03371b7 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 10 x64 UnsupportedOSBuild = \nLo script supporta Windows 10 22H2+ -UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare +UpdateWarning = \nWindows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2728 o superiori. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 02624eb8..19c1598d 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 system Windows 10 x64 UnsupportedOSBuild = \nSkrypt obsługuje system Windows 10 22H2+ -UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = \nZainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2728 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 57ea8e0d..7ec927ee 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 script suporta somente Windows 10 x64 UnsupportedOSBuild = \nO script suporta versões Windows 10 22H2+ -UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente +UpdateWarning = \nAtualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2728 e superior. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 183f25ed..eb46aa8c 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 = Скрипт поддерживает только Windows 10 x64 UnsupportedOSBuild = \nСкрипт поддерживает Windows 10 22H2+ -UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nУстановленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2728 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 dfbab9ba..35e0c1db 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 = Bu betik sadece Windows 10 x64 destekliyor UnsupportedOSBuild = \nKomut dosyası, Windows 10 22H2+ sürümlerini destekler -UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2728 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 808d46c2..a1a67644 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 = Скрипт підтримує тільки Windows 10 x64 UnsupportedOSBuild = \nСкрипт підтримує Windows 10 22H2+ -UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВстановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2728 і вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 7a3500d3..f650369a 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 = 该脚本仅支持Windows 10 x64 UnsupportedOSBuild = \n该脚本支持Windows 10版本22H2/22H2+和更高版本 -UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试 +UpdateWarning = \n安装了Windows 10累积更新: {0}. 支持的累积更新:2728及以上。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 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 15fd1acc..1845b38d 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 @@ -13,7 +13,7 @@ .NOTES Supported Windows 10 versions Versions: 22H2+ - Builds: 19045.2604+ + Builds: 19045.2728+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,9 +70,9 @@ function Checks { {($_ -ge 19045) -and ($_ -le 19048)} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2728) { - # Check whether the OS minor build version is 2604 minimum + # Check whether the OS minor build version is 2728 minimum # https://docs.microsoft.com/en-us/windows/release-health/release-information $Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR Write-Warning -Message ($Localization.UpdateWarning -f $Version) @@ -156,7 +156,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -760,7 +760,7 @@ function DiagTrackService "Disable" { # Connected User Experiences and Telemetry - # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore + # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub Get-Service -Name DiagTrack | Stop-Service -Force Get-Service -Name DiagTrack | Set-Service -StartupType Disabled @@ -6938,7 +6938,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + Write-Information -MessageData $Title -InformationAction Continue + Write-Information -MessageData "" -InformationAction Continue # Extract the localized "Skip" string from shell32.dll $Menu += [WinAPI.GetStr]::GetString(16956) @@ -6954,11 +6962,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } @@ -10195,35 +10203,6 @@ function PinToStart process { - # Extract strings from shell32.dll using its' number - # https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/8#issue-227159084 - $Signature = @{ - Namespace = "WinAPI" - Name = "GetStr" - Language = "CSharp" - UsingNamespace = "System.Text" - MemberDefinition = @" -[DllImport("kernel32.dll", CharSet = CharSet.Auto)] -public static extern IntPtr GetModuleHandle(string lpModuleName); - -[DllImport("user32.dll", CharSet = CharSet.Auto)] -internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); - -public static string GetString(uint strId) -{ - IntPtr intPtr = GetModuleHandle("shell32.dll"); - StringBuilder sb = new StringBuilder(255); - LoadString(intPtr, strId, sb, sb.Capacity); - return sb.ToString(); -} -"@ - } - - if (-not ("WinAPI.GetStr" -as [type])) - { - Add-Type @Signature - } - # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStr]::GetString(30493) @@ -10510,6 +10489,9 @@ function UninstallUWPApps # AV1 Video Extension "Microsoft.AV1VideoExtension", + # Windows Subsystem for Linux + "MicrosoftCorporationII.WindowsSubsystemForLinux", + # HEVC Video Extensions from Device Manufacturer "Microsoft.HEVCVideoExtension", 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 c0f6de29..a766ea4a 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Versions: 22H2 - Builds: 19045.2604+ + Builds: 19045.2728+ Editions: Home/Pro/Enterprise Architecture: x64 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 9cca0036..3065f51a 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 = \nDas Skript unterstützt Windows 11 2004/20H2/21H1-Versionen und höher -UpdateWarning = \nIhr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1344 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nIhr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1413 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 0d49311c..8409de00 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 = \nThe script supports Windows 11 22H2 version and higher -UpdateWarning = \nYour Windows 11 build: {0}.{1}. Supported builds: 22621.1344 and higher. Run Windows Update and try again +UpdateWarning = \nYour Windows 11 build: {0}.{1}. Supported builds: 22621.1413 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 3f7ddaae..b7da61c5 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 = \nEl script es compatible con versión Windows 11 22H2 y superiores -UpdateWarning = \nSu build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1344 y superiores. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nSu build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1413 y superiores. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 38215b33..19bb17c6 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 = \nLe script supporte les versions Windows 11 22H2 et ultérieures -UpdateWarning = \nVotre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1344 et ultérieures. Exécutez Windows Update et réessayez +UpdateWarning = \nVotre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1413 et ultérieures. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 a1c77196..ba587fe2 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 = \nA szkript a Windows 11 22H2 és újabb kiadásokat támogatja -UpdateWarning = \nAz Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1344 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nAz Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1413 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 055ae87c..5be4544f 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 = \nLo script supporta Windows 11 22H2 e versioni successive -UpdateWarning = \nLa tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1344 e successive. Eseguire Windows Update e riprovare +UpdateWarning = \nLa tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1413 e successive. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 a52ff659..9279fc8b 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 = \nSkrypt obsługuje tylko system Windows 11 22H2 version and higher -UpdateWarning = \nTwoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1344 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = \nTwoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1413 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 2a957cf4..5894a001 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 = \nO script suporta versões Windows 11 22H2 e superior -UpdateWarning = \nLa tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1344 e successive. Execute o Windows Update e tente novamente +UpdateWarning = \nLa tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1413 e successive. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 b517eac8..e72d04c4 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 = \nСкрипт поддерживает только Windows 11 22H2 и выше -UpdateWarning = \nВаш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1344 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nВаш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1413 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 23131812..15faa71e 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 = \nBu betik sadece Windows 11 22H2 sürüm ve üstünü destekliyor -UpdateWarning = \nWindows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1344 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1413 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 a2368b5a..d668869a 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 = \nСкрипт підтримує тільки Windows 11 22H2 та вище -UpdateWarning = \nВаш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1344 та вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВаш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1413 та вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 179cf994..262a7625 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 = \n该脚本支持Windows 11版本22H2和更高版本 -UpdateWarning = \n您的Windows 11构建: {0}.{1}。支持的构建: 22621.1344和更高版本。运行Windows Update并再次尝试 +UpdateWarning = \n您的Windows 11构建: {0}.{1}。支持的构建: 22621.1413和更高版本。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index bd730bad..93e5a0cb 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -13,7 +13,7 @@ .NOTES Supported Windows 11 versions Versions: 22H2/23H2+ - Builds: 22621.1344+ + Builds: 22621.1413+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -159,9 +159,9 @@ function Checks } {$_ -ge 22621} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1344) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1413) { - # Check whether the OS minor build version is 1344 minimum + # Check whether the OS minor build version is 1413 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -246,7 +246,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -807,7 +807,7 @@ function DiagTrackService "Disable" { # Connected User Experiences and Telemetry - # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore + # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub Get-Service -Name DiagTrack | Stop-Service -Force Get-Service -Name DiagTrack | Set-Service -StartupType Disabled @@ -6498,6 +6498,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + + Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData $Title -InformationAction Continue # Extract the localized "Skip" string from shell32.dll @@ -6514,11 +6522,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } @@ -6556,14 +6564,6 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int while ($k.Key -notin ([ConsoleKey]::Escape, [ConsoleKey]::Enter)) } - # The localized user folders names - $DesktopLocalizedString = [WinAPI.GetStr]::GetString(21769) - $DocumentsLocalizedString = [WinAPI.GetStr]::GetString(21770) - $DownloadsLocalizedString = [WinAPI.GetStr]::GetString(21798) - $MusicLocalizedString = [WinAPI.GetStr]::GetString(21790) - $PicturesLocalizedString = [WinAPI.GetStr]::GetString(21779) - $VideosLocalizedString = [WinAPI.GetStr]::GetString(21791) - switch ($PSCmdlet.ParameterSetName) { "Root" @@ -6583,14 +6583,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Desktop Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $DesktopLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21769)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DesktopLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $DesktopLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21769) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6605,7 +6605,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21769)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6625,14 +6625,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Documents Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $DocumentsLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21770)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Personal - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DocumentsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21770), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $DocumentsLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21770) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6647,7 +6647,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21770)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6667,14 +6667,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Downloads Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $DownloadsLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21798)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DownloadsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21798), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $DownloadsLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21798) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6689,7 +6689,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21798)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6709,14 +6709,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Music Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $MusicLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21790)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Music" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $MusicLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $MusicLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21790) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6731,7 +6731,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21790)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6751,14 +6751,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Pictures Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $PicturesLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21779)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $PicturesLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21779), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $PicturesLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21779) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6773,7 +6773,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21779)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6793,14 +6793,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int # Videos Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.DriveSelect -f $VideosLocalizedString) -Verbose + Write-Verbose -Message ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21791)) -Verbose $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $VideosLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderRequest -f $VideosLocalizedString + $Message = $Localization.UserFolderRequest -f [WinAPI.GetStr]::GetString(21791) # Extract the localized "&No" string from shell32.dll $No = [WinAPI.GetStr]::GetString(33232) # Extract the localized "&Yes" string from shell32.dll @@ -6815,7 +6815,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($DriveLetters.Count -gt 1) { - $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f $DesktopLocalizedString) -Menu $DriveLetters -Default $Script:Default + $SelectedDrive = ShowMenu -Title ($Localization.DriveSelect -f [WinAPI.GetStr]::GetString(21791)) -Menu $DriveLetters -Default $Script:Default } else { @@ -6839,11 +6839,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DesktopLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $DesktopLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21769) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -6880,11 +6880,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Personal - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DocumentsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21770), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $DocumentsLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21770) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -6921,11 +6921,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DownloadsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21798), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $DownloadsLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21798) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -6962,11 +6962,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Music" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $MusicLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $MusicLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21790) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -7003,11 +7003,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $PicturesLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21779), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $PicturesLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21779) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -7044,11 +7044,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $VideosLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserFolderSelect -f $VideosLocalizedString + $Message = $Localization.UserFolderSelect -f [WinAPI.GetStr]::GetString(21791) # Extract the localized "Browse" string from shell32.dll $Browse = [WinAPI.GetStr]::GetString(9015) # Extract the localized "&No" string from shell32.dll @@ -7087,11 +7087,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DesktopLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $DesktopLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21769) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -7116,11 +7116,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Personal - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DocumentsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21770), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $DocumentsLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21770) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -7145,11 +7145,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $DownloadsLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21798), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $DownloadsLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21798) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -7174,11 +7174,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Music" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $MusicLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $MusicLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21790) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -7203,11 +7203,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $PicturesLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21779), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $PicturesLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21779) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -7232,11 +7232,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int Write-Information -MessageData "" -InformationAction Continue $CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" - Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f $VideosLocalizedString, $CurrentUserFolderLocation) -Verbose + Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose Write-Warning -Message $Localization.FilesWontBeMoved $Title = "" - $Message = $Localization.UserDefaultFolder -f $VideosLocalizedString + $Message = $Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791) # Extract the localized "&Yes" string from shell32.dll $Yes = [WinAPI.GetStr]::GetString(33224) # Extract the localized "&No" string from shell32.dll @@ -9171,7 +9171,7 @@ function InstallDotNetRuntimes Uri = "https://dotnetcli.azureedge.net/dotnet/Runtime/$LatestRelease/dotnet-runtime-$LatestRelease-win-x86.exe" OutFile = "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe" UseBasicParsing = $true - Verbose = $true ### + Verbose = $true } Invoke-WebRequest @Parameters @@ -9930,6 +9930,9 @@ function UninstallUWPApps # AV1 Video Extension "Microsoft.AV1VideoExtension", + # Windows Subsystem for Linux + "MicrosoftCorporationII.WindowsSubsystemForLinux", + # HEVC Video Extensions from Device Manufacturer "Microsoft.HEVCVideoExtension", diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index d38054b3..e07c0d32 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 11 versions Versions: 22H2 - Builds: 22621.1344+ + Builds: 22621.1413+ Editions: Home/Pro/Enterprise .NOTES 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 9cca0036..3065f51a 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 = \nDas Skript unterstützt Windows 11 2004/20H2/21H1-Versionen und höher -UpdateWarning = \nIhr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1344 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut +UpdateWarning = \nIhr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1413 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut UnsupportedLanguageMode = \nDie PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt LoggedInUserNotAdmin = \nDer angemeldete Benutzer hat keine Administratorrechte UnsupportedPowerShell = \nSie 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 0d49311c..8409de00 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 = \nThe script supports Windows 11 22H2 version and higher -UpdateWarning = \nYour Windows 11 build: {0}.{1}. Supported builds: 22621.1344 and higher. Run Windows Update and try again +UpdateWarning = \nYour Windows 11 build: {0}.{1}. Supported builds: 22621.1413 and higher. Run Windows Update and try again UnsupportedLanguageMode = \nThe PowerShell session in running in a limited language mode LoggedInUserNotAdmin = \nThe logged-on user doesn't have admin rights UnsupportedPowerShell = \nYou'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 3f7ddaae..b7da61c5 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 = \nEl script es compatible con versión Windows 11 22H2 y superiores -UpdateWarning = \nSu build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1344 y superiores. Ejecute Windows Update y vuelva a intentarlo +UpdateWarning = \nSu build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1413 y superiores. Ejecute Windows Update y vuelva a intentarlo UnsupportedLanguageMode = \nSesión de PowerShell ejecutada en modo de lenguaje limitado LoggedInUserNotAdmin = \nEl usuario que inició sesión no tiene derechos de administrador UnsupportedPowerShell = \nEstá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 38215b33..19bb17c6 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 = \nLe script supporte les versions Windows 11 22H2 et ultérieures -UpdateWarning = \nVotre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1344 et ultérieures. Exécutez Windows Update et réessayez +UpdateWarning = \nVotre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1413 et ultérieures. Exécutez Windows Update et réessayez UnsupportedLanguageMode = \nLa session PowerShell s'exécute dans un mode de langue limité LoggedInUserNotAdmin = \nL'utilisateur connecté n'a pas de droits d'administrateur UnsupportedPowerShell = \nVous 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 a1c77196..ba587fe2 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 = \nA szkript a Windows 11 22H2 és újabb kiadásokat támogatja -UpdateWarning = \nAz Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1344 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra +UpdateWarning = \nAz Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1413 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra UnsupportedLanguageMode = \nA PowerShell munkamenet korlátozott nyelvi üzemmódban fut LoggedInUserNotAdmin = \nA bejelentkezett felhasználó nem rendelkezik admin jogokkal UnsupportedPowerShell = \nA 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 055ae87c..5be4544f 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 = \nLo script supporta Windows 11 22H2 e versioni successive -UpdateWarning = \nLa tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1344 e successive. Eseguire Windows Update e riprovare +UpdateWarning = \nLa tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1413 e successive. Eseguire Windows Update e riprovare UnsupportedLanguageMode = \nLa sessione PowerShell è in esecuzione in modalità lingua limitata LoggedInUserNotAdmin = \nL'utente in suo non ha i diritti di amministratore UnsupportedPowerShell = \nStai 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 a52ff659..9279fc8b 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 = \nSkrypt obsługuje tylko system Windows 11 22H2 version and higher -UpdateWarning = \nTwoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1344 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UpdateWarning = \nTwoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1413 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie. UnsupportedLanguageMode = \nSesja PowerShell działa w trybie ograniczonego języka LoggedInUserNotAdmin = \nZalogowany użytkownik nie posiada uprawnień administratora UnsupportedPowerShell = \nPró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 2a957cf4..5894a001 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 = \nO script suporta versões Windows 11 22H2 e superior -UpdateWarning = \nLa tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1344 e successive. Execute o Windows Update e tente novamente +UpdateWarning = \nLa tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1413 e successive. Execute o Windows Update e tente novamente UnsupportedLanguageMode = \nA sessão PowerShell em funcionamento em um modo de linguagem limitada LoggedInUserNotAdmin = \nO usuário logado não tem direitos de administrador UnsupportedPowerShell = \nVocê 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 b517eac8..e72d04c4 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 = \nСкрипт поддерживает только Windows 11 22H2 и выше -UpdateWarning = \nВаш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1344 и выше. Запустите обновление Windows и попробуйте заново +UpdateWarning = \nВаш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1413 и выше. Запустите обновление Windows и попробуйте заново UnsupportedLanguageMode = \nСессия PowerShell работает в ограниченном режиме LoggedInUserNotAdmin = \nТекущий вошедший пользователь не обладает правами администратора UnsupportedPowerShell = \nВы пытаетесь запустить скрипт в 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 23131812..15faa71e 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 = \nBu betik sadece Windows 11 22H2 sürüm ve üstünü destekliyor -UpdateWarning = \nWindows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1344 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin +UpdateWarning = \nWindows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1413 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin UnsupportedLanguageMode = \nSınırlı bir dil modunda çalışan PowerShell oturumu LoggedInUserNotAdmin = \nOturum açan kullanıcının yönetici hakları yok UnsupportedPowerShell = \nKomut 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 a2368b5a..d668869a 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 = \nСкрипт підтримує тільки Windows 11 22H2 та вище -UpdateWarning = \nВаш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1344 та вище. Запустіть Windows Update і повторіть спробу +UpdateWarning = \nВаш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1413 та вище. Запустіть Windows Update і повторіть спробу UnsupportedLanguageMode = \nСесія PowerShell працює в обмеженому режимі LoggedInUserNotAdmin = \nПоточний користувач, що увійшов, не має прав адміністратора UnsupportedPowerShell = \nВи намагаєтеся запустити скрипт в 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 179cf994..262a7625 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 = \n该脚本支持Windows 11版本22H2和更高版本 -UpdateWarning = \n您的Windows 11构建: {0}.{1}。支持的构建: 22621.1344和更高版本。运行Windows Update并再次尝试 +UpdateWarning = \n您的Windows 11构建: {0}.{1}。支持的构建: 22621.1413和更高版本。运行Windows Update并再次尝试 UnsupportedLanguageMode = \nPowerShell会话在有限的语言模式下运行 LoggedInUserNotAdmin = \n登录的用户没有管理员的权利 UnsupportedPowerShell = \n你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本 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 579e055c..8f9db609 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 @@ -13,7 +13,7 @@ .NOTES Supported Windows 11 versions Versions: 22H2/23H2+ - Builds: 22621.1344+ + Builds: 22621.1413+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -159,9 +159,9 @@ function Checks } {$_ -ge 22621} { - if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1344) + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1413) { - # Check whether the OS minor build version is 1344 minimum + # Check whether the OS minor build version is 1413 minimum # https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR @@ -246,7 +246,7 @@ function Checks # Check whether the OS was infected by the Win 10 Tweaker's trojan # https://win10tweaker.ru - if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker") + if ((Test-Path -Path "HKCU:\Software\Win 10 Tweaker") -or (Test-Path -Path "${env:ProgramFiles(x86)}\Win 10 Tweakеr")) { Write-Warning -Message $Localization.Win10TweakerWarning Start-Process -FilePath "https://youtu.be/na93MS-1EkM" @@ -810,7 +810,7 @@ function DiagTrackService "Disable" { # Connected User Experiences and Telemetry - # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore + # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub Get-Service -Name DiagTrack | Stop-Service -Force Get-Service -Name DiagTrack | Set-Service -StartupType Disabled @@ -6505,7 +6505,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int $Default ) + # There's a bug in Windows Terminal with double text in console + # https://github.com/microsoft/terminal/issues/14992 + if ($env:WT_SESSION) + { + Clear-Host + } + Write-Information -MessageData $Title -InformationAction Continue + Write-Information -MessageData "" -InformationAction Continue # Extract the localized "Skip" string from shell32.dll $Menu += [WinAPI.GetStr]::GetString(16956) @@ -6521,11 +6529,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { if ($i -ne $y) { - Write-Information -MessageData (' {0}. {1} ' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue } else { - Write-Information -MessageData ('[ {0}. {1} ]' -f ($i+1), $item) -InformationAction Continue + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue } $i++ } @@ -9945,6 +9953,9 @@ function UninstallUWPApps # AV1 Video Extension "Microsoft.AV1VideoExtension", + # Windows Subsystem for Linux + "MicrosoftCorporationII.WindowsSubsystemForLinux", + # HEVC Video Extensions from Device Manufacturer "Microsoft.HEVCVideoExtension", 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 f0d85e58..9518c54e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -27,7 +27,7 @@ .NOTES Supported Windows 11 versions Versions: 22H2 - Builds: 22621.1344+ + Builds: 22621.1413+ Editions: Home/Pro/Enterprise .NOTES