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 cea80877f..a71de01db 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 @@ -5,17 +5,15 @@ UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 d6f2f3093..5b3b43718 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 @@ -5,17 +5,15 @@ UpdateWarning = Your Windows 10 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows10 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 9c7ce3952..1a4e28e96 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 @@ -5,17 +5,15 @@ UpdateWarning = Su build de Windows 10: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 b411378c9..db7b5f1a2 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 @@ -5,17 +5,15 @@ UpdateWarning = Votre version de Windows 10: {0}.{1} 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. 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 817b9fb82..ba496d83d 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 @@ -5,17 +5,15 @@ UpdateWarning = Az Ön Windows 10 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 936e2c7f4..9ebe01c99 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 85ce06bd7..ef22f3beb 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 @@ -5,17 +5,15 @@ UpdateWarning = Twoja wersja systemu Windows 10: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 c56c7d16f..6e71f8383 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 3cb153d6a..916079d63 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш билд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 c9cace59c..e6dbe26c4 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 @@ -5,17 +5,15 @@ UpdateWarning = Windows 10 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows10 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 75c68d129..c67cc90e1 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш білд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 4940346b9..98316889d 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 @@ -5,17 +5,15 @@ UpdateWarning = 您的Windows 10构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows10 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index b4be22e29..bbda38ae7 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -172,7 +172,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -189,7 +189,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 5.1 + # Checking whether the script was run via PowerShell 5.1 if ($PSVersionTable.PSVersion.Major -ne 5) { Write-Information -MessageData "" -InformationAction Continue @@ -202,7 +202,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -215,7 +215,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -275,7 +275,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -287,6 +287,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -319,7 +325,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -382,7 +388,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -410,21 +416,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working - # https://github.com/PowerShell/PowerShell/issues/21295 - if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") - { - Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message $Localization.MicroSoftStorePowerShellWarning - Write-Information -MessageData "" -InformationAction Continue - - Write-Verbose -Message "https://t.me/sophia_chat" -Verbose - Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose - - exit - } - - # Check whether Windows Feature Experience Pack was removed by harmful tweakers + # Checking whether Windows Feature Experience Pack was removed by harmful tweakers if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) { Write-Information -MessageData "" -InformationAction Continue @@ -437,7 +429,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -451,7 +443,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the Microsoft Store being an important system component was removed + # Checking whether the Microsoft Store being an important system component was removed if (-not (Get-AppxPackage -Name Microsoft.WindowsStore)) { Write-Information -MessageData "" -InformationAction Continue @@ -465,7 +457,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -559,13 +551,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Windows is Enterprise for Chineese Goverment which doesn't have Defender + # Checking whether Windows is Enterprise for Chineese Goverment which doesn't have Defender if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG") { # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -576,7 +568,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -587,7 +579,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -657,7 +649,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -688,7 +680,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether LGPO.exe exists in the bin folder + # Checking whether LGPO.exe exists in the bin folder if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) { Write-Information -MessageData "" -InformationAction Continue @@ -731,7 +723,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "19045" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -857,7 +849,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1070,9 +1062,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1154,7 +1143,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3412,6 +3401,7 @@ function CortanaButton { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3576,6 +3566,7 @@ function NewsInterests { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3590,6 +3581,7 @@ function NewsInterests { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4683,7 +4675,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4774,7 +4766,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -5083,16 +5075,18 @@ function OneDrive { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -5227,6 +5221,7 @@ public static bool MarkFileDelete (string sourcefile) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -6672,19 +6667,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -7049,6 +7045,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7077,6 +7074,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7105,6 +7103,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7133,6 +7132,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7161,6 +7161,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7189,6 +7190,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7241,6 +7243,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7291,6 +7294,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7341,6 +7345,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7391,6 +7396,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7441,6 +7447,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7491,6 +7498,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7522,6 +7530,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7551,6 +7560,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7580,6 +7590,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7609,6 +7620,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7638,6 +7650,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7667,6 +7680,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7771,7 +7785,7 @@ function WinPrtScrFolder $Default ) - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { @@ -7781,6 +7795,7 @@ function WinPrtScrFolder Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -7794,7 +7809,7 @@ function WinPrtScrFolder $PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")} if ($PresetName) { - # Check whether a preset contains the "OneDrive -Uninstall" string uncommented out + # Checking whether a preset contains the "OneDrive -Uninstall" string uncommented out if (Select-String -Path $PresetName -Pattern "OneDrive -Uninstall" -SimpleMatch) { # The string exists and is commented @@ -9831,7 +9846,7 @@ function Import-Associations https://support.microsoft.com/en-us/windows/how-to-use-the-pc-health-check-app-9c8abd9b-03ba-4e67-81ef-36f37caa7844 .NOTES - This application is installed with the KB5005463 update to Check whether PC meets the system requirements of Windows 11 + This application is installed with the KB5005463 update to сheck whether PC meets the system requirements of Windows 11 .NOTES Machine-wide @@ -9846,7 +9861,7 @@ function UninstallPCHealthCheck foreach ($MSI in @(Get-ChildItem -Path "$env:SystemRoot\Installer" -Filter *.msi -File -Force)) { $Name = $Files.Keys | Where-Object -FilterScript {$_ -eq $MSI.Name} - # Check whether necessary files exist in folder unless we get a bunch of errors for $File variable + # Checking whether necessary files exist in folder unless we get a bunch of errors for $File variable if ($Name) { $File = $Files[$Name] @@ -10222,6 +10237,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10752,7 +10768,7 @@ function PinToStart # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStrings]::GetString(30493) - # Check whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created + # Checking whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created if (((Get-Command -Name PinToStart).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues | Where-Object -FilterScript {$_ -match "DevicesPrinters"}) { # Create the old-style "Devices and Printers" shortcut in Start menu @@ -11472,6 +11488,7 @@ function HEVC { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11482,7 +11499,7 @@ function HEVC { try { - # Check whether https://store.rg-adguard.net is alive + # Checking whether https://store.rg-adguard.net is alive $Parameters = @{ Uri = "https://store.rg-adguard.net/api/GetFiles" Method = "Head" @@ -11517,7 +11534,7 @@ function HEVC { try { - # Check whether https://store.rg-adguard.net is alive + # Checking whether https://store.rg-adguard.net is alive $Parameters = @{ Uri = $TempURL UseBasicParsing = $true @@ -11557,6 +11574,7 @@ function HEVC { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } } catch [System.Net.WebException] @@ -11618,6 +11636,7 @@ function CortanaAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11818,6 +11837,7 @@ function XboxGameTips { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11886,6 +11906,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -12020,7 +12041,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -12455,7 +12476,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -12769,7 +12790,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -13078,6 +13099,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13137,6 +13159,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13196,6 +13219,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13220,6 +13244,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13234,6 +13259,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13494,6 +13520,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13614,7 +13641,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -13678,6 +13705,7 @@ function WindowsSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13781,7 +13809,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $SecondaryDNS })] [string] @@ -13790,7 +13818,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $PrimaryDNS })] [string] @@ -13860,6 +13888,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14184,6 +14213,7 @@ function EditWithPaint3DContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14740,6 +14770,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14767,7 +14798,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -14826,7 +14857,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -14999,7 +15030,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index c797b52ef..d3ae53c2d 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -71,7 +71,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.19.2 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -110,14 +110,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose @@ -997,7 +997,7 @@ NetworkDiscovery -Enable <# Uninstall the "PC Health Check" app and prevent it from installing in the future - This application is installed with the KB5005463 update to Check whether PC meets the system requirements of Windows 11 + This application is installed with the KB5005463 update to сheck whether PC meets the system requirements of Windows 11 Удалить приложение "Проверка работоспособности ПК Windows" и заблокировать его установку в будущем Данное приложение устанавливается обновлением KB5005463 для проверки соответствия компьютера системным требованиям Windows 11 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 088cb8063..d8e4e76d6 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 @@ -5,17 +5,15 @@ UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 8aff99ec5..62557dfb7 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 @@ -5,17 +5,15 @@ UpdateWarning = Your Windows 10 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows10 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 fdd6c01ba..a55e83de9 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 @@ -5,17 +5,15 @@ UpdateWarning = Su build de Windows 10: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 6d5e4d914..b4412605d 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 @@ -5,17 +5,15 @@ UpdateWarning = Votre version de Windows 10: {0}.{1} 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. 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 20857bf71..c89ca8549 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 @@ -5,17 +5,15 @@ UpdateWarning = Az Ön Windows 10 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 2a1d3db50..3b6b7297d 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 ecb13aef2..90189a72f 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 @@ -5,17 +5,15 @@ UpdateWarning = Twoja wersja systemu Windows 10: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 6515f125d..89ba7ddb6 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 79fc365bb..24a8beaf2 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш билд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 337abe88e..ce375a809 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 @@ -5,17 +5,15 @@ UpdateWarning = Windows 10 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows10 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 51052dbac..5e5a1aee0 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш білд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 9ff094dbd..b18164844 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 @@ -5,17 +5,15 @@ UpdateWarning = 您的Windows 10构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows10 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 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 1cfcd9cab..9045a6db6 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 @@ -170,7 +170,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -187,7 +187,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 5.1 + # Checking whether the script was run via PowerShell 5.1 if ($PSVersionTable.PSVersion.Major -ne 5) { Write-Information -MessageData "" -InformationAction Continue @@ -200,7 +200,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -213,7 +213,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -273,7 +273,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -285,6 +285,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -317,7 +323,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -380,7 +386,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -408,21 +414,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working - # https://github.com/PowerShell/PowerShell/issues/21295 - if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") - { - Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") - Write-Information -MessageData "" -InformationAction Continue - - Write-Verbose -Message "https://t.me/sophia_chat" -Verbose - Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose - - exit - } - - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -438,7 +430,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -532,7 +524,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -543,7 +535,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -554,7 +546,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -618,7 +610,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -649,7 +641,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether LGPO.exe exists in the bin folder + # Checking whether LGPO.exe exists in the bin folder if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) { Write-Information -MessageData "" -InformationAction Continue @@ -702,7 +694,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "17763" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -825,7 +817,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1038,9 +1030,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1119,7 +1108,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3576,7 +3565,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -3667,7 +3656,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -5266,19 +5255,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -5643,6 +5633,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5671,6 +5662,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5699,6 +5691,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5727,6 +5720,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5755,6 +5749,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5783,6 +5778,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5835,6 +5831,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5885,6 +5882,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5935,6 +5933,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -5985,6 +5984,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6035,6 +6035,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6085,6 +6086,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6116,6 +6118,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6145,6 +6148,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6174,6 +6178,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6203,6 +6208,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6232,6 +6238,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6261,6 +6268,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -8415,6 +8423,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -8745,6 +8754,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -8815,7 +8825,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -9250,7 +9260,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -9564,7 +9574,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -9873,6 +9883,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -9932,6 +9943,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -9991,6 +10003,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10015,6 +10028,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10029,6 +10043,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10289,6 +10304,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10409,7 +10425,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -10796,6 +10812,7 @@ function EditWithPaint3DContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11290,6 +11307,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11317,7 +11335,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -11376,7 +11394,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -11539,7 +11557,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument 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 96041b3c3..ff630db7f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -69,7 +69,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.9.2 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -108,14 +108,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose 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 d57812981..a9215f8bc 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 @@ -5,17 +5,15 @@ UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 30d6eb144..0f1aeb4b0 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 @@ -5,17 +5,15 @@ UpdateWarning = Your Windows 10 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows10 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 5b018f7d9..26a091796 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 @@ -5,17 +5,15 @@ UpdateWarning = Su build de Windows 10: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 b5ead1796..938e3449c 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 @@ -5,17 +5,15 @@ UpdateWarning = Votre version de Windows 10: {0}.{1} 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. 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 982040991..3bd88ef83 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 @@ -5,17 +5,15 @@ UpdateWarning = Az Ön Windows 10 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 3fa239a81..685172090 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 4819986b4..172526b49 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 @@ -5,17 +5,15 @@ UpdateWarning = Twoja wersja systemu Windows 10: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 86dabded4..d7757f876 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 @@ -5,17 +5,15 @@ UpdateWarning = La tua build di Windows 10: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 7c7e3fef2..c2ac0eca3 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш билд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 43099db61..3ee6f1397 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 @@ -5,17 +5,15 @@ UpdateWarning = Windows 10 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows10 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 c4e203fd8..d69df358b 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 @@ -5,17 +5,15 @@ UpdateWarning = Ваш білд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 2df7c1b19..cc79d5839 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 @@ -5,17 +5,15 @@ UpdateWarning = 您的Windows 10构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows10 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 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 c359bb837..57d84a62e 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 @@ -170,7 +170,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -187,7 +187,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 5.1 + # Checking whether the script was run via PowerShell 5.1 if ($PSVersionTable.PSVersion.Major -ne 5) { Write-Information -MessageData "" -InformationAction Continue @@ -200,7 +200,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -213,7 +213,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -273,7 +273,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -285,6 +285,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -317,7 +323,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -380,7 +386,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -408,21 +414,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working - # https://github.com/PowerShell/PowerShell/issues/21295 - if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") - { - Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") - Write-Information -MessageData "" -InformationAction Continue - - Write-Verbose -Message "https://t.me/sophia_chat" -Verbose - Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose - - exit - } - - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -438,7 +430,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -532,7 +524,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -543,7 +535,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -554,7 +546,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -618,7 +610,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -649,7 +641,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether LGPO.exe exists in the bin folder + # Checking whether LGPO.exe exists in the bin folder if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) { Write-Information -MessageData "" -InformationAction Continue @@ -702,7 +694,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "19044" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -825,7 +817,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1038,9 +1030,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1119,7 +1108,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3952,7 +3941,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4043,7 +4032,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -5658,19 +5647,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -6035,6 +6025,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6063,6 +6054,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6091,6 +6083,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6119,6 +6112,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6147,6 +6141,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6175,6 +6170,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6227,6 +6223,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6277,6 +6274,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6327,6 +6325,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6377,6 +6376,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6427,6 +6427,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6477,6 +6478,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6508,6 +6510,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6537,6 +6540,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6566,6 +6570,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6595,6 +6600,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6624,6 +6630,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6653,6 +6660,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -9046,6 +9054,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -9576,7 +9585,7 @@ function PinToStart # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStrings]::GetString(30493) - # Check whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created + # Checking whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created if (((Get-Command -Name PinToStart).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues | Where-Object -FilterScript {$_ -match "DevicesPrinters"}) { # Create the old-style "Devices and Printers" shortcut in Start menu @@ -9796,6 +9805,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -9930,7 +9940,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -10365,7 +10375,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -10679,7 +10689,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -10988,6 +10998,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11047,6 +11058,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11106,6 +11118,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11130,6 +11143,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11144,6 +11158,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11404,6 +11419,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11524,7 +11540,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -11683,7 +11699,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $SecondaryDNS })] [string] @@ -11692,7 +11708,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $PrimaryDNS })] [string] @@ -11762,6 +11778,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12086,6 +12103,7 @@ function EditWithPaint3DContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12640,6 +12658,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12667,7 +12686,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -12726,7 +12745,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -12889,7 +12908,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument 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 4e79d2c5e..9ddeb4bc1 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -69,7 +69,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.19.2 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -108,14 +108,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose 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 cea80877f..2fb30f65c 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 @@ -5,17 +5,16 @@ UpdateWarning = Ihr Windows 10-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. +MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 d6f2f3093..37bbf17f4 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 @@ -5,17 +5,16 @@ UpdateWarning = Your Windows 10 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows10 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. +MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 9c7ce3952..895cf2377 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 @@ -5,17 +5,16 @@ UpdateWarning = Su build de Windows 10: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. +MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 b411378c9..81eafcd2a 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 @@ -5,17 +5,16 @@ UpdateWarning = Votre version de Windows 10: {0}.{1} 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. +MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. 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 817b9fb82..cd0e0858e 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 @@ -5,17 +5,16 @@ UpdateWarning = Az Ön Windows 10 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. +MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 936e2c7f4..b5bce5189 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 @@ -5,17 +5,16 @@ UpdateWarning = La tua build di Windows 10 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. +MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 85ce06bd7..81bae7c3f 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 @@ -5,17 +5,16 @@ UpdateWarning = Twoja wersja systemu Windows 10: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. +MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 c56c7d16f..4fb042707 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 @@ -5,17 +5,16 @@ UpdateWarning = La tua build di Windows 10: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows10 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. +MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 3cb153d6a..42a539350 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 @@ -5,17 +5,16 @@ UpdateWarning = Ваш билд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. +MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 c9cace59c..2a7007a67 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 @@ -5,17 +5,16 @@ UpdateWarning = Windows 10 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows10 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. +MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 75c68d129..ad55e62a7 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 @@ -5,17 +5,16 @@ UpdateWarning = Ваш білд Windows 10: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows10 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. +MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 4940346b9..47592a02a 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 @@ -5,17 +5,16 @@ UpdateWarning = 您的Windows 10构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows10 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 +MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 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 45501aaa8..f8b2320af 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 @@ -171,7 +171,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -188,7 +188,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 7 + # Checking whether the script was run via PowerShell 7 if ($PSVersionTable.PSVersion.Major -ne 7) { Write-Information -MessageData "" -InformationAction Continue @@ -201,7 +201,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -214,7 +214,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -274,7 +274,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -286,6 +286,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -318,7 +324,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -381,7 +387,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding utf8NoBOM -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -409,12 +415,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working + # Checking whether Get-WindowsEdition cmdlet is working # https://github.com/PowerShell/PowerShell/issues/21295 if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") { Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") + Write-Warning -Message $Localization.MicroSoftStorePowerShellWarning Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message "https://t.me/sophia_chat" -Verbose @@ -423,7 +429,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows Feature Experience Pack was removed by harmful tweakers + # Checking whether Windows Feature Experience Pack was removed by harmful tweakers if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) { Write-Information -MessageData "" -InformationAction Continue @@ -436,7 +442,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -450,7 +456,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the Microsoft Store being an important system component was removed + # Checking whether the Microsoft Store being an important system component was removed if (-not (Get-AppxPackage -Name Microsoft.WindowsStore)) { Write-Information -MessageData "" -InformationAction Continue @@ -464,7 +470,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -558,13 +564,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Windows is Enterprise for Chineese Goverment which doesn't have Defender + # Checking whether Windows is Enterprise for Chineese Goverment which doesn't have Defender if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name EditionID) -ne "EnterpriseG") { # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -575,7 +581,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -586,7 +592,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -656,7 +662,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -687,7 +693,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether all necessary files exist in the script folder + # Checking whether all necessary files exist in the script folder $Files = @( "$PSScriptRoot\..\bin\LGPO.exe", "$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll", @@ -735,7 +741,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "19045" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -861,7 +867,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1074,9 +1080,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1158,7 +1161,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3416,6 +3419,7 @@ function CortanaButton { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3580,6 +3584,7 @@ function NewsInterests { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3594,6 +3599,7 @@ function NewsInterests { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4687,7 +4693,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4778,7 +4784,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -5089,16 +5095,18 @@ function OneDrive { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -5233,6 +5241,7 @@ public static bool MarkFileDelete (string sourcefile) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -6678,19 +6687,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -7055,6 +7065,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7083,6 +7094,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7111,6 +7123,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7139,6 +7152,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7167,6 +7181,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7195,6 +7210,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7247,6 +7263,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7297,6 +7314,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7347,6 +7365,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7397,6 +7416,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7447,6 +7467,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7497,6 +7518,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7528,6 +7550,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7557,6 +7580,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7586,6 +7610,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7615,6 +7640,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7644,6 +7670,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7673,6 +7700,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7777,7 +7805,7 @@ function WinPrtScrFolder $Default ) - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { @@ -7787,6 +7815,7 @@ function WinPrtScrFolder Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -7800,7 +7829,7 @@ function WinPrtScrFolder $PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")} if ($PresetName) { - # Check whether a preset contains the "OneDrive -Uninstall" string uncommented out + # Checking whether a preset contains the "OneDrive -Uninstall" string uncommented out if (Select-String -Path $PresetName -Pattern "OneDrive -Uninstall" -SimpleMatch) { # The string exists and is commented @@ -9837,7 +9866,7 @@ function Import-Associations https://support.microsoft.com/en-us/windows/how-to-use-the-pc-health-check-app-9c8abd9b-03ba-4e67-81ef-36f37caa7844 .NOTES - This application is installed with the KB5005463 update to Check whether PC meets the system requirements of Windows 11 + This application is installed with the KB5005463 update to сheck whether PC meets the system requirements of Windows 11 .NOTES Machine-wide @@ -9852,7 +9881,7 @@ function UninstallPCHealthCheck foreach ($MSI in @(Get-ChildItem -Path "$env:SystemRoot\Installer" -Filter *.msi -File -Force)) { $Name = $Files.Keys | Where-Object -FilterScript {$_ -eq $MSI.Name} - # Check whether necessary files exist in folder unless we get a bunch of errors for $File variable + # Checking whether necessary files exist in folder unless we get a bunch of errors for $File variable if ($Name) { $File = $Files[$Name] @@ -10228,6 +10257,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10758,7 +10788,7 @@ function PinToStart # Extract the localized "Devices and Printers" string from shell32.dll $DevicesPrinters = [WinAPI.GetStrings]::GetString(30493) - # Check whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created + # Checking whether an argument is "DevicesPrinters". The Devices and Printers's AppID attribute can be retrieved only if the shortcut was created if (((Get-Command -Name PinToStart).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues | Where-Object -FilterScript {$_ -match "DevicesPrinters"}) { # Create the old-style "Devices and Printers" shortcut in Start menu @@ -11488,6 +11518,7 @@ function HEVC { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11498,7 +11529,7 @@ function HEVC { try { - # Check whether https://store.rg-adguard.net is alive + # Checking whether https://store.rg-adguard.net is alive $Parameters = @{ Uri = "https://store.rg-adguard.net/api/GetFiles" Method = "Head" @@ -11533,7 +11564,7 @@ function HEVC { try { - # Check whether https://store.rg-adguard.net is alive + # Checking whether https://store.rg-adguard.net is alive $Parameters = @{ Uri = $TempURL UseBasicParsing = $true @@ -11573,6 +11604,7 @@ function HEVC { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } } catch [System.Net.WebException] @@ -11634,6 +11666,7 @@ function CortanaAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11834,6 +11867,7 @@ function XboxGameTips { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11902,6 +11936,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -12036,7 +12071,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -12471,7 +12506,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -12785,7 +12820,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -13094,6 +13129,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13153,6 +13189,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13212,6 +13249,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13236,6 +13274,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13250,6 +13289,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13510,6 +13550,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13630,7 +13671,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -13694,6 +13735,7 @@ function WindowsSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13797,7 +13839,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $SecondaryDNS })] [string] @@ -13806,7 +13848,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateSet("1.0.0.1", "1.1.1.1", "149.112.112.112", "8.8.4.4", "8.8.8.8", "9.9.9.9")] [ValidateScript({ - # Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Checking whether $PrimaryDNS is not equal to $SecondaryDNS $_ -ne $PrimaryDNS })] [string] @@ -13876,6 +13918,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14200,6 +14243,7 @@ function EditWithPaint3DContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14756,6 +14800,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -14783,7 +14828,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -14842,7 +14887,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -15015,7 +15060,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument 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 b21b763e7..630d2f77e 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -71,7 +71,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.19.2 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -114,14 +114,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose @@ -1001,7 +1001,7 @@ NetworkDiscovery -Enable <# Uninstall the "PC Health Check" app and prevent it from installing in the future - This application is installed with the KB5005463 update to Check whether PC meets the system requirements of Windows 11 + This application is installed with the KB5005463 update to сheck whether PC meets the system requirements of Windows 11 Удалить приложение "Проверка работоспособности ПК Windows" и заблокировать его установку в будущем Данное приложение устанавливается обновлением KB5005463 для проверки соответствия компьютера системным требованиям Windows 11 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 8684f3837..5cb500919 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 @@ -4,17 +4,15 @@ UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 a5012af24..4568433f6 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 @@ -4,17 +4,15 @@ UpdateWarning = Your Windows 11 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows11 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 52622ea9a..d3d892a89 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 @@ -4,17 +4,15 @@ UpdateWarning = Su build de Windows 11: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 387452483..de3a31753 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 @@ -4,17 +4,15 @@ UpdateWarning = Votre version de Windows 11 : {0}.{1 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. 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 78f592660..ac3746c6a 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 @@ -4,17 +4,15 @@ UpdateWarning = Az Ön Windows 11 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 444c35549..4bf995caf 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 @@ -4,17 +4,15 @@ UpdateWarning = La tua build di Windows 11 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 1d4a6a4cf..db38ffb1c 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 @@ -4,17 +4,15 @@ UpdateWarning = Twoja wersja systemu Windows 11: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 55c4a30ba..f48ac80b8 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 @@ -4,17 +4,15 @@ UpdateWarning = La tua build di Windows 11: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 be848fedf..174da3d6c 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 @@ -4,17 +4,15 @@ UpdateWarning = Ваш билд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 4d580fc04..34c32c93f 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 @@ -4,17 +4,15 @@ UpdateWarning = Windows 11 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows11 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 7c58278b7..b77fea768 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 @@ -4,17 +4,15 @@ UpdateWarning = Ваш білд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 3d1dbec8b..1e1389562 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 @@ -4,17 +4,15 @@ UpdateWarning = 您的Windows 11构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows11 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index b2121068a..ed8684e60 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -158,7 +158,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -175,7 +175,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 5.1 + # Checking whether the script was run via PowerShell 5.1 if ($PSVersionTable.PSVersion.Major -ne 5) { Write-Information -MessageData "" -InformationAction Continue @@ -188,7 +188,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -201,7 +201,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -261,7 +261,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers, trojans, or custom Windows images $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -273,6 +273,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -305,7 +311,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -368,7 +374,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -396,21 +402,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working - # https://github.com/PowerShell/PowerShell/issues/21295 - if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") - { - Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message $Localization.MicroSoftStorePowerShellWarning - Write-Information -MessageData "" -InformationAction Continue - - Write-Verbose -Message "https://t.me/sophia_chat" -Verbose - Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose - - exit - } - - # Check whether Windows Feature Experience Pack was removed by harmful tweakers + # Checking whether Windows Feature Experience Pack was removed by harmful tweakers if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) { Write-Information -MessageData "" -InformationAction Continue @@ -423,7 +415,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -437,7 +429,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the Microsoft Store being an important system component was removed + # Checking whether the Microsoft Store being an important system component was removed if (-not (Get-AppxPackage -Name Microsoft.WindowsStore)) { Write-Information -MessageData "" -InformationAction Continue @@ -451,7 +443,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -545,7 +537,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -556,7 +548,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -567,7 +559,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -631,7 +623,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -662,7 +654,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether LGPO.exe exists in the bin folder + # Checking whether LGPO.exe exists in the bin folder if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) { Write-Information -MessageData "" -InformationAction Continue @@ -705,7 +697,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "22631" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -831,7 +823,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1044,9 +1036,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1128,7 +1117,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3132,6 +3121,7 @@ function TaskbarWidgets { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3278,7 +3268,7 @@ function SearchHighlights { "Hide" { - # Check whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically + # Checking whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically # Due to "Set-StrictMode -Version Latest" we have to use GetValue() $BingSearchEnabled = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search", "BingSearchEnabled", $null)) $DisableSearchBoxSuggestions = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer", "DisableSearchBoxSuggestions", $null)) @@ -3286,6 +3276,7 @@ function SearchHighlights { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4199,7 +4190,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4290,7 +4281,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4599,16 +4590,18 @@ function OneDrive { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4743,6 +4736,7 @@ public static bool MarkFileDelete (string sourcefile) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -5723,10 +5717,7 @@ function WindowsCapabilities # The following optional features will have their checkboxes checked [string[]]$CheckedCapabilities = @( # Steps Recorder - "App.StepsRecorder*", - - # WordPad - "Microsoft.Windows.WordPad*" + "App.StepsRecorder*" ) # The following optional features will have their checkboxes unchecked @@ -6392,19 +6383,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -6769,6 +6761,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6797,6 +6790,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6825,6 +6819,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6853,6 +6848,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6881,6 +6877,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6909,6 +6906,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6961,6 +6959,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7011,6 +7010,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7061,6 +7061,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7111,6 +7112,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7161,6 +7163,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7211,6 +7214,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7242,6 +7246,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7271,6 +7276,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7300,6 +7306,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7329,6 +7336,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7358,6 +7366,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7387,6 +7396,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7491,7 +7501,7 @@ function WinPrtScrFolder $Default ) - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { @@ -7501,6 +7511,7 @@ function WinPrtScrFolder Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -7514,7 +7525,7 @@ function WinPrtScrFolder $PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")} if ($PresetName) { - # Check whether a preset contains the "OneDrive -Uninstall" string uncommented out + # Checking whether a preset contains the "OneDrive -Uninstall" string uncommented out if (Select-String -Path $PresetName -Pattern "OneDrive -Uninstall" -SimpleMatch) { # The string exists and is commented @@ -9763,6 +9774,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10722,6 +10734,7 @@ function CortanaAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10789,6 +10802,7 @@ function TeamsAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10906,6 +10920,7 @@ function XboxGameTips { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10974,6 +10989,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -11108,7 +11124,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -11543,7 +11559,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -11857,7 +11873,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -12166,6 +12182,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12225,6 +12242,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12284,6 +12302,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12308,6 +12327,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12322,6 +12342,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12580,6 +12601,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12700,7 +12722,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -12764,6 +12786,7 @@ function WindowsSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12866,7 +12889,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $SecondaryDNS) })] [string] @@ -12874,7 +12897,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $PrimaryDNS) })] [string] @@ -12944,6 +12967,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13233,6 +13257,7 @@ function EditWithClipchampContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13298,6 +13323,7 @@ function EditWithPhotosContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13585,6 +13611,7 @@ function OpenWindowsTerminalContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13650,6 +13677,7 @@ function OpenWindowsTerminalAdminContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13674,6 +13702,7 @@ function OpenWindowsTerminalAdminContext Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13734,6 +13763,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13761,7 +13791,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -13820,7 +13850,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -13983,7 +14013,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index 461a5c318..badfbdb85 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -70,7 +70,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.7.2 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -109,14 +109,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 index be8e4abac..83f1dbca3 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 index 45fca1317..c2753ef57 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Your Windows 11 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows11 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 index 060cff8d1..98c212fe6 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Su build de Windows 11: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 index 1778ded82..03e87cbb3 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Votre version de Windows 11 : {0}.{1 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell téléchargé depuis le Microsoft Store n'est pas pris en charge. Veuillez exécuter une version MSI. UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 index 616b4b474..186c69c45 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Az Ön Windows 11 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 index cd4601fc0..0d993f886 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = La tua build di Windows 11 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 index 2638f1d4d..4094e9425 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Twoja wersja systemu Windows 11: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 index f9469ed2b..af0543286 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = La tua build di Windows 11: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 index f43591e98..47b8333e8 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Ваш билд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 index d694e873b..333e4ff07 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Windows 11 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows11 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 index 0c14b8869..5c8ab7ecd 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = Ваш білд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 index 6ef1f5abe..cd4975046 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 @@ -4,17 +4,15 @@ UpdateWarning = 您的Windows 11构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows11 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 index db1530526..63872c5d4 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -156,7 +156,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -173,7 +173,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 5.1 + # Checking whether the script was run via PowerShell 5.1 if ($PSVersionTable.PSVersion.Major -ne 5) { Write-Information -MessageData "" -InformationAction Continue @@ -186,7 +186,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -199,7 +199,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -259,7 +259,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers, trojans, or custom Windows images $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -271,6 +271,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -303,7 +309,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -366,7 +372,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -394,21 +400,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working - # https://github.com/PowerShell/PowerShell/issues/21295 - if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") - { - Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") - Write-Information -MessageData "" -InformationAction Continue - - Write-Verbose -Message "https://t.me/sophia_chat" -Verbose - Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose - - exit - } - - # Check whether Windows Feature Experience Pack was removed by harmful tweakers + # Checking whether Windows Feature Experience Pack was removed by harmful tweakers if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) { Write-Information -MessageData "" -InformationAction Continue @@ -421,7 +413,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -436,7 +428,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -530,7 +522,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -541,7 +533,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -552,7 +544,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -616,7 +608,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -647,7 +639,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether LGPO.exe exists in the bin folder + # Checking whether LGPO.exe exists in the bin folder if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) { Write-Information -MessageData "" -InformationAction Continue @@ -701,7 +693,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "26100" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -824,7 +816,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1037,9 +1029,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1121,7 +1110,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3195,7 +3184,7 @@ function SearchHighlights { "Hide" { - # Check whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically + # Checking whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically # Due to "Set-StrictMode -Version Latest" we have to use GetValue() $BingSearchEnabled = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search", "BingSearchEnabled", $null)) $DisableSearchBoxSuggestions = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer", "DisableSearchBoxSuggestions", $null)) @@ -3203,6 +3192,7 @@ function SearchHighlights { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4057,7 +4047,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4148,7 +4138,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -6019,19 +6009,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -6396,6 +6387,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6424,6 +6416,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6452,6 +6445,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6480,6 +6474,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6508,6 +6503,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6536,6 +6532,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6588,6 +6585,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6638,6 +6636,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6688,6 +6687,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6738,6 +6738,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6788,6 +6789,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6838,6 +6840,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6869,6 +6872,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6898,6 +6902,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6927,6 +6932,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6956,6 +6962,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6985,6 +6992,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7014,6 +7022,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7118,7 +7127,7 @@ function WinPrtScrFolder $Default ) - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { @@ -7128,6 +7137,7 @@ function WinPrtScrFolder Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -7141,7 +7151,7 @@ function WinPrtScrFolder $PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")} if ($PresetName) { - # Check whether a preset contains the "OneDrive -Uninstall" string uncommented out + # Checking whether a preset contains the "OneDrive -Uninstall" string uncommented out if (Select-String -Path $PresetName -Pattern "OneDrive -Uninstall" -SimpleMatch) { # The string exists and is commented @@ -9313,6 +9323,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10283,6 +10294,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -10417,7 +10429,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -10852,7 +10864,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -11166,7 +11178,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -11475,6 +11487,7 @@ function NetworkProtection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11534,6 +11547,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11593,6 +11607,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11617,6 +11632,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11631,6 +11647,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -11889,6 +11906,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12009,7 +12027,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -12167,7 +12185,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $SecondaryDNS) })] [string] @@ -12175,7 +12193,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $PrimaryDNS) })] [string] @@ -12245,6 +12263,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12675,6 +12694,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12702,7 +12722,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -12761,7 +12781,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -12924,7 +12944,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 index 118a276ad..cb5771a7b 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 @@ -68,7 +68,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 LTSC 2024 v6.7.2 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -107,14 +107,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose 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 8684f3837..5acc2d35f 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 @@ -4,17 +4,16 @@ UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unter UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt. LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte. UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen. -PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. -TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows nur mit einem Original-ISO-Abbild neu.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus. +MicroSoftStorePowerShellWarning = PowerShell, das aus dem Microsoft Store heruntergeladen wurde, wird nicht unterstützt. Bitte führen Sie eine MSI-Version aus.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. 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 a5012af24..bdbe07ec6 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 @@ -4,17 +4,16 @@ UpdateWarning = Your Windows 11 build: {0}.{1}. Supp UnsupportedLanguageMode = The PowerShell session in running in a limited language mode. LoggedInUserNotAdmin = The logged-on user doesn't have admin rights. UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version. -PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). UnsupportedHost = The script doesn't support running via {0}. Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. -TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows11 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 Windows. -MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version. +MicroSoftStorePowerShellWarning = PowerShell downloaded from the Microsoft Store is not supported. Please run an MSI version.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. ControlledFolderAccessDisabled = Controlled folder access disabled. InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. 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 52622ea9a..b3dee5a17 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 @@ -4,17 +4,16 @@ UpdateWarning = Su build de Windows 11: {0}.{1}. Com 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. -PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). UnsupportedHost = El script no es compatible con la ejecución a través de {0}. Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. -TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Reinstale Windows utilizando sólo una imagen ISO original.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI. +MicroSoftStorePowerShellWarning = PowerShell descargado de Microsoft Store no es compatible. Ejecute una versión MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. 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 387452483..2757a2638 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 @@ -4,10 +4,9 @@ UpdateWarning = Votre version de Windows 11 : {0}.{1 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. -PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). UnsupportedHost = Le script ne supporte pas l'exécution via {0}. Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. -TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Réinstallez Windows en utilisant uniquement une image ISO authentique.\nhttps://www.microsoft.com/software-download/windows11 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. 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 78f592660..a7daa52b1 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 @@ -4,17 +4,16 @@ UpdateWarning = Az Ön Windows 11 építése: {0}.{1 UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut. LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal. UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban. -PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. UnsupportedHost = A szkript nem támogatja a {0} futtatását. Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg. -TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. Ponovno instalirajte Windows koristeći samo originalnu ISO sliku.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót. +MicroSoftStorePowerShellWarning = A Microsoft Store-ból letöltött PowerShell nem támogatott. Kérjük, futtasson egy MSI verziót.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. 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 444c35549..d3132cab7 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 @@ -4,17 +4,16 @@ UpdateWarning = La tua build di Windows 11 {0}.{1} n UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore. UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata. -PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. -TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Reinstallare Windows utilizzando solo un'immagine ISO autentica.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI. +MicroSoftStorePowerShellWarning = PowerShell scaricato dal Microsoft Store non è supportato. Eseguire una versione MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. 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 1d4a6a4cf..8cc39baac 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 @@ -4,17 +4,16 @@ UpdateWarning = Twoja wersja systemu Windows 11: {0} UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. -PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). UnsupportedHost = Skrypt nie może być uruchamiany w {0}. Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. -TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Zainstaluj ponownie system Windows, używając tylko oryginalnego obrazu ISO.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI. +MicroSoftStorePowerShellWarning = PowerShell pobrany ze sklepu Microsoft Store nie jest obsługiwany. Należy uruchomić wersję MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. 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 55c4a30ba..3bed24168 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 @@ -4,17 +4,16 @@ UpdateWarning = La tua build di Windows 11: {0}.{1}. UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada. LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador. UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell. -PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). UnsupportedHost = O guião não suporta a execução através do {0}. Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. -TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Reinstale o Windows usando apenas uma imagem ISO genuína.\nhttps://www.microsoft.com/software-download/windows11 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. -MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI. +MicroSoftStorePowerShellWarning = Não há suporte para o PowerShell baixado da Microsoft Store. Execute uma versão MSI.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. 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 be848fedf..daa33da2b 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 @@ -4,17 +4,16 @@ UpdateWarning = Ваш билд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. -PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). UnsupportedHost = Скрипт не поддерживает работу через {0}. Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. -TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. Переустановите Windows, используя только подлинный ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. RebootPending = Компьютер ожидает перезагрузки. UnsupportedRelease = Обнаружена новая версия. KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? WindowsComponentBroken = {0} сломан или удален из ОС. -MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию. +MicroSoftStorePowerShellWarning = PowerShell, скачанный из Microsoft Store, не поддерживается. Пожалуйста, запустите MSI-версию.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. 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 4d580fc04..02916ac79 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 @@ -4,17 +4,16 @@ UpdateWarning = Windows 11 yapınız: {0}.{1}. Deste UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu. LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok. UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın. -PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. -TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Yalnızca orijinal bir ISO görüntüsü kullanarak Windows'u yeniden yükleyin.\nhttps://www.microsoft.com/software-download/windows11 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ı. -MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın. +MicroSoftStorePowerShellWarning = Microsoft Store'dan indirilen PowerShell desteklenmez. Lütfen bir MSI sürümü çalıştırın.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. 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 7c58278b7..9e2004b9a 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 @@ -4,17 +4,16 @@ UpdateWarning = Ваш білд Windows 11: {0}.{1}. UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. -PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). UnsupportedHost = Скрипт не підтримує роботу через {0}. Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. -TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Перевстановіть Windows, використовуючи тільки справжній ISO-образ.\nhttps://www.microsoft.com/software-download/windows11 Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. RebootPending = Комп'ютер очікує на перезавантаження. UnsupportedRelease = Виявлено нову версію. KeyboardArrows = Для вибору відповіді використовуйте на клавіатурі стрілки {0} і {1} CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? WindowsComponentBroken = {0} пошкоджено або видалено з ОС. -MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію. +MicroSoftStorePowerShellWarning = PowerShell, завантажений з Microsoft Store, не підтримується. Будь ласка, запустіть MSI-версію.\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. 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 3d1dbec8b..47c12e80f 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 @@ -4,17 +4,16 @@ UpdateWarning = 您的Windows 11构建: {0}.{1}。 UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 -PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 UnsupportedHost = 该脚本不支持通过{0}运行。 Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 -TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。僅使用正版 ISO 映像重新安裝 Windows。\nhttps://www.microsoft.com/software-download/windows11 Bin = bin文件夹中没有文件。请重新下载该档案。 RebootPending = 计算机正在等待重新启动。 UnsupportedRelease = 找到新版本。 KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? WindowsComponentBroken = {0} 损坏或从操作系统中删除。 -MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。 +MicroSoftStorePowerShellWarning = 不支持从 Microsoft Store 下载的 PowerShell。请运行 MSI 版本。\nhttps://github.com/powershell/powershell/releases/latest UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 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 bf4199af8..b50c06d11 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 @@ -157,7 +157,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the logged-in user is an admin + # Checking whether the logged-in user is an admin $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf @@ -174,11 +174,11 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run via PowerShell 7 + # Checking whether the script was run via PowerShell 7 if ($PSVersionTable.PSVersion.Major -ne 7) { Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major, $PSVersionTable.PSVersion.Minor) + Write-Warning -Message $Localization.MicroSoftStorePowerShellWarning Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message "https://t.me/sophia_chat" -Verbose @@ -187,7 +187,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the script was run in PowerShell ISE or VS Code + # Checking whether the script was run in PowerShell ISE or VS Code if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) { Write-Information -MessageData "" -InformationAction Continue @@ -200,7 +200,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers and trojans $Tweakers = @{ # https://github.com/Sycnex/Windows10Debloater Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" @@ -260,7 +260,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } } - # Check whether Windows was broken by 3rd party harmful tweakers and trojans + # Checking whether Windows was broken by 3rd party harmful tweakers, trojans, or custom Windows images $Tweakers = @{ # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" @@ -272,6 +272,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + # https://github.com/ChrisTitusTech/winutil + winutil = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"ChrisTitus`"})" + # https://discord.com/invite/kernelos + KernelOS = "$(Get-CimInstance -Namespace root/CIMV2/power -ClassName Win32_PowerPlan | Where-Object -FilterScript {$_.ElementName -match `"KernelOS`"})" + # https://discord.com/invite/9ZCgxhaYV6 + ChlorideOS = "$(Get-Volume | Where-Object -FilterScript {$_.FileSystemLabel -eq `"ChlorideOS`"})" } foreach ($Tweaker in $Tweakers.Keys) { @@ -304,7 +310,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # https://github.com/crazy-max/WindowsSpyBlocker try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -367,7 +373,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose Write-Information -MessageData "" -InformationAction Continue - # Check whether hosts contains any of string from $IPArray array + # Checking whether hosts contains any of string from $IPArray array if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding utf8NoBOM -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) }) -contains $true) @@ -395,12 +401,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether Get-WindowsEdition cmdlet is working + # Checking whether PowerShell 7 was installed from the Microsoft Store # https://github.com/PowerShell/PowerShell/issues/21295 if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps") { Write-Information -MessageData "" -InformationAction Continue - Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") + Write-Warning -Message $Localization.MicroSoftStorePowerShellWarning Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message "https://t.me/sophia_chat" -Verbose @@ -409,7 +415,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether Windows Feature Experience Pack was removed by harmful tweakers + # Checking whether Windows Feature Experience Pack was removed by harmful tweakers if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) { Write-Information -MessageData "" -InformationAction Continue @@ -422,7 +428,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether EventLog service is running in order to be sire that Event Logger is enabled + # Checking whether EventLog service is running in order to be sire that Event Logger is enabled if ((Get-Service -Name EventLog).Status -eq "Stopped") { Write-Information -MessageData "" -InformationAction Continue @@ -436,7 +442,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the Microsoft Store being an important system component was removed + # Checking whether the Microsoft Store being an important system component was removed if (-not (Get-AppxPackage -Name Microsoft.WindowsStore)) { Write-Information -MessageData "" -InformationAction Continue @@ -450,7 +456,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } #region Defender checks - # Check whether necessary Microsoft Defender components exists + # Checking whether necessary Microsoft Defender components exists $Files = @( "$env:SystemRoot\System32\smartscreen.exe", "$env:SystemRoot\System32\SecurityHealthSystray.exe", @@ -544,7 +550,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); # Defender is a currently used AV. Continue... $Script:DefenderProductState = $true - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) { @@ -555,7 +561,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:AntiSpywareEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) { @@ -566,7 +572,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Script:RealtimeMonitoringEnabled = $true } - # Check whether Microsoft Defender was turned off via GPO + # Checking whether Microsoft Defender was turned off via GPO # Due to "Set-StrictMode -Version Latest" we have to use GetValue() if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) { @@ -630,7 +636,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); exit } - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json @@ -661,7 +667,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue } - # Check whether all necessary files exist in the script folder + # Checking whether all necessary files exist in the script folder $Files = @( "$PSScriptRoot\..\bin\LGPO.exe", "$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll", @@ -709,7 +715,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); } "22631" { - # Check whether the current module version is the latest one + # Checking whether the current module version is the latest one try { # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json @@ -835,7 +841,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Menu += [WinAPI.GetStrings]::GetString(16956) } - # Check whether current terminal is Windows Terminal + # Checking whether current terminal is Windows Terminal if ($env:WT_SESSION) { # https://github.com/microsoft/terminal/issues/14992 @@ -1048,9 +1054,6 @@ function script:Set-Policy if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose - return } @@ -1132,7 +1135,7 @@ function DiagTrackService $Enable ) - # Check whether "InitialActions" function was removed in preset file + # Checking whether "InitialActions" function was removed in preset file if (-not ("WinAPI.GetStrings" -as [type])) { # Get the name of a preset (e.g Sophia.ps1) regardless it was named @@ -3136,6 +3139,7 @@ function TaskbarWidgets { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -3282,7 +3286,7 @@ function SearchHighlights { "Hide" { - # Check whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically + # Checking whether "Ask Copilot" and "Find results in Web" (Web) were disabled. They also disable Search Highlights automatically # Due to "Set-StrictMode -Version Latest" we have to use GetValue() $BingSearchEnabled = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search", "BingSearchEnabled", $null)) $DisableSearchBoxSuggestions = ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer", "DisableSearchBoxSuggestions", $null)) @@ -3290,6 +3294,7 @@ function SearchHighlights { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4203,7 +4208,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4294,7 +4299,7 @@ function Cursors { try { - # Check whether https://github.com is alive + # Checking whether https://github.com is alive $Parameters = @{ Uri = "https://github.com" Method = "Head" @@ -4605,16 +4610,18 @@ function OneDrive { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -4749,6 +4756,7 @@ public static bool MarkFileDelete (string sourcefile) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -5729,10 +5737,7 @@ function WindowsCapabilities # The following optional features will have their checkboxes checked [string[]]$CheckedCapabilities = @( # Steps Recorder - "App.StepsRecorder*", - - # WordPad - "Microsoft.Windows.WordPad*" + "App.StepsRecorder*" ) # The following optional features will have their checkboxes unchecked @@ -6398,19 +6403,20 @@ function NetworkAdaptersSavePower # Extract the localized "Please wait..." string from shell32.dll Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose - # Check whether there's an adapter that has AllowComputerToTurnOffDevice property to manage + # Checking whether there's an adapter that has AllowComputerToTurnOffDevice property to manage $Adapters = Get-NetAdapter -Physical | Where-Object -FilterScript {$_.MacAddress} | Get-NetAdapterPowerManagement | Where-Object -FilterScript {$_.AllowComputerToTurnOffDevice -ne "Unsupported"} if (-not $Adapters) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } $PhysicalAdaptersStatusUp = @(Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and $_.MacAddress}) - # Check whether PC is currently connected to a Wi-Fi network + # Checking whether PC is currently connected to a Wi-Fi network # NetConnectionStatus 2 is Wi-Fi $InterfaceIndex = (Get-CimInstance -ClassName Win32_NetworkAdapter -Namespace root/CIMV2 | Where-Object -FilterScript {$_.NetConnectionStatus -eq 2}).InterfaceIndex if (Get-NetAdapter -Physical | Where-Object -FilterScript {($_.Status -eq "Up") -and ($_.PhysicalMediaType -eq "Native 802.11") -and ($_.InterfaceIndex -eq $InterfaceIndex)}) @@ -6775,6 +6781,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6803,6 +6810,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6831,6 +6839,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6859,6 +6868,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6887,6 +6897,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6915,6 +6926,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -6967,6 +6979,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7017,6 +7030,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7067,6 +7081,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7117,6 +7132,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7167,6 +7183,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7217,6 +7234,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7248,6 +7266,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7277,6 +7296,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7306,6 +7326,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7335,6 +7356,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7364,6 +7386,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7393,6 +7416,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -7497,7 +7521,7 @@ function WinPrtScrFolder $Default ) - # Check whether user is logged into OneDrive (Microsoft account) + # Checking whether user is logged into OneDrive (Microsoft account) $UserEmail = Get-ItemProperty -Path HKCU:\Software\Microsoft\OneDrive\Accounts\Personal -Name UserEmail -ErrorAction Ignore if ($UserEmail) { @@ -7507,6 +7531,7 @@ function WinPrtScrFolder Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -7520,7 +7545,7 @@ function WinPrtScrFolder $PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")} if ($PresetName) { - # Check whether a preset contains the "OneDrive -Uninstall" string uncommented out + # Checking whether a preset contains the "OneDrive -Uninstall" string uncommented out if (Select-String -Path $PresetName -Pattern "OneDrive -Uninstall" -SimpleMatch) { # The string exists and is commented @@ -9769,6 +9794,7 @@ function PreventEdgeShortcutCreation { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10738,6 +10764,7 @@ function CortanaAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10805,6 +10832,7 @@ function TeamsAutostart { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10922,6 +10950,7 @@ function XboxGameTips { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -10990,6 +11019,7 @@ function Set-AppGraphicsPerformance { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue } $KeyboardArrows {} } @@ -11124,7 +11154,7 @@ function CleanupTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName "Windows Cleanup" -ErrorAction Ignore) { - # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to Check whether the task was created + # Also we can parse "$env:SystemRoot\System32\Tasks\Sophia\Windows Cleanup" to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Windows Cleanup"} | Foreach-Object { @@ -11559,7 +11589,7 @@ function SoftwareDistributionTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName SoftwareDistribution -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\SoftwareDistribution to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "SoftwareDistribution"} | Foreach-Object { @@ -11873,7 +11903,7 @@ function TempTask # Checking if we're trying to create the task when it was already created as another user if (Get-ScheduledTask -TaskPath "\Sophia\" -TaskName Temp -ErrorAction Ignore) { - # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to Check whether the task was created + # Also we can parse $env:SystemRoot\System32\Tasks\Sophia\Temp to сheck whether the task was created $ScheduleService = New-Object -ComObject Schedule.Service $ScheduleService.Connect() $ScheduleService.GetFolder("\Sophia").GetTasks(0) | Where-Object -FilterScript {$_.Name -eq "Temp"} | Foreach-Object { @@ -12241,6 +12271,7 @@ function PUAppsDetection { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12300,6 +12331,7 @@ function DefenderSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12324,6 +12356,7 @@ function DismissMSAccount { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12338,6 +12371,7 @@ function DismissSmartScreenFilter { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12596,6 +12630,7 @@ function AppsSmartScreen { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12716,7 +12751,7 @@ function WindowsScriptHost { "Disable" { - # Check whether any scheduled tasks were created before, because they rely on Windows Host running vbs files + # Checking whether any scheduled tasks were created before, because they rely on Windows Host running vbs files Get-ScheduledTask -TaskName SoftwareDistribution, Temp, "Windows Cleanup", "Windows Cleanup Notification" -ErrorAction Ignore | ForEach-Object -Process { # Skip if a scheduled task exists if ($_.State -eq "Ready") @@ -12780,6 +12815,7 @@ function WindowsSandbox { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -12882,7 +12918,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $SecondaryDNS) })] [string] @@ -12890,7 +12926,7 @@ function DNSoverHTTPS [Parameter(Mandatory = $false)] [ValidateScript({ - # Isolate IPv4 IP addresses and Check whether $PrimaryDNS is not equal to $SecondaryDNS + # Isolate IPv4 IP addresses and check whether $PrimaryDNS is not equal to $SecondaryDNS ((@((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object -FilterScript {($_ -as [IPAddress]).AddressFamily -ne "InterNetworkV6"}) -contains $_) -and ($_ -ne $PrimaryDNS) })] [string] @@ -12960,6 +12996,7 @@ function DNSoverHTTPS { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13249,6 +13286,7 @@ function EditWithClipchampContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13314,6 +13352,7 @@ function EditWithPhotosContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13601,6 +13640,7 @@ function OpenWindowsTerminalContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13666,6 +13706,7 @@ function OpenWindowsTerminalAdminContext { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13690,6 +13731,7 @@ function OpenWindowsTerminalAdminContext Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13750,6 +13792,7 @@ function UpdateLGPEPolicies { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -Verbose + Write-Error -Message ($Localization.Skipped -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue return } @@ -13777,7 +13820,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -13836,7 +13879,7 @@ function UpdateLGPEPolicies { foreach ($Item in $Path.Property) { - # Check whether property isn't equal to "(default)" and exists + # Checking whether property isn't equal to "(default)" and exists if (($null -ne $Item) -and ($Item -ne "(default)")) { # Where all ADMX templates are located to compare with @@ -13999,7 +14042,7 @@ public static void PostMessage() # Open Startup page Start-Process -FilePath "ms-settings:startupapps" - # Check whether any of scheduled tasks were created. Unless open Task Scheduler + # Checking whether any of scheduled tasks were created. Unless open Task Scheduler if ($Script:ScheduledTasks) { # Find and close taskschd.msc by its argument 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 1f6e9916f..c4a03d0ba 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -56,7 +56,7 @@ #> #Requires -RunAsAdministrator -#Requires -Version 7.4 + [CmdletBinding()] param @@ -70,7 +70,7 @@ Clear-Host $Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.7.2 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" -# Check whether all files were expanded before running +# Checking whether all files were expanded before running $ScriptFiles = @( "$PSScriptRoot\Localizations\de-DE\Sophia.psd1", "$PSScriptRoot\Localizations\en-US\Sophia.psd1", @@ -113,14 +113,14 @@ catch Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia } -# Check whether script is not running via PowerShell (x86) +# Checking whether script is the correct PowerShell version try { Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force -ErrorAction Stop } catch [System.InvalidOperationException] { - Write-Warning -Message $Localization.PowerShellx86Warning + Write-Warning -Message $Localization.UnsupportedPowerShell Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose