Browse Source

Small fixes

pull/469/head
Dmitry Nefedov 1 year ago
parent
commit
a70c7636b3
  1. 2
      Wrapper/Localizations/de-DE/tooltip_Windows_10.json
  2. 2
      Wrapper/Localizations/de-DE/tooltip_Windows_11.json
  3. 2
      Wrapper/Localizations/en-US/tooltip_Windows_10.json
  4. 2
      Wrapper/Localizations/en-US/tooltip_Windows_11.json
  5. 2
      src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1
  6. 2
      src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1
  7. 2
      src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1
  8. 2
      src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1
  9. 2
      src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1
  10. 2
      src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1
  11. 2
      src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1
  12. 2
      src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1
  13. 2
      src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1
  14. 2
      src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1
  15. 2
      src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1
  16. 2
      src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1
  17. 52
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  18. 2
      src/Sophia_Script_for_Windows_10/Sophia.ps1
  19. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1
  20. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1
  21. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1
  22. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1
  23. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1
  24. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1
  25. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1
  26. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1
  27. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1
  28. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1
  29. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1
  30. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1
  31. 18
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  32. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
  33. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1
  34. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1
  35. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1
  36. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1
  37. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1
  38. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1
  39. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1
  40. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1
  41. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1
  42. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1
  43. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1
  44. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1
  45. 49
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  46. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
  47. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1
  48. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1
  49. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1
  50. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1
  51. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1
  52. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1
  53. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1
  54. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1
  55. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1
  56. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1
  57. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1
  58. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1
  59. 54
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  60. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
  61. 2
      src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1
  62. 2
      src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1
  63. 2
      src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1
  64. 2
      src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1
  65. 2
      src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1
  66. 2
      src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1
  67. 2
      src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1
  68. 2
      src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1
  69. 2
      src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1
  70. 2
      src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1
  71. 2
      src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1
  72. 2
      src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1
  73. 131
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  74. 2
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  75. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1
  76. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1
  77. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1
  78. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1
  79. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1
  80. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1
  81. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1
  82. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1
  83. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1
  84. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1
  85. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1
  86. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1
  87. 25
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
  88. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

2
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",

2
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",

2
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",

2
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",

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

52
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",

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

18
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++
}

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

49
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)

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

54
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",

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

131
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",

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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版本中运行该脚本

25
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",

2
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

Loading…
Cancel
Save