From 41ef2139940ee0ac07bbb16e2f2625b08bf97058 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 16 Jul 2023 20:18:32 +0300 Subject: [PATCH] =?UTF-8?q?6.5.4=20=E2=80=9416.07.2023?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 + sophia_script_versions.json | 12 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 3 +- .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 3 +- .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 148 ++++++++------- src/Sophia_Script_for_Windows_10/Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 5 +- .../Localizations/fr-FR/Sophia.psd1 | 3 +- .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 3 +- .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 145 +++++++-------- .../Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 3 +- .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 3 +- .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 172 +++++++++--------- .../Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 3 +- .../Localizations/hu-HU/Sophia.psd1 | 3 +- .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 3 +- .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 148 ++++++++------- .../Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 153 ++++++++-------- src/Sophia_Script_for_Windows_11/Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 3 +- .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 146 +++++++-------- .../Sophia.ps1 | 6 +- 98 files changed, 568 insertions(+), 540 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54df98cd..d5e57149 100644 --- a/CHANGELOG.md +++ b/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; diff --git a/sophia_script_versions.json b/sophia_script_versions.json index f32643d0..fe761528 100644 --- a/sophia_script_versions.json +++ b/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" } diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1 index 054daeeb..be5ebc43 100644 --- a/src/Sophia_Script_for_Windows_10/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.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 diff --git a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 index 320e9481..4b2790a2 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 index 02aab3a4..f3747468 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 index 5ed1e401..4e458b02 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/es-ES/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 index 7d026e20..93ef4264 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2. -UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 19045.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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 index 83d9b45f..e5ae343d 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/hu-HU/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 index a9635005..674a8ec6 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 index d4384dc4..1bc86890 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 index 0f48e776..096d6272 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/pt-BR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 index 733b64e5..1601646c 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/ru-RU/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 index cbe35dcc..d3edb8a4 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1 @@ -1,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. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 index 7e91ba52..bef33af8 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/uk-UA/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 index b7abb762..6471aba6 100644 --- a/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 index ffee8ad7..d89d4454 100644 --- a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.3' + ModuleVersion = '5.17.4' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 55705e92..7f5ef470 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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) } } diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index d5f81de5..f383efc0 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10" - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 index 0b63f059..cb7db34f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.7.3 - Date: 11.07.2023 + Version: v5.7.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 index b0ccb9f7..0158995a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 index 15f9e0c4..d34e2eef 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 index 73f6a342..f3a4a146 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows de 64 bits. UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2019. -UpdateWarning = 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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 index 7517ac96..ad0ec76c 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte le version Windows 10 Enterprise LTSC 2019. -UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 17763.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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 index 53c9f98c..3a60de85 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 index 7a936c96..eb9f42cc 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 index e3047f6e..a8063dcc 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 index 095b0399..b3166bc4 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/pt-BR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 index 9dfe5699..fd137e31 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/ru-RU/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 index 40d7befc..d5be144c 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 @@ -1,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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 index 4bdb64e5..d57604d4 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/uk-UA/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 index b5410bb9..85d15e47 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 index 87dc9db8..e20a7f03 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.7.3' + ModuleVersion = '5.7.4' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index aab75c90..86e8e82c 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.7.3 - Date: 11.07.2023 + Version: v5.7.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 index 8140dbe2..40cdb227 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2019" - Version: v5.7.3 - Date: 11.07.2023 + Version: v5.7.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 index 04a1deae..25d68dbe 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.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 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 index 68f54408..10388b6f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 index 2ef059dc..a6105d63 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 index 1eaf470c..6df62451 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/es-ES/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 index a474c54c..83f6c04a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 Enterprise LTSC 2021. -UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 19044.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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 index 28242426..f30c51f8 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 index bd4b0821..fcb7ea27 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 index b38ad622..7249c7aa 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 index 24922c6c..56749248 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/pt-BR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 index a0a705e2..2014a381 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/ru-RU/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 index b78c62cf..2072e6b3 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 @@ -1,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. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 index 2f1b9443..ff87ed2d 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/uk-UA/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 index 3a38bfa4..f3d93e92 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 index ffee8ad7..d89d4454 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.3' + ModuleVersion = '5.17.4' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 2f73f7a0..42c18ec3 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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) } } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 index d776e370..632ea46f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2021" - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 index bc73d037..91a296cd 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.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 diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 index 320e9481..4b2790a2 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 index 02aab3a4..f3747468 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 index 5ed1e401..4e458b02 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/es-ES/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 index 7d026e20..93ef4264 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,7 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script n'est compatible qu'avec Windows 64 bits. UnsupportedOSBuild = Le script supporte les versions Windows 10 22H2. -UpdateWarning = Votre version de Windows 10 : {0}.{1}. Versions prises en charge: 19045.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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 index 1a5522e5..e5ae343d 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1 @@ -1,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ójá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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 index a9635005..674a8ec6 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 index d4384dc4..1bc86890 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 index 0f48e776..096d6272 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/pt-BR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 index 733b64e5..1601646c 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/ru-RU/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 index cbe35dcc..d3edb8a4 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1 @@ -1,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. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 index 7e91ba52..bef33af8 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/uk-UA/Sophia.psd1 @@ -11,6 +11,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 index b7abb762..6471aba6 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 index 315ae599..7ab1cd52 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.3' + ModuleVersion = '5.17.4' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index a81e3d11..dac649b2 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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) } } diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 index 234fb602..1ceb7cde 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" - Version: v5.17.3 - Date: 11.07.2023 + Version: v5.17.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index 32879b6b..e71861b2 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.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 diff --git a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 index 730f7957..f5ba0e23 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 index fe1db688..83543608 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 index f431c146..34f8ee9e 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/es-ES/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 index a69ec2da..bf22be62 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/fr-FR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 index c80f5f4e..08f16e5c 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/hu-HU/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 index b033f633..ac7fd53e 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 index b48bb2ab..d415e61b 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 index 5e38373e..241cd7de 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/pt-BR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 index 5639d691..feab6f7f 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1 @@ -10,6 +10,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 index 874a4f89..5957874c 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/tr-TR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 index 0780ea05..149b6850 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/uk-UA/Sophia.psd1 @@ -10,6 +10,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 index 647f9632..29dc0cc5 100644 --- a/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 index d40e8077..1956ec49 100644 --- a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.3' + ModuleVersion = '6.5.4' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 4bb95e58..8fa4b7f8 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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) } } diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index f569a265..678922f5 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11" - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 index 293a15fb..e0fe18fd 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.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 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 index 730f7957..f5ba0e23 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 index fe1db688..83543608 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/en-US/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 index f431c146..34f8ee9e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/es-ES/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 index a69ec2da..bf22be62 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/fr-FR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 index c80f5f4e..08f16e5c 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/hu-HU/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 index b033f633..ac7fd53e 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/it-IT/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 index b48bb2ab..d415e61b 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pl-PL/Sophia.psd1 @@ -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 są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 index 63ad89db..241cd7de 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/pt-BR/Sophia.psd1 @@ -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 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 index 5639d691..feab6f7f 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1 @@ -10,6 +10,7 @@ TweakerWarning = Стабильность Windows м bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 index 874a4f89..5957874c 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/tr-TR/Sophia.psd1 @@ -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. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 index 0780ea05..149b6850 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/uk-UA/Sophia.psd1 @@ -10,6 +10,7 @@ TweakerWarning = Стабільність вашої bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 index 647f9632..29dc0cc5 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/zh-CN/Sophia.psd1 @@ -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并再次尝试。 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 index a1e0be6b..5c299886 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.3' + ModuleVersion = '6.5.4' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 42259266..73544faa 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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) } } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 index fb76776e..fad15140 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" - Version: v6.5.3 - Date: 11.07.2023 + Version: v6.5.4 + Date: 16.07.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 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