Browse Source

6.5.4 —16.07.2023

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

4
CHANGELOG.md

@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 5.17.4 | 6.5.4 — 16.07.2023
* Improved interective menu UX.
## 5.17.3 | 6.5.3 — 11.07.2023
* Replaced interactive menus overall within a custom `Show-Menu` function;

12
sophia_script_versions.json

@ -1,9 +1,9 @@
{
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.3",
"Sophia_Script_Windows_10_PowerShell_7": "5.17.3",
"Sophia_Script_Windows_10_LTSC2019": "5.7.3",
"Sophia_Script_Windows_10_LTSC2021": "5.17.3",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.3",
"Sophia_Script_Windows_11_PowerShell_7": "6.5.3",
"Sophia_Script_Windows_10_PowerShell_5_1": "5.17.4",
"Sophia_Script_Windows_10_PowerShell_7": "5.17.4",
"Sophia_Script_Windows_10_LTSC2019": "5.7.4",
"Sophia_Script_Windows_10_LTSC2021": "5.17.4",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.5.4",
"Sophia_Script_Windows_11_PowerShell_7": "6.5.4",
"Sophia_Script_Wrapper": "2.6.9"
}

6
src/Sophia_Script_for_Windows_10/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -11,6 +11,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -11,6 +11,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -11,6 +11,7 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.

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

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2.
UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 19045.3208+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -11,6 +11,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -11,6 +11,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -11,6 +11,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -11,6 +11,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası, Windows 10 22H2 sürümlerini destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -11,6 +11,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.17.3'
ModuleVersion = '5.17.4'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

148
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -844,9 +844,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -867,10 +864,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -884,10 +877,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -952,8 +945,7 @@ public static string GetString(uint strId)
$Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "")
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Script:Wait = [WinAPI.GetStr]::GetString(33252)
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
@ -968,7 +960,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -988,10 +980,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -7294,7 +7286,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7307,10 +7299,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7322,7 +7314,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7335,10 +7327,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7350,7 +7342,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7363,10 +7355,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7378,7 +7370,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7391,10 +7383,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7406,7 +7398,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7419,10 +7411,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7434,7 +7426,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7447,10 +7439,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -7464,7 +7456,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7489,10 +7481,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7504,7 +7496,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7529,10 +7521,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7544,7 +7536,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7569,10 +7561,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7584,7 +7576,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7609,10 +7601,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7624,7 +7616,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7649,10 +7641,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7664,7 +7656,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7689,10 +7681,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -7707,7 +7699,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7720,10 +7712,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7736,7 +7728,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7749,10 +7741,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7765,7 +7757,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7778,10 +7770,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7794,7 +7786,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7807,10 +7799,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7823,7 +7815,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7836,10 +7828,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7852,7 +7844,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7865,10 +7857,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -12150,14 +12142,16 @@ function Set-AppGraphicsPerformance
{
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {($_.AdapterDACType -ne "Internal") -and ($null -ne $_.AdapterDACType)})
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.GraphicsPerformanceTitle -Verbose
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
$Yes
$Browse
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
@ -12178,15 +12172,15 @@ function Set-AppGraphicsPerformance
New-ItemProperty -Path HKCU:\Software\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}

6
src/Sophia_Script_for_Windows_10/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10"
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -70,7 +70,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

6
src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.7.3
Date: 11.07.2023
Version: v5.7.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -11,6 +11,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -11,6 +11,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits.
UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2019.
UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 4645 y superior. Ejecute Windows Update y vuelva a intentarlo.
UpdateWarning = Su build de Windows 10: {0}.{1}. Compilaciones compatibles: 17763.4645+. 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.
@ -11,8 +11,9 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = Microsoft Defender dañado o eliminado del sistema operativo.
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado.
ScheduledTasks = Tareas programadas

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

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte le version Windows 10 Enterprise LTSC 2019.
UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 17763.4645+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 17763.4645+. 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.
@ -11,6 +11,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -11,6 +11,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -11,6 +11,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -11,6 +11,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -11,6 +11,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Bu betik sadece Windows 10 Enterprise LTSC 2019.
UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2019'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 17763.4645+. 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.
@ -11,6 +11,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -11,6 +11,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.7.3'
ModuleVersion = '5.7.4'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

145
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.7.3
Date: 11.07.2023
Version: v5.7.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -696,9 +696,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -719,10 +716,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -736,10 +729,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -820,7 +813,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -840,10 +833,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -5933,7 +5926,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -5946,10 +5939,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -5961,7 +5954,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -5974,10 +5967,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -5989,7 +5982,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6002,10 +5995,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6017,7 +6010,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6030,10 +6023,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6045,7 +6038,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6058,10 +6051,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6073,7 +6066,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6086,10 +6079,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -6103,7 +6096,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6128,10 +6121,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -6143,7 +6136,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6168,10 +6161,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -6183,7 +6176,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6208,10 +6201,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6223,7 +6216,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6248,10 +6241,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6263,7 +6256,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6288,10 +6281,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6303,7 +6296,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6328,10 +6321,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -6346,7 +6339,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6359,10 +6352,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -6375,7 +6368,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6388,10 +6381,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -6404,7 +6397,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6417,10 +6410,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6433,7 +6426,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6446,10 +6439,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6462,7 +6455,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6475,10 +6468,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6491,7 +6484,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6504,10 +6497,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -8813,14 +8806,16 @@ function Set-AppGraphicsPerformance
{
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {($_.AdapterDACType -ne "Internal") -and ($null -ne $_.AdapterDACType)})
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.GraphicsPerformanceTitle -Verbose
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
$Yes
$Browse
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
@ -8841,15 +8836,15 @@ function Set-AppGraphicsPerformance
New-ItemProperty -Path HKCU:\Software\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion Gaming

6
src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2019"
Version: v5.7.3
Date: 11.07.2023
Version: v5.7.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -70,7 +70,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

6
src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -11,6 +11,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -11,6 +11,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -11,6 +11,7 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.

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

@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits.
UnsupportedOSBuild = Le script supporte les versions Windows 10 Enterprise LTSC 2021.
UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 19044.3208+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19044.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -11,6 +11,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -11,6 +11,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -11,6 +11,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -11,6 +11,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası, Windows 10 Enterprise LTSC 2021.
UnsupportedOSBuild = Komut dosyası Windows 10 Enterprise LTSC 2021'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19044.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -11,6 +11,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.17.3'
ModuleVersion = '5.17.4'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

172
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -391,18 +391,6 @@ public static string GetString(uint strId)
exit
}
# Check Microsoft Defender state
$productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState
$DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2)
if ($DefenderState -notmatch "00|01")
{
$Script:DefenderproductState = $true
}
else
{
$Script:DefenderproductState = $false
}
# Checking services
try
{
@ -419,6 +407,18 @@ public static string GetString(uint strId)
}
$Script:DefenderServices = ($Services | Where-Object -FilterScript {$_.Status -ne "running"} | Measure-Object).Count -lt $Services.Count
# Check Microsoft Defender state
$productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState
$DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2)
if ($DefenderState -notmatch "00|01")
{
$Script:DefenderproductState = $true
}
else
{
$Script:DefenderproductState = $false
}
# Specify whether Antispyware protection is enabled
if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/Microsoft/Windows/Defender).AntispywareEnabled)
{
@ -696,9 +696,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -719,10 +716,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -736,10 +729,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -804,8 +797,7 @@ public static string GetString(uint strId)
$Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "")
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Script:Wait = [WinAPI.GetStr]::GetString(33252)
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
@ -820,7 +812,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -840,10 +832,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -6320,7 +6312,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6333,10 +6325,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -6348,7 +6340,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6361,10 +6353,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -6376,7 +6368,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6389,10 +6381,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6404,7 +6396,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6417,10 +6409,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6432,7 +6424,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6445,10 +6437,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6460,7 +6452,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -6473,10 +6465,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -6490,7 +6482,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6515,10 +6507,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -6530,7 +6522,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6555,10 +6547,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -6570,7 +6562,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6595,10 +6587,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6610,7 +6602,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6635,10 +6627,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6650,7 +6642,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6675,10 +6667,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6690,7 +6682,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -6715,10 +6707,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -6733,7 +6725,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6746,10 +6738,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -6762,7 +6754,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6775,10 +6767,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -6791,7 +6783,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6804,10 +6796,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -6820,7 +6812,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6833,10 +6825,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -6849,7 +6841,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6862,10 +6854,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -6878,7 +6870,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -6891,10 +6883,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -9863,14 +9855,16 @@ function Set-AppGraphicsPerformance
{
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {($_.AdapterDACType -ne "Internal") -and ($null -ne $_.AdapterDACType)})
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.GraphicsPerformanceTitle -Verbose
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
$Yes
$Browse
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
@ -9891,15 +9885,15 @@ function Set-AppGraphicsPerformance
New-ItemProperty -Path HKCU:\Software\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}

6
src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2021"
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -70,7 +70,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

6
src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -11,6 +11,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -11,6 +11,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -11,6 +11,7 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.

3
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.3208+. Exécutez Windows Update et réessayez.
UpdateWarning = Votre version de Windows 10: {0}.{1}. Versions prises en charge: 19045.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a 64 bites Windows-t támogatja.
UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verziókat.
UnsupportedOSBuild = A szkript támogatja a Windows 10 22H2 verziót.
UpdateWarning = Az Ön Windows 10 építése: {0}.{1}. Támogatott buildek: 19045.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -11,6 +11,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -11,6 +11,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -11,6 +11,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Komut dosyası yalnızca 64 bit Windows'u destekler.
UnsupportedOSBuild = Komut dosyası, Windows 10 22H2 sürümlerini destekler.
UnsupportedOSBuild = Komut dosyası Windows 10 22H2'u destekler.
UpdateWarning = Windows 10 yapınız: {0}.{1}. Desteklenen yapılar: 19045.3208+. 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.
@ -11,6 +11,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -11,6 +11,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.17.3'
ModuleVersion = '5.17.4'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

148
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -848,9 +848,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -871,10 +868,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -888,10 +881,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -956,8 +949,7 @@ public static string GetString(uint strId)
$Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "")
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Script:Wait = [WinAPI.GetStr]::GetString(33252)
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
@ -972,7 +964,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -992,10 +984,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -7299,7 +7291,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7312,10 +7304,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7327,7 +7319,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7340,10 +7332,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7355,7 +7347,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7368,10 +7360,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7383,7 +7375,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7396,10 +7388,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7411,7 +7403,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7424,10 +7416,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7439,7 +7431,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7452,10 +7444,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -7469,7 +7461,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7494,10 +7486,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7509,7 +7501,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7534,10 +7526,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7549,7 +7541,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7574,10 +7566,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7589,7 +7581,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7614,10 +7606,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7629,7 +7621,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7654,10 +7646,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7669,7 +7661,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7694,10 +7686,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -7712,7 +7704,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7725,10 +7717,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7741,7 +7733,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7754,10 +7746,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7770,7 +7762,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7783,10 +7775,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7799,7 +7791,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7812,10 +7804,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7828,7 +7820,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7841,10 +7833,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7857,7 +7849,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7870,10 +7862,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -12175,14 +12167,16 @@ function Set-AppGraphicsPerformance
{
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {($_.AdapterDACType -ne "Internal") -and ($null -ne $_.AdapterDACType)})
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.GraphicsPerformanceTitle -Verbose
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
$Yes
$Browse
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
@ -12203,15 +12197,15 @@ function Set-AppGraphicsPerformance
New-ItemProperty -Path HKCU:\Software\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}

6
src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 (PowerShell 7)"
Version: v5.17.3
Date: 11.07.2023
Version: v5.17.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -70,7 +70,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

6
src/Sophia_Script_for_Windows_11/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -10,6 +10,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -10,6 +10,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -10,6 +10,7 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.

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

@ -10,6 +10,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -10,6 +10,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -10,6 +10,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -10,6 +10,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -10,6 +10,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.

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

@ -10,6 +10,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -10,6 +10,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -10,6 +10,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -10,6 +10,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '6.5.3'
ModuleVersion = '6.5.4'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

153
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -896,9 +896,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -919,10 +916,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -936,10 +929,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -1004,8 +997,7 @@ public static string GetString(uint strId)
$Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "")
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Script:Wait = [WinAPI.GetStr]::GetString(33252)
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
@ -1020,7 +1012,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -1040,10 +1032,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -2414,11 +2406,6 @@ function BrowsingHistory
$Show
)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1992)
{
return
}
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
@ -7203,7 +7190,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7216,10 +7203,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7231,7 +7218,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7244,10 +7231,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7259,7 +7246,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7272,10 +7259,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7287,7 +7274,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7300,10 +7287,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7315,7 +7302,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7328,10 +7315,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7343,7 +7330,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7356,10 +7343,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -7373,7 +7360,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7398,10 +7385,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7413,7 +7400,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7438,10 +7425,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7453,7 +7440,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7478,10 +7465,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7493,7 +7480,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7518,10 +7505,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7533,7 +7520,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7558,10 +7545,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7573,7 +7560,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7598,10 +7585,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -7616,7 +7603,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7629,10 +7616,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7645,7 +7632,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7658,10 +7645,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7674,7 +7661,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7687,10 +7674,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7703,7 +7690,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7716,10 +7703,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7732,7 +7719,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7745,10 +7732,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7761,7 +7748,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7774,10 +7761,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -11810,14 +11797,16 @@ function Set-AppGraphicsPerformance
{
if (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {($_.AdapterDACType -ne "Internal") -and ($null -ne $_.AdapterDACType)})
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.GraphicsPerformanceTitle -Verbose
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
$Yes
$Browse
{
Add-Type -AssemblyName System.Windows.Forms
$OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog
@ -11838,15 +11827,15 @@ function Set-AppGraphicsPerformance
New-ItemProperty -Path HKCU:\Software\Microsoft\DirectX\UserGpuPreferences -Name $OpenFileDialog.FileName -PropertyType String -Value "GpuPreference=2;" -Force
}
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}

6
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -69,7 +69,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -50,7 +50,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

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

@ -10,6 +10,7 @@ TweakerWarning = Die Stabilität des Windows-Betriebs
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
CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt.
UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut.

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

@ -10,6 +10,7 @@ TweakerWarning = The Windows stability may have been
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
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from the OS.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.

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

@ -10,6 +10,7 @@ TweakerWarning = La estabilidad del sistema operativo
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
CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
WindowsComponentBroken = {0} dañado o eliminado del sistema operativo.
UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo.

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

@ -10,6 +10,7 @@ TweakerWarning = La stabilité de l'OS Windows peut a
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
CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation.
UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez.

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

@ -10,6 +10,7 @@ TweakerWarning = A Windows operációs rendszer stabi
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
CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből.
UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra.

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

@ -10,6 +10,7 @@ TweakerWarning = La stabilità del sistema operativo
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
CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
WindowsComponentBroken = {0} rimosso dal sistema.
UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare.

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

@ -10,6 +10,7 @@ TweakerWarning = Stabilność systemu Windows mogła
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ź
CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script?
WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego.
UpdateDefender = Definicje programu Microsoft Defender nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie.

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

@ -10,6 +10,7 @@ TweakerWarning = A estabilidade do sistema operaciona
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
CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
WindowsComponentBroken = {0} quebrado ou removido do sistema operativo.
UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente.
@ -52,7 +53,7 @@ ErrorsLine = Linha
ErrorsMessage = Erros/Avisos
DialogBoxOpening = Exibindo a caixa de diálogo...
Disable = Desativar
EXEFilesFilter = *.exe|*.exe| Todos os arquivos (*.*)|*.*.
AllFilesFilter = Todos os arquivos
FolderSelect = Escolha uma pasta
FilesWontBeMoved = Os arquivos não serão transferidos.
Install = Instalar

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

@ -10,6 +10,7 @@ TweakerWarning = Стабильность Windows м
bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив.
RebootPending = Компьютер ожидает перезагрузки.
UnsupportedRelease = Обнаружена новая версия.
KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1}
CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} сломан или удален из ОС.
UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows.

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

@ -10,6 +10,7 @@ TweakerWarning = Windows işletim sistemi kararlılı
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
CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı.
UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin.

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

@ -10,6 +10,7 @@ TweakerWarning = Стабільність вашої
bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів.
RebootPending = Комп'ютер очікує на перезавантаження.
UnsupportedRelease = Виявлено нову версію.
KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1}
CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
WindowsComponentBroken = {0} пошкоджено або видалено з ОС.
UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу.

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

@ -10,6 +10,7 @@ TweakerWarning = Windows的稳定性可能已被{0}
bin = bin文件夹中没有文件请重新下载该档案
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
KeyboardArrows = 请使用键盘上的方向键{0}{1}选择您的答案
CustomizationWarning = 在运行Sophia Script之前您是否已自定义{0}预设文件中的每个函数
WindowsComponentBroken = {0} 损坏或从操作系统中删除
UpdateDefender = Microsoft Defender的定义已经过期运行Windows Update并再次尝试

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '6.5.3'
ModuleVersion = '6.5.4'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'

146
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -897,9 +897,6 @@ public static string GetString(uint strId)
.SYNOPSIS
The "Show menu" function with the up/down arrow keys and enter key to make a selection
.PARAMETER Title
Add title
.PARAMETER Menu
Array of items to choose from
@ -920,10 +917,6 @@ public static string GetString(uint strId)
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string]
$Title,
[Parameter(Mandatory = $true)]
[array]
$Menu,
@ -937,10 +930,10 @@ public static string GetString(uint strId)
$AddSkip
)
Write-Information -MessageData $Title -InformationAction Continue
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Menu += [WinAPI.GetStr]::GetString(33252)
# Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu
$Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
if ($AddSkip)
{
@ -1005,8 +998,7 @@ public static string GetString(uint strId)
$Script:No = [WinAPI.GetStr]::GetString(33232).Replace("&", "")
# Extract the localized "&Yes" string from shell32.dll
$Script:Yes = [WinAPI.GetStr]::GetString(33224).Replace("&", "")
# Extract the localized "Waiting for confirmation" string from shell32.dll
$Script:Wait = [WinAPI.GetStr]::GetString(33252)
$Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x1F815), [System.Char]::ConvertFromUtf32(0x1F817)
# Extract the localized "Skip" string from shell32.dll
$Script:Skip = [WinAPI.GetStr]::GetString(16956)
@ -1021,7 +1013,7 @@ public static string GetString(uint strId)
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -1041,10 +1033,10 @@ public static string GetString(uint strId)
exit
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
#endregion InitialActions
@ -2415,11 +2407,6 @@ function BrowsingHistory
$Show
)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1992)
{
return
}
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
@ -7205,7 +7192,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7218,10 +7205,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7233,7 +7220,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7246,10 +7233,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7261,7 +7248,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7274,10 +7261,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7289,7 +7276,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7302,10 +7289,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7317,7 +7304,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7330,10 +7317,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7345,7 +7332,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
$Choice = Show-Menu -Menu $DriveLetters -Default $DriveLetters.Count[-1] -AddSkip
switch ($Choice)
{
@ -7358,10 +7345,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Custom"
{
@ -7375,7 +7362,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7400,10 +7387,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7415,7 +7402,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7440,10 +7427,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7455,7 +7442,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7480,10 +7467,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7495,7 +7482,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7520,10 +7507,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7535,7 +7522,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7560,10 +7547,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7575,7 +7562,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Browse, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Browse, $Skip) -Default 2
switch ($Choice)
{
@ -7600,10 +7587,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
"Default"
{
@ -7618,7 +7605,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7631,10 +7618,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Documents
Write-Information -MessageData "" -InformationAction Continue
@ -7647,7 +7634,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7660,10 +7647,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Downloads
Write-Information -MessageData "" -InformationAction Continue
@ -7676,7 +7663,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7689,10 +7676,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Music
Write-Information -MessageData "" -InformationAction Continue
@ -7705,7 +7692,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7718,10 +7705,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Pictures
Write-Information -MessageData "" -InformationAction Continue
@ -7734,7 +7721,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7747,10 +7734,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
# Videos
Write-Information -MessageData "" -InformationAction Continue
@ -7763,7 +7750,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2
$Choice = Show-Menu -Menu @($Yes, $Skip) -Default 2
switch ($Choice)
{
@ -7776,10 +7763,10 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}
}
@ -11834,8 +11821,7 @@ function Set-AppGraphicsPerformance
{
do
{
$Title = $Localization.GraphicsPerformanceTitle
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No, $Wait) -Default 2
$Choice = Show-Menu -Title $Localization.GraphicsPerformanceTitle -Menu @($Yes, $No) -Default 2
switch ($Choice)
{
@ -11865,10 +11851,10 @@ function Set-AppGraphicsPerformance
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
}
$Wait {}
$KeyboardArrows {}
}
}
until ($Choice -ne $Wait)
until ($Choice -ne $KeyboardArrows)
}
}

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)"
Version: v6.5.3
Date: 11.07.2023
Version: v6.5.4
Date: 16.07.2023
Copyright (c) 20142023 farag
Copyright (c) 20192023 farag & Inestic
@ -69,7 +69,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag & Inestic, 2014$([System.Char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

Loading…
Cancel
Save