Browse Source

Minor changes

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

17
Wrapper/Localizations/de-DE/ui.json

@ -18,6 +18,7 @@
{
"Id": "Tab",
"Options": {
"tabSearch": "Suchen",
"tabSystemProtection": "Systemschutz",
"tabPrivacyTelemetry": "Datenschutz",
"tabUIPersonalization": "Personalisierung",
@ -40,7 +41,9 @@
"btnRefreshConsole": "Konsole aktualisieren",
"btnRunPowerShell": "PowerShell ausführen",
"btnOpen": "Offen",
"btnSave": "Speichern"
"btnSave": "Speichern",
"btnSearch": "Suchen",
"btnClear": "Klar"
}
},
{
@ -64,11 +67,19 @@
"Options": {
"messageBoxNewWrapperFound": "Eine neue Version von 'Wrapper' wurde entdeckt.\nGitHub-Seite öffnen?",
"messageBoxNewSophiaFound": "Eine neue Version von 'Sophia Script' wurde entdeckt.\nGitHub-Seite öffnen?",
"messageBoxDoesNotExist": "existiert nicht",
"messageBoxDoesNotExist": "existiert nicht.",
"messageBoxPresetNotComp": "Voreinstellung ist nicht kompatibel!",
"messageBoxFilesMissingClose": "Die erforderlichen Sophia Script Wrapper-Dateien fehlen. Das Programm wird geschlossen.",
"messageBoxConsoleEmpty": "Die Konsole ist leer.\n Drücken Sie die Schaltfläche Konsole aktualisieren, um ein Skript entsprechend Ihrer Auswahl zu erstellen.",
"messageBoxPowerShellVersionNotInstalled": "Die von Ihnen ausgewählte PowerShell-Version ist nicht installiert."
"messageBoxPowerShellVersionNotInstalled": "Die von Ihnen ausgewählte PowerShell-Version ist nicht installiert.",
"messageBoxMaybeFilesNotUnzippedProperly": "Möglicherweise wurden die Dateien nicht ordnungsgemäß entpackt."
}
},
{
"Id": "Other",
"Options": {
"textBlockSearchInfo": "Geben Sie die Suchzeichenfolge ein, um die Option zu finden. Die Registerkarte wird in der Farbe Rot umrandet, um die Registerkarte zu finden, die die Option(en) enthält, und die Beschriftung der Option wird ebenfalls in Rot umrandet.",
"textBlockSearchFound": "Anzahl der gefundenen Optionen:"
}
}
]

19
Wrapper/Localizations/en-US/ui.json

@ -18,6 +18,7 @@
{
"Id": "Tab",
"Options": {
"tabSearch": "Search",
"tabSystemProtection": "System Protection",
"tabPrivacyTelemetry": "Privacy",
"tabUIPersonalization": "Personalization",
@ -40,7 +41,9 @@
"btnRefreshConsole": "Refresh Console",
"btnRunPowerShell": "Run PowerShell",
"btnOpen": "Open",
"btnSave": "Save"
"btnSave": "Save",
"btnSearch": "Search",
"btnClear": "Clear"
}
},
{
@ -62,13 +65,21 @@
{
"Id": "MessageBox",
"Options": {
"messageBoxNewWrapperFound": "A new version of 'Wrapper' found.\nOpen a GitHub latest release page?",
"messageBoxNewWrapperFound": "A new version of 'Wrapper' found.\nOpen GitHub latest release page?",
"messageBoxNewSophiaFound": "A new version Sophia Script found.\nOpen GitHub latest release page?",
"messageBoxDoesNotExist": "does not exist",
"messageBoxDoesNotExist": "does not exist.",
"messageBoxPresetNotComp": "preset file is not compatible!",
"messageBoxFilesMissingClose": "Files missing so Sophia Script Wrapper will close.",
"messageBoxConsoleEmpty": "The console is empty.\nClick 'Refresh Console' button to create script with your selections.",
"messageBoxPowerShellVersionNotInstalled": "PowerShell version you selected is not installed."
"messageBoxPowerShellVersionNotInstalled": "PowerShell version you selected is not installed.",
"messageBoxMaybeFilesNotUnzippedProperly": "Maybe files not unzipped properly."
}
},
{
"Id": "Other",
"Options": {
"textBlockSearchInfo": "Enter search string to find the option. The tab will be outlined in the color red locating the tab containing the option(s) and the option's label will also be in outlined in red.",
"textBlockSearchFound": "Number of options found:"
}
}
]

17
Wrapper/Localizations/ru-RU/ui.json

@ -18,6 +18,7 @@
{
"Id": "Tab",
"Options": {
"tabSearch": "Поиск",
"tabSystemProtection": "Защита",
"tabPrivacyTelemetry": "Конфиденциальность",
"tabUIPersonalization": "Персонализация",
@ -40,7 +41,9 @@
"btnRefreshConsole": "Обновить консоль",
"btnRunPowerShell": "Запустить PowerShell",
"btnOpen": "Обзор",
"btnSave": "Сохранить"
"btnSave": "Сохранить",
"btnSearch": "Поиск",
"btnClear": "Очистить"
}
},
{
@ -64,11 +67,19 @@
"Options": {
"messageBoxNewWrapperFound": "Обнаружена новая версия Wrapper.\nОткрыть страницу GitHub?",
"messageBoxNewSophiaFound": "Обнаружена новая версия Sophia Script.\nОткрыть страницу GitHub?",
"messageBoxDoesNotExist": "не существует",
"messageBoxDoesNotExist": "не существует.",
"messageBoxPresetNotComp": "Пресет не совместим!",
"messageBoxFilesMissingClose": "Отсутствуют необходимые файлы Sophia Script Wrapper. Программа будет закрыта.",
"messageBoxConsoleEmpty": "Консоль пуста.\nНажмите кнопку \"Обновить консоль\", чтобы создать скрипт согласно вышему выбору.",
"messageBoxPowerShellVersionNotInstalled": "Выбранная вами версия PowerShell не установлена."
"messageBoxPowerShellVersionNotInstalled": "Выбранная вами версия PowerShell не установлена.",
"messageBoxMaybeFilesNotUnzippedProperly": "Возможно, файлы не разархивированы должным образом."
}
},
{
"Id": "Other",
"Options": {
"textBlockSearchInfo": "Введите запрос в строку поиска, чтобы увидеть найденные результаты. При совпадении категории будут подсвечены красной рамкой. Совпадения по именам функций будут также подсвечены внутри категорий.",
"textBlockSearchFound": "Количество найденных вариантов:"
}
}
]

BIN
Wrapper/SophiaScriptWrapper.exe

Binary file not shown.

14
sophia_script_versions.json

@ -1,9 +1,9 @@
{
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.9",
"Sophia_Script_Windows_10_PowerShell_7": "5.17.9",
"Sophia_Script_Windows_10_LTSC2019": "5.7.9",
"Sophia_Script_Windows_10_LTSC2021": "5.17.9",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.9",
"Sophia_Script_Windows_11_PowerShell_7": "6.5.9",
"Sophia_Script_Wrapper": "2.6.13"
"Sophia_Script_Windows_10_PowerShell_5_1": "5.18.0",
"Sophia_Script_Windows_10_PowerShell_7": "5.18.0",
"Sophia_Script_Windows_10_LTSC2019": "5.8.0",
"Sophia_Script_Windows_10_LTSC2021": "5.18.0",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.6.0",
"Sophia_Script_Windows_11_PowerShell_7": "6.6.0",
"Sophia_Script_Wrapper": "2.6.15"
}

2
src/Sophia_Script_for_Windows_10/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

5
src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3803+. Führen Sie Windows Update aus und versuchen Sie es erneut.
NonLatinUsernameWarning = PowerShell 5.1 kompiliert keinen Code, wenn der Benutzername nicht-lateinische Zeichen (einschließlich Emoji) enthält und in Kleinbuchstaben geschrieben ist. Bitte verwenden Sie PowerShell 7.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3996+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -9,7 +10,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

5
src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports 64-bit Windows only.
UnsupportedOSBuild = The script supports Windows 10 22H2.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3803+. Run Windows Update and try again.
NonLatinUsernameWarning = PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Please, use PowerShell 7.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3996+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -9,7 +10,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

5
src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 22H2.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3803+. Ejecute Windows Update y vuelva a intentarlo.
NonLatinUsernameWarning = PowerShell 5.1 no compila código si el nombre de usuario contiene caracteres no latinos (incluidos los emoji) y está escrito en minúsculas. Por favor, utiliza PowerShell 7.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3996+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

5
src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3803+. Exécutez Windows Update et réessayez.
NonLatinUsernameWarning = PowerShell 5.1 ne compile pas le code si le nom d'utilisateur contient des caractères non latins (y compris emoji) et est écrit en minuscules. Veuillez utiliser PowerShell 7.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3996+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

5
src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verzióját.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3803+. Futtassa a Windows Update programot, és próbálja meg újra.
NonLatinUsernameWarning = A PowerShell 5.1 nem fordít kódot, ha a felhasználónév nem latin betűket tartalmaz (beleértve az emojikat is), és kisbetűvel van írva. Kérjük, használja a PowerShell 7-et.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3996+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -9,7 +10,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

5
src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit.
UnsupportedOSBuild = Lo script supporta Windows 10 22H2.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3803+. Eseguire Windows Update e riprovare.
NonLatinUsernameWarning = PowerShell 5.1 non compila il codice se il nome utente contiene caratteri non latini (compresi gli emoji) ed è scritto in minuscolo. Si prega di utilizzare PowerShell 7.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3996+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -9,7 +10,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

5
src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows.
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 22H2.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3803+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
NonLatinUsernameWarning = PowerShell 5.1 nie kompiluje kodu, jeśli nazwa użytkownika zawiera znaki spoza alfabetu łacińskiego (w tym emoji) i jest zapisana małymi literami. Prosimy o używanie PowerShell 7.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3996+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

5
src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits.
UnsupportedOSBuild = O script suporta versões Windows 10 22H2.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3803+. Execute o Windows Update e tente novamente.
NonLatinUsernameWarning = O PowerShell 5.1 não compilará o código se o nome de usuário contiver caracteres não latinos (inclusive emoji) e estiver escrito em letras minúsculas. Por favor, use o PowerShell 7.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3996+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

5
src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows.
UnsupportedOSBuild = Скрипт поддерживает Windows 10 22H2.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3803+. Запустите обновление Windows и попробуйте заново.
NonLatinUsernameWarning = PowerShell 5.1 не компилирует код, если имя пользователя содержит нелатинские символы (включая эмодзи) и написано со строчной буквы. Пожалуйста, используйте PowerShell 7.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3996+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

5
src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3803+. Windows Update'i çalıştırın ve tekrar deneyin.
NonLatinUsernameWarning = PowerShell 5.1, kullanıcı adı Latin olmayan karakterler içeriyorsa (emoji dahil) ve küçük harfle yazılmışsa kodu derlemez. Lütfen PowerShell 7 kullanın.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3996+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -9,7 +10,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

5
src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows.
UnsupportedOSBuild = Скрипт підтримує Windows 10 22H2.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3803+. Запустіть Windows Update і повторіть спробу.
NonLatinUsernameWarning = PowerShell 5.1 не компілює код, якщо ім'я користувача містить нелатинські символи (включно з емодзі) і написане з малої літери. Будь ласка, використовуйте PowerShell 7.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3996+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

5
src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持64位Windows
UnsupportedOSBuild = 该脚本支持Windows 10版本22H2和更高版本
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19045.3803+运行Windows Update并再次尝试
NonLatinUsernameWarning = 如果用户名包含非拉丁字符包括表情符号且以小写字母书写PowerShell 5.1 将无法编译代码请使用 PowerShell 7
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19045.3996+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -9,7 +10,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

95
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 versions
Version: 22H2
Builds: 19045.3803+
Builds: 19045.3996+
Editions: Home/Pro/Enterprise
Architecture: x64
@ -85,9 +85,24 @@ public static string GetString(uint strId)
"@
}
if (-not ("WinAPI.GetStr" -as [type]))
{
try
{
Add-Type @Signature
}
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message $Localization.NonLatinUsernameWarning
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/PowerShell/PowerShell/releases/latest"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"
exit
}
}
# Check whether Microsoft Edge as being a system component was removed by harmful tweakers
if (-not (Test-Path -Path "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe"))
@ -146,8 +161,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -155,8 +170,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -605,7 +620,7 @@ public static string GetString(uint strId)
# Detect Windows build version
switch ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber)
{
{($_ -lt 19045) -or ($_ -gt 19045)}
{$_ -ne 19045}
{
Write-Warning -Message $Localization.UnsupportedOSBuild
@ -613,13 +628,25 @@ public static string GetString(uint strId)
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements"
# Receive updates for other Microsoft products when you update Windows
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "")
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
# Check for updates
Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan
# Open the "Windows Update" page
Start-Process -FilePath "ms-settings:windowsupdate"
exit
}
"19045"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3803)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3996)
{
# Check whether Windows minor build version is 3803 minimum
# Check whether Windows minor build version is 3996 minimum
# https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -791,7 +818,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -5694,7 +5721,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -5806,7 +5833,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -5834,7 +5861,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -5869,7 +5896,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -5878,7 +5905,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -7732,7 +7759,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7772,7 +7799,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7812,7 +7839,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7852,7 +7879,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7892,7 +7919,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7932,7 +7959,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7970,12 +7997,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8004,7 +8031,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8033,7 +8060,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8062,7 +8089,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8091,7 +8118,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8120,7 +8147,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -10302,7 +10329,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -10328,7 +10355,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -10390,7 +10417,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -10427,7 +10454,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -10467,7 +10494,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -15718,7 +15745,7 @@ public static void PostMessage()
MeetNow -Show
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_10/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 10"
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 versions
Version: 22H2
Builds: 19045.3803+
Builds: 19045.3996+
Editions: Home/Pro/Enterprise
Architecture: x64

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v5.8.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2019.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 17763.5206+. Führen Sie Windows Update aus und versuchen Sie es erneut.
NonLatinUsernameWarning = PowerShell 5.1 kompiliert keinen Code, wenn der Benutzername nicht-lateinische Zeichen (einschließlich Emoji) enthält und in Kleinbuchstaben geschrieben ist. Bitte verwenden Sie PowerShell 7.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 17763.5329+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -9,7 +10,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports 64-bit Windows only.
UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2019.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 17763.5206+. Run Windows Update and try again.
NonLatinUsernameWarning = PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Please, use PowerShell 7.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 17763.5329+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -9,7 +10,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2019.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 17763.5206+. Ejecute Windows Update y vuelva a intentarlo.
NonLatinUsernameWarning = PowerShell 5.1 no compila código si el nombre de usuario contiene caracteres no latinos (incluidos los emoji) y está escrito en minúsculas. Por favor, utiliza PowerShell 7.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 17763.5329+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte le version Windows 10 Enterprise LTSC 2019.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 17763.5206+. Exécutez Windows Update et réessayez.
NonLatinUsernameWarning = PowerShell 5.1 ne compile pas le code si le nom d'utilisateur contient des caractères non latins (y compris emoji) et est écrit en minuscules. Veuillez utiliser PowerShell 7.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 17763.5329+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2019 kiadást.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 17763.5206+. Futtassa a Windows Update programot, és próbálja meg újra.
NonLatinUsernameWarning = A PowerShell 5.1 nem fordít kódot, ha a felhasználónév nem latin betűket tartalmaz (beleértve az emojikat is), és kisbetűvel van írva. Kérjük, használja a PowerShell 7-et.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 17763.5329+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -9,7 +10,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit.
UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2019.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 17763.5206+. Eseguire Windows Update e riprovare.
NonLatinUsernameWarning = PowerShell 5.1 non compila il codice se il nome utente contiene caratteri non latini (compresi gli emoji) ed è scritto in minuscolo. Si prega di utilizzare PowerShell 7.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 17763.5329+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -9,7 +10,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows.
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2019.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 17763.5206+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
NonLatinUsernameWarning = PowerShell 5.1 nie kompiluje kodu, jeśli nazwa użytkownika zawiera znaki spoza alfabetu łacińskiego (w tym emoji) i jest zapisana małymi literami. Prosimy o używanie PowerShell 7.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 17763.5329+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits.
UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2019.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 17763.5206+. Execute o Windows Update e tente novamente.
NonLatinUsernameWarning = O PowerShell 5.1 não compilará o código se o nome de usuário contiver caracteres não latinos (inclusive emoji) e estiver escrito em letras minúsculas. Por favor, use o PowerShell 7.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 17763.5329+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows.
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2019.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 17763.5206+. Запустите обновление Windows и попробуйте заново.
NonLatinUsernameWarning = PowerShell 5.1 не компилирует код, если имя пользователя содержит нелатинские символы (включая эмодзи) и написано со строчной буквы. Пожалуйста, используйте PowerShell 7.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 17763.5329+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2019'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 17763.5206+. Windows Update'i çalıştırın ve tekrar deneyin.
NonLatinUsernameWarning = PowerShell 5.1, kullanıcı adı Latin olmayan karakterler içeriyorsa (emoji dahil) ve küçük harfle yazılmışsa kodu derlemez. Lütfen PowerShell 7 kullanın.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 17763.5329+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -9,7 +10,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows.
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2019.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 17763.5206+. Запустіть Windows Update і повторіть спробу.
NonLatinUsernameWarning = PowerShell 5.1 не компілює код, якщо ім'я користувача містить нелатинські символи (включно з емодзі) і написане з малої літери. Будь ласка, використовуйте PowerShell 7.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 17763.5329+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持64位Windows
UnsupportedOSBuild = 该脚本支持Windows 10版本Enterprise LTSC 2019
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 17763.5206+运行Windows Update并再次尝试
NonLatinUsernameWarning = 如果用户名包含非拉丁字符包括表情符号且以小写字母书写PowerShell 5.1 将无法编译代码请使用 PowerShell 7
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 17763.5329+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -9,7 +10,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

82
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.8.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 version
Version: 1809
Build: 17763.5206+
Build: 17763.5329+
Edition: Enterprise LTSC
Architecture: x64
@ -85,9 +85,24 @@ public static string GetString(uint strId)
"@
}
if (-not ("WinAPI.GetStr" -as [type]))
{
try
{
Add-Type @Signature
}
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message $Localization.NonLatinUsernameWarning
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/PowerShell/PowerShell/releases/latest"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"
exit
}
}
# Detect Windows bitness
if (-not [System.Environment]::Is64BitOperatingSystem)
@ -501,13 +516,22 @@ public static string GetString(uint strId)
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements"
# Receive updates for other Microsoft products when you update Windows
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "")
# Check for updates
Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan
# Open the "Windows Update" page
Start-Process -FilePath "ms-settings:windowsupdate"
exit
}
"17763"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 5206)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 5329)
{
# Check whether Windows minor build version is 5206 minimum
# Check whether Windows minor build version is 5329 minimum
# https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -676,7 +700,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -4342,7 +4366,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -4451,7 +4475,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -4476,7 +4500,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -4511,7 +4535,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -4520,7 +4544,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -6358,7 +6382,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6398,7 +6422,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6438,7 +6462,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6478,7 +6502,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6518,7 +6542,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6558,7 +6582,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6596,12 +6620,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -6630,7 +6654,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -6659,7 +6683,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -6688,7 +6712,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -6717,7 +6741,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -6746,7 +6770,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8535,7 +8559,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -8561,7 +8585,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -8623,7 +8647,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -8660,7 +8684,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -8700,7 +8724,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -12013,7 +12037,7 @@ public static void PostMessage()
gpupdate /force
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 10 LTSC 2019"
Version: v5.8.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 version
Version: 1809
Build: 17763.5206+
Build: 17763.5329+
Edition: Enterprise LTSC 2019
Architecture: x64

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2021.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19044.3803+. Führen Sie Windows Update aus und versuchen Sie es erneut.
NonLatinUsernameWarning = PowerShell 5.1 kompiliert keinen Code, wenn der Benutzername nicht-lateinische Zeichen (einschließlich Emoji) enthält und in Kleinbuchstaben geschrieben ist. Bitte verwenden Sie PowerShell 7.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19044.3930+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -9,7 +10,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports 64-bit Windows only.
UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2021.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19044.3803+. Run Windows Update and try again.
NonLatinUsernameWarning = PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Please, use PowerShell 7.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19044.3930+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -9,7 +10,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2021.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19044.3803+. Ejecute Windows Update y vuelva a intentarlo.
NonLatinUsernameWarning = PowerShell 5.1 no compila código si el nombre de usuario contiene caracteres no latinos (incluidos los emoji) y está escrito en minúsculas. Por favor, utiliza PowerShell 7.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19044.3930+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 Enterprise LTSC 2021.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19044.3803+. Exécutez Windows Update et réessayez.
NonLatinUsernameWarning = PowerShell 5.1 ne compile pas le code si le nom d'utilisateur contient des caractères non latins (y compris emoji) et est écrit en minuscules. Veuillez utiliser PowerShell 7.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19044.3930+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2021.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19044.3803+. Futtassa a Windows Update programot, és próbálja meg újra.
NonLatinUsernameWarning = A PowerShell 5.1 nem fordít kódot, ha a felhasználónév nem latin betűket tartalmaz (beleértve az emojikat is), és kisbetűvel van írva. Kérjük, használja a PowerShell 7-et.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19044.3930+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -9,7 +10,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit.
UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2021.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19044.3803+. Eseguire Windows Update e riprovare.
NonLatinUsernameWarning = PowerShell 5.1 non compila il codice se il nome utente contiene caratteri non latini (compresi gli emoji) ed è scritto in minuscolo. Si prega di utilizzare PowerShell 7.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19044.3930+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -9,7 +10,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows.
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2021.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19044.3803+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
NonLatinUsernameWarning = PowerShell 5.1 nie kompiluje kodu, jeśli nazwa użytkownika zawiera znaki spoza alfabetu łacińskiego (w tym emoji) i jest zapisana małymi literami. Prosimy o używanie PowerShell 7.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19044.3930+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits.
UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2021.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19044.3803+. Execute o Windows Update e tente novamente.
NonLatinUsernameWarning = O PowerShell 5.1 não compilará o código se o nome de usuário contiver caracteres não latinos (inclusive emoji) e estiver escrito em letras minúsculas. Por favor, use o PowerShell 7.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19044.3930+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows.
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2021.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19044.3803+. Запустите обновление Windows и попробуйте заново.
NonLatinUsernameWarning = PowerShell 5.1 не компилирует код, если имя пользователя содержит нелатинские символы (включая эмодзи) и написано со строчной буквы. Пожалуйста, используйте PowerShell 7.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19044.3930+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2021'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19044.3803+. Windows Update'i çalıştırın ve tekrar deneyin.
NonLatinUsernameWarning = PowerShell 5.1, kullanıcı adı Latin olmayan karakterler içeriyorsa (emoji dahil) ve küçük harfle yazılmışsa kodu derlemez. Lütfen PowerShell 7 kullanın.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19044.3930+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -9,7 +10,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows.
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2021.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19044.3803+. Запустіть Windows Update і повторіть спробу.
NonLatinUsernameWarning = PowerShell 5.1 не компілює код, якщо ім'я користувача містить нелатинські символи (включно з емодзі) і написане з малої літери. Будь ласка, використовуйте PowerShell 7.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19044.3930+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -9,7 +10,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

5
src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1

@ -1,7 +1,8 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持64位Windows
UnsupportedOSBuild = 该脚本支持Windows 10 Enterprise LTSC 2021
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19044.3803+运行Windows Update并再次尝试
NonLatinUsernameWarning = 如果用户名包含非拉丁字符包括表情符号且以小写字母书写PowerShell 5.1 将无法编译代码请使用 PowerShell 7
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19044.3930+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -9,7 +10,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

82
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 version
Version: 21H2
Build: 19044.3803+
Build: 19044.3930+
Edition: Enterprise LTSC 2021
Architecture: x64
@ -85,9 +85,24 @@ public static string GetString(uint strId)
"@
}
if (-not ("WinAPI.GetStr" -as [type]))
{
try
{
Add-Type @Signature
}
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message $Localization.NonLatinUsernameWarning
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/PowerShell/PowerShell/releases/latest"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"
exit
}
}
# Detect Windows bitness
if (-not [System.Environment]::Is64BitOperatingSystem)
@ -501,13 +516,22 @@ public static string GetString(uint strId)
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements"
# Receive updates for other Microsoft products when you update Windows
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "")
# Check for updates
Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan
# Open the "Windows Update" page
Start-Process -FilePath "ms-settings:windowsupdate"
exit
}
"19044"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3803)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3930)
{
# Check whether Windows minor build version is 3803 minimum
# Check whether Windows minor build version is 3930 minimum
# https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -676,7 +700,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -4714,7 +4738,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -4823,7 +4847,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -4848,7 +4872,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -4883,7 +4907,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -4892,7 +4916,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -6746,7 +6770,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6786,7 +6810,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6826,7 +6850,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6866,7 +6890,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6906,7 +6930,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6946,7 +6970,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -6984,12 +7008,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7018,7 +7042,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7047,7 +7071,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7076,7 +7100,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7105,7 +7129,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7134,7 +7158,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -9162,7 +9186,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9188,7 +9212,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -9250,7 +9274,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9287,7 +9311,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -9327,7 +9351,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -13185,7 +13209,7 @@ public static void PostMessage()
gpupdate /force
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 10 LTSC 2021"
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 version
Version: 21H2
Build: 19044.3803+
Build: 19044.3930+
Edition: Enterprise LTSC 2021
Architecture: x64

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur 64-Bit-Windows.
UnsupportedOSBuild = Das Skript unterstützt Windows 10 22H2.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3803+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unterstützter Builds: 19045.3996+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -9,7 +9,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports 64-bit Windows only.
UnsupportedOSBuild = The script supports Windows 10 22H2.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3803+. Run Windows Update and try again.
UpdateWarning = Your Windows 10 build: {0}.{1}. Supported builds: 19045.3996+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -9,7 +9,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 22H2.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3803+. Ejecute Windows Update y vuelva a intentarlo.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 19045.3996+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3803+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3996+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verzióját.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3803+. Futtassa a Windows Update programot, és próbálja meg újra.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3996+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -9,7 +9,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows a 64 bit.
UnsupportedOSBuild = Lo script supporta Windows 10 22H2.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3803+. Eseguire Windows Update e riprovare.
UpdateWarning = La tua build di Windows 10 {0}.{1} non è supportata. Build supportate: 19045.3996+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -9,7 +9,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko 64-bitowe systemy Windows.
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 22H2.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3803+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UpdateWarning = Twoja wersja systemu Windows 10: {0}.{1}. Obsługiwane kompilacje: 19045.3996+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O guião suporta apenas Windows de 64 bits.
UnsupportedOSBuild = O script suporta versões Windows 10 22H2.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3803+. Execute o Windows Update e tente novamente.
UpdateWarning = La tua build di Windows 10: {0}.{1}. Build suportadas: 19045.3996+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только 64-битную версию Windows.
UnsupportedOSBuild = Скрипт поддерживает Windows 10 22H2.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3803+. Запустите обновление Windows и попробуйте заново.
UpdateWarning = Ваш билд Windows 10: {0}.{1}. Поддерживаемые сборки: 19045.3996+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3803+. Windows Update'i çalıştırın ve tekrar deneyin.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3996+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -9,7 +9,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки 64-розрядну версію Windows.
UnsupportedOSBuild = Скрипт підтримує Windows 10 22H2.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3803+. Запустіть Windows Update і повторіть спробу.
UpdateWarning = Ваш білд Windows 10: {0}.{1}. Підтримувані збірки: 19045.3996+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -9,7 +9,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持64位Windows
UnsupportedOSBuild = 该脚本支持Windows 10版本22H2和更高版本
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19045.3803+运行Windows Update并再次尝试
UpdateWarning = 您的Windows 10构建: {0}.{1}支持的构建: 19045.3996+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -9,7 +9,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

80
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 versions
Version: 22H2
Builds: 19045.3803+
Builds: 19045.3996+
Editions: Home/Pro/Enterprise
Architecture: x64
@ -142,8 +142,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -151,8 +151,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -606,7 +606,7 @@ public static string GetString(uint strId)
# Detect Windows build version
switch ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber)
{
{($_ -lt 19045) -or ($_ -gt 19045)}
{$_ -ne 19045}
{
Write-Warning -Message $Localization.UnsupportedOSBuild
@ -614,13 +614,25 @@ public static string GetString(uint strId)
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements"
# Receive updates for other Microsoft products when you update Windows
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "")
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
# Check for updates
Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan
# Open the "Windows Update" page
Start-Process -FilePath "ms-settings:windowsupdate"
exit
}
"19045"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3803)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3996)
{
# Check whether Windows minor build version is 3803 minimum
# Check whether Windows minor build version is 3996 minimum
# https://learn.microsoft.com/en-us/windows/release-health/release-information#windows-10-current-versions-by-servicing-option
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -792,7 +804,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -5698,7 +5710,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -5810,7 +5822,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -5838,7 +5850,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -5873,7 +5885,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -5882,7 +5894,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -7736,7 +7748,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7776,7 +7788,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7816,7 +7828,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7856,7 +7868,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7896,7 +7908,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7936,7 +7948,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7974,12 +7986,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8008,7 +8020,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8037,7 +8049,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8066,7 +8078,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8095,7 +8107,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -8124,7 +8136,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -10306,7 +10318,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -10332,7 +10344,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -10394,7 +10406,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -10431,7 +10443,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -10471,7 +10483,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -15742,7 +15754,7 @@ public static void PostMessage()
MeetNow -Show
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 10 (PowerShell 7)"
Version: v5.18.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 versions
Version: 22H2
Builds: 19045.3803+
Builds: 19045.3996+
Editions: Home/Pro/Enterprise
Architecture: x64

2
src/Sophia_Script_for_Windows_11/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

5
src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Das Skript unterstützt Windows 11 23H2+.
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22631.2861+. Führen Sie Windows Update aus und versuchen Sie es erneut.
NonLatinUsernameWarning = PowerShell 5.1 kompiliert keinen Code, wenn der Benutzername nicht-lateinische Zeichen (einschließlich Emoji) enthält und in Kleinbuchstaben geschrieben ist. Bitte verwenden Sie PowerShell 7.
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22631.3085+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -8,7 +9,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

5
src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = The script supports Windows 11 23H2+.
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22631.2861+. Run Windows Update and try again.
NonLatinUsernameWarning = PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Please, use PowerShell 7.
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22631.3085+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -8,7 +9,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

5
src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = El script es compatible con Windows 11 23H2+.
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22631.2861+. Ejecute Windows Update y vuelva a intentarlo.
NonLatinUsernameWarning = PowerShell 5.1 no compila código si el nombre de usuario contiene caracteres no latinos (incluidos los emoji) y está escrito en minúsculas. Por favor, utiliza PowerShell 7.
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22631.3085+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

5
src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Le script prend en charge Windows 11 23H2+.
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22631.2861+. Exécutez Windows Update et réessayez.
NonLatinUsernameWarning = PowerShell 5.1 ne compile pas le code si le nom d'utilisateur contient des caractères non latins (y compris emoji) et est écrit en minuscules. Veuillez utiliser PowerShell 7.
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22631.3085+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

5
src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = A szkript támogatja a Windows 11 23H2+ rendszert.
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22631.2861+. Futtassa a Windows Update programot, és próbálja meg újra.
NonLatinUsernameWarning = A PowerShell 5.1 nem fordít kódot, ha a felhasználónév nem latin betűket tartalmaz (beleértve az emojikat is), és kisbetűvel van írva. Kérjük, használja a PowerShell 7-et.
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22631.3085+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -8,7 +9,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

5
src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Lo script supporta Windows 11 23H2+.
UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22631.2861+. Eseguire Windows Update e riprovare.
NonLatinUsernameWarning = PowerShell 5.1 non compila il codice se il nome utente contiene caratteri non latini (compresi gli emoji) ed è scritto in minuscolo. Si prega di utilizzare PowerShell 7.
UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22631.3085+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -8,7 +9,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

5
src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Skrypt obsługuje system Windows 11 23H2+.
UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22631.2861+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
NonLatinUsernameWarning = PowerShell 5.1 nie kompiluje kodu, jeśli nazwa użytkownika zawiera znaki spoza alfabetu łacińskiego (w tym emoji) i jest zapisana małymi literami. Prosimy o używanie PowerShell 7.
UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22631.3085+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

5
src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = O script suporta Windows 11 23H2+.
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22631.2861+. Execute o Windows Update e tente novamente.
NonLatinUsernameWarning = O PowerShell 5.1 não compilará o código se o nome de usuário contiver caracteres não latinos (inclusive emoji) e estiver escrito em letras minúsculas. Por favor, use o PowerShell 7.
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22631.3085+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

5
src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает Windows 11 23H2+.
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22631.2861+. Запустите обновление Windows и попробуйте заново.
NonLatinUsernameWarning = PowerShell 5.1 не компилирует код, если имя пользователя содержит нелатинские символы (включая эмодзи) и написано со строчной буквы. Пожалуйста, используйте PowerShell 7.
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22631.3085+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

5
src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Komut dosyası Windows 11 23H2+' destekler.
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22631.2861+. Windows Update'i çalıştırın ve tekrar deneyin.
NonLatinUsernameWarning = PowerShell 5.1, kullanıcı adı Latin olmayan karakterler içeriyorsa (emoji dahil) ve küçük harfle yazılmışsa kodu derlemez. Lütfen PowerShell 7 kullanın.
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22631.3085+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -8,7 +9,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

5
src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує Windows 11 23H2+.
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22631.2861+. Запустіть Windows Update і повторіть спробу.
NonLatinUsernameWarning = PowerShell 5.1 не компілює код, якщо ім'я користувача містить нелатинські символи (включно з емодзі) і написане з малої літери. Будь ласка, використовуйте PowerShell 7.
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22631.3085+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -8,7 +9,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

5
src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1

@ -1,6 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 脚本支持Windows 11 23H2+
UpdateWarning = 您的Windows 11构建: {0}.{1}支持的构建: 22631.2861+运行Windows Update并再次尝试
NonLatinUsernameWarning = 如果用户名包含非拉丁字符包括表情符号且以小写字母书写PowerShell 5.1 将无法编译代码请使用 PowerShell 7
UpdateWarning = 您的Windows 11构建: {0}.{1}支持的构建: 22631.3085+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -8,7 +9,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

91
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 11 versions
Version: 23H2+
Builds: 22631.2861+
Builds: 22631.3085+
Editions: Home/Pro/Enterprise
.LINK GitHub
@ -84,9 +84,24 @@ public static string GetString(uint strId)
"@
}
if (-not ("WinAPI.GetStr" -as [type]))
{
try
{
Add-Type @Signature
}
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message $Localization.NonLatinUsernameWarning
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/PowerShell/PowerShell/releases/latest"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest"
exit
}
}
# Check whether Microsoft Edge as being a system component was removed by harmful tweakers
if (-not (Test-Path -Path "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe"))
@ -145,8 +160,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -154,8 +169,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -583,9 +598,7 @@ public static string GetString(uint strId)
{
{$_ -lt 22631}
{
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Write-Warning -Message $Localization.UnsupportedOSBuild
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
@ -607,9 +620,9 @@ public static string GetString(uint strId)
}
"22631"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2861)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3085)
{
# Check whether Windows minor build version is 2861 minimum
# Check whether Windows minor build version is 3085 minimum
# https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information#windows-11-current-versions
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -781,7 +794,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -893,8 +906,6 @@ public static string GetString(uint strId)
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
# Display a warning message about whether a user has customized the preset file
if ($Warning)
@ -5031,7 +5042,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -5143,7 +5154,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -5171,7 +5182,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -5206,7 +5217,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -5215,7 +5226,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -7270,7 +7281,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7310,7 +7321,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7350,7 +7361,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7390,7 +7401,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7430,7 +7441,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7470,7 +7481,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7508,12 +7519,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7542,7 +7553,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7571,7 +7582,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7600,7 +7611,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7629,7 +7640,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7658,7 +7669,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -9665,7 +9676,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9691,7 +9702,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -9753,7 +9764,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9790,7 +9801,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -9830,7 +9841,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -10450,7 +10461,7 @@ FEA494190BF3446DCC8C8AAF62BA01F0BFB18E15503C27558DB70C48EFB0AEA0B600F985C904E9F2
2EEEF7B09850D29B2F412DEF3D0BD9194CAE8113B3B38085C77C238CB8D15BF6D6AB42C193F4E2F27F8BEDABB2D6ADE9E486B6AFAFD8D5DBE3B7D7305790F96ECDCC2DD016C5B9B200CB72E6CF54D71
F69A01CDE4E3A0A4C5A03627DECD491F215C1420EB07AB8FD2763FCFF5211EB964C82E69DA208BDFA76306D54642B117DCB9A92927CE2E633338D4EEA63B571349B8DA1D4B5523C4CA10308769E4F46
1ADD16DD5DFDB0E705187593DEF5CCCF659E48366462CC21D7930E1064234157A7A08E9C90927A37C5CF23D54C755002E4E657BB6E70D9B4BE7C468C19D6969FAE138EBF2C20DD3F5A0BC4C0E97D5BF
DB8744A21396C44549286117BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932
DB8744A21396C44549308517BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932
6CA43526CFAEDF9922EAC3204FEB84AAED781EE5516FA5B4DCAB85DB5FF33CEC454DAA375BDA5EEA7C871C310AEDC5BD6B220B59B901D377E22FFFE95FEDA28CE2CE33CAEB8541EE05E1B5650D776C4
B2A246DB4613E2CC5D96A44D24AE662D848A7C9E3E922AFF0632B7B40505402956FABC5C3AAB55EEE29085046C127E8776CEFC1690B76EE99371AF9B1D7EF6F79E78325DD3BD8377E9B73B936C6F261
1D0A1223A4D7C6CF3037922DD0686A701FF86761993F294D26E13A7BB8B1C61ACAF38D50334A88DABB3FA412B4FC79F6FBFD0D0A92301484FF1BD1CF3DC67780E4562E05CCA329CABA7CB2B77D9A707
@ -14571,7 +14582,7 @@ function OpenWindowsTerminalAdminContext
}
}
# Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-latin characters will have "?" instead of titles
# Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-Latin characters will have "?" instead of titles
ConvertTo-Json -InputObject $Terminal -Depth 4 | Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding UTF8 -Force
}
}
@ -14879,7 +14890,7 @@ public static void PostMessage()
gpupdate /force
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 11"
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 11 versions
Version: 23H2+
Builds: 22631.2861+
Builds: 22631.3085+
Editions: Home/Pro/Enterprise
.NOTES

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Das Skript unterstützt Windows 11 23H2+.
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22631.2861+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22631.3085+. Führen Sie Windows Update aus und versuchen Sie es erneut.
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt.
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte.
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen.
@ -8,7 +8,7 @@ PowerShellx86Warning = Sie versuchen ein Skript über Power
UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}.
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert.
TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu.
bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen.
RebootPending = Der PC wartet darauf, neu gestartet zu werden.
UnsupportedRelease = Neue Version gefunden.
KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = The script supports Windows 11 23H2+.
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22631.2861+. Run Windows Update and try again.
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22631.3085+. Run Windows Update and try again.
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode.
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights.
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version.
@ -8,7 +8,7 @@ PowerShellx86Warning = You're trying to run script via Powe
UnsupportedHost = The script doesn't support running via {0}.
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor.
TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows.
bin = There are no files in the bin folder. Please, re-download the archive.
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = El script es compatible con Windows 11 23H2+.
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22631.2861+. Ejecute Windows Update y vuelva a intentarlo.
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22631.3085+. Ejecute Windows Update y vuelva a intentarlo.
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado.
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador.
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Está intentando ejecutar el script
UnsupportedHost = El script no es compatible con la ejecución a través de {0}.
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker.
TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows.
bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo.
RebootPending = El PC está esperando a ser reiniciado.
UnsupportedRelease = Una nueva versión encontrada.
KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Le script prend en charge Windows 11 23H2+.
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22631.2861+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22631.3085+. Exécutez Windows Update et réessayez.
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité.
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur.
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Vous essayez d'exécuter le script v
UnsupportedHost = Le script ne supporte pas l'exécution via {0}.
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker.
TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas , réinstallez Windows.
bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive.
RebootPending = Le PC attend d'être redémarré.
UnsupportedRelease = Nouvelle version trouvée.
KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = A szkript támogatja a Windows 11 23H2+ rendszert.
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22631.2861+. Futtassa a Windows Update programot, és próbálja meg újra.
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22631.3085+. Futtassa a Windows Update programot, és próbálja meg újra.
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut.
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal.
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban.
@ -8,7 +8,7 @@ PowerShellx86Warning = A PowerShell (x86) segítségével p
UnsupportedHost = A szkript nem támogatja a {0} futtatását.
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg.
TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst.
bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot.
RebootPending = A számítógép újraindításra vár.
UnsupportedRelease = Új verzió érhető el.
KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Lo script supporta Windows 11 23H2+.
UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22631.2861+. Eseguire Windows Update e riprovare.
UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22631.3085+. Eseguire Windows Update e riprovare.
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata.
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore.
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata.
@ -8,7 +8,7 @@ PowerShellx86Warning = Si sta cercando di eseguire lo scrip
UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker.
TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows.
bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio.
RebootPending = Il PC è in attesa di essere riavviato.
UnsupportedRelease = Nuova versione trovata.
KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Skrypt obsługuje system Windows 11 23H2+.
UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22631.2861+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22631.3085+. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka.
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora.
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Próbujesz uruchomić skrypt przez P
UnsupportedHost = Skrypt nie może być uruchamiany w {0}.
Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker.
TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows.
bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie.
RebootPending = Komputer oczekuje na ponowne uruchomienie.
UnsupportedRelease = Znaleziono nową wersję.
KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = O script suporta Windows 11 23H2+.
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22631.2861+. Execute o Windows Update e tente novamente.
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22631.3085+. Execute o Windows Update e tente novamente.
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada.
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador.
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Você está tentando executar o scri
UnsupportedHost = O guião não suporta a execução através do {0}.
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker.
TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. por precaução, reinstale o Windows.
bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo.
RebootPending = O PC está esperando para ser reiniciado.
UnsupportedRelease = Nova versão encontrada.
KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает Windows 11 23H2+.
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22631.2861+. Запустите обновление Windows и попробуйте заново.
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22631.3085+. Запустите обновление Windows и попробуйте заново.
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме.
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора.
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Вы пытаетесь запуст
UnsupportedHost = Скрипт не поддерживает работу через {0}.
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном.
TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows.
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Komut dosyası Windows 11 23H2+' destekler.
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22631.2861+. Windows Update'i çalıştırın ve tekrar deneyin.
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22631.3085+. Windows Update'i çalıştırın ve tekrar deneyin.
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu.
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok.
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın.
@ -8,7 +8,7 @@ PowerShellx86Warning = Komut dosyasını PowerShell (x86)
UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor.
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı.
TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin.
bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin.
RebootPending = PC yeniden başlatılmayı bekliyor.
UnsupportedRelease = Yeni sürüm bulundu.
KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує Windows 11 23H2+.
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22631.2861+. Запустіть Windows Update і повторіть спробу.
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22631.3085+. Запустіть Windows Update і повторіть спробу.
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі.
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора.
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell.
@ -8,7 +8,7 @@ PowerShellx86Warning = Ви намагаєтеся запу
UnsupportedHost = Скрипт не підтримує роботу через {0}.
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388.
TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows.
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 脚本支持Windows 11 23H2+
UpdateWarning = 您的Windows 11构建: {0}.{1}支持的构建: 22631.2861+运行Windows Update并再次尝试
UpdateWarning = 您的Windows 11构建: {0}.{1}支持的构建: 22631.3085+运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -8,7 +8,7 @@ PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中
UnsupportedHost = 该脚本不支持通过{0}运行
Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的
TweakerWarning = Windows的稳定性可能已被{0}所破坏预防性地重新安装整个操作系统
bin = bin文件夹中没有文件请重新下载该档案
Bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案

74
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -13,7 +13,7 @@
.NOTES
Supported Windows 11 versions
Version: 23H2+
Builds: 22631.2861+
Builds: 22631.3085+
Editions: Home/Pro/Enterprise
.LINK GitHub
@ -141,8 +141,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -150,8 +150,8 @@ public static string GetString(uint strId)
{
Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Edge")
"https://t.me/sophia_chat"
"https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit
}
@ -584,9 +584,7 @@ public static string GetString(uint strId)
{
{$_ -lt 22631}
{
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR)
Write-Warning -Message $Localization.UnsupportedOSBuild
Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
@ -608,9 +606,9 @@ public static string GetString(uint strId)
}
"22631"
{
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2861)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3085)
{
# Check whether Windows minor build version is 2861 minimum
# Check whether Windows minor build version is 3085 minimum
# https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information#windows-11-current-versions
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@ -782,7 +780,7 @@ public static string GetString(uint strId)
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
# Save all opened folders in order to restore them after File Explorer restart
@ -5032,7 +5030,7 @@ function TempFolder
return
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:SystemDrive\Temp")
{
return
@ -5144,7 +5142,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
"Default"
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
if ((Get-Item -Path $env:TEMP).FullName -eq "$env:LOCALAPPDATA\Temp")
{
return
@ -5172,7 +5170,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
}
# Removing folders
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Ignore
if ((Get-ChildItem -Path $env:TEMP -Force -ErrorAction Ignore | Measure-Object).Count -ne 0)
@ -5207,7 +5205,7 @@ public static bool MarkFileDelete (string sourcefile)
try
{
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Remove-Item -Path $((Get-Item -Path $env:TEMP).FullName) -Recurse -Force -ErrorAction Stop
}
catch
@ -5216,7 +5214,7 @@ public static bool MarkFileDelete (string sourcefile)
Get-ChildItem -Path $env:TEMP -Recurse -Force | ForEach-Object -Process {[WinAPI.DeleteFiles]::MarkFileDelete($_.FullName)}
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$TempFolder = (Get-Item -Path $env:TEMP).FullName
$TempFolderCleanupTask = @"
Remove-Item -Path "$TempFolder" -Recurse -Force
@ -7271,7 +7269,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7311,7 +7309,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7351,7 +7349,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7391,7 +7389,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7431,7 +7429,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7471,7 +7469,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu $Browse -Default 1 -AddSkip
switch ($Choice)
{
@ -7509,12 +7507,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Extract the localized "Desktop" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21790), $CurrentUserFolderLocation) -Verbose
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21769), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7543,7 +7541,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7572,7 +7570,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7601,7 +7599,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7630,7 +7628,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -7659,7 +7657,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu $Yes -Default 1 -AddSkip
switch ($Choice)
{
@ -9666,7 +9664,7 @@ function InstallVCRedist
winget install --id=Microsoft.VCRedist.2015+.x86 --exact --force --accept-source-agreements
winget install --id=Microsoft.VCRedist.2015+.x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9692,7 +9690,7 @@ function InstallVCRedist
Start-Process -FilePath "$DownloadsFolder\VC_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\VC_redist.x86.exe",
"$DownloadsFolder\VC_redist.x64.exe",
@ -9754,7 +9752,7 @@ function InstallDotNetRuntimes
# .NET Desktop Runtime 7 x64
winget install --id=Microsoft.DotNet.DesktopRuntime.7 --architecture x64 --exact --force --accept-source-agreements
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\WinGet" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
}
else
@ -9791,7 +9789,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -9831,7 +9829,7 @@ function InstallDotNetRuntimes
Start-Process -FilePath "$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe" -ArgumentList "/install /passive /norestart" -Wait
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
$Paths = @(
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x86.exe",
"$DownloadsFolder\dotnet-runtime-$LatestRelease-win-x64.exe",
@ -10451,7 +10449,7 @@ FEA494190BF3446DCC8C8AAF62BA01F0BFB18E15503C27558DB70C48EFB0AEA0B600F985C904E9F2
2EEEF7B09850D29B2F412DEF3D0BD9194CAE8113B3B38085C77C238CB8D15BF6D6AB42C193F4E2F27F8BEDABB2D6ADE9E486B6AFAFD8D5DBE3B7D7305790F96ECDCC2DD016C5B9B200CB72E6CF54D71
F69A01CDE4E3A0A4C5A03627DECD491F215C1420EB07AB8FD2763FCFF5211EB964C82E69DA208BDFA76306D54642B117DCB9A92927CE2E633338D4EEA63B571349B8DA1D4B5523C4CA10308769E4F46
1ADD16DD5DFDB0E705187593DEF5CCCF659E48366462CC21D7930E1064234157A7A08E9C90927A37C5CF23D54C755002E4E657BB6E70D9B4BE7C468C19D6969FAE138EBF2C20DD3F5A0BC4C0E97D5BF
DB8744A21396C44549286117BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932
DB8744A21396C44549308517BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932
6CA43526CFAEDF9922EAC3204FEB84AAED781EE5516FA5B4DCAB85DB5FF33CEC454DAA375BDA5EEA7C871C310AEDC5BD6B220B59B901D377E22FFFE95FEDA28CE2CE33CAEB8541EE05E1B5650D776C4
B2A246DB4613E2CC5D96A44D24AE662D848A7C9E3E922AFF0632B7B40505402956FABC5C3AAB55EEE29085046C127E8776CEFC1690B76EE99371AF9B1D7EF6F79E78325DD3BD8377E9B73B936C6F261
1D0A1223A4D7C6CF3037922DD0686A701FF86761993F294D26E13A7BB8B1C61ACAF38D50334A88DABB3FA412B4FC79F6FBFD0D0A92301484FF1BD1CF3DC67780E4562E05CCA329CABA7CB2B77D9A707
@ -14592,7 +14590,7 @@ function OpenWindowsTerminalAdminContext
}
}
# Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-latin characters will have "?" instead of titles
# Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-Latin characters will have "?" instead of titles
ConvertTo-Json -InputObject $Terminal -Depth 4 | Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding utf8 -Force
}
}
@ -14900,7 +14898,7 @@ public static void PostMessage()
gpupdate /force
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
Stop-Process -Name explorer -Force

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)"
Version: v6.6.0
Date: 26.12.2023
Date: 02.02.2024
Copyright (c) 20142024 farag
Copyright (c) 20192024 farag & Inestic
@ -27,7 +27,7 @@
.NOTES
Supported Windows 11 versions
Version: 23H2+
Builds: 22631.2861+
Builds: 22631.3085+
Editions: Home/Pro/Enterprise
.NOTES

Loading…
Cancel
Save