From 94e3d2c4d2b634b259d6c03fcba016e9e4a56cc3 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Fri, 7 May 2021 15:48:43 +0300 Subject: [PATCH] 07.05.2021 v5.10.4 --- Sophia/PowerShell 7/Functions.ps1 | 8 +- .../Localizations/cn-CN/Sophia.psd1 | 7 +- .../Localizations/de-DE/Sophia.psd1 | 5 +- .../Localizations/en-US/Sophia.psd1 | 5 +- .../Localizations/es-ES/Sophia.psd1 | 5 +- .../Localizations/fr-FR/Sophia.psd1 | 5 +- .../Localizations/hu-HU/Sophia.psd1 | 82 +++++++++++++++++++ .../Localizations/it-IT/Sophia.psd1 | 5 +- .../Localizations/pt-BR/Sophia.psd1 | 5 +- .../Localizations/ru-RU/Sophia.psd1 | 5 +- .../Localizations/tr-TR/Sophia.psd1 | 9 +- .../Localizations/uk-UA/Sophia.psd1 | 5 +- Sophia/PowerShell 7/Sophia.ps1 | 48 ++++++----- Sophia/PowerShell 7/Sophia.psd1 | 2 +- Sophia/PowerShell 7/Sophia.psm1 | 82 +++++++++++++++---- 15 files changed, 221 insertions(+), 57 deletions(-) create mode 100644 Sophia/PowerShell 7/Localizations/hu-HU/Sophia.psd1 diff --git a/Sophia/PowerShell 7/Functions.ps1 b/Sophia/PowerShell 7/Functions.ps1 index 74584444..ea055cc2 100644 --- a/Sophia/PowerShell 7/Functions.ps1 +++ b/Sophia/PowerShell 7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.10.3 - Date: 27.04.2021 + Version: v5.10.4 + Date: 07.05.2021 Copyright (c) 2014–2021 farag Copyright (c) 2019–2021 farag & oZ-Zo @@ -66,12 +66,12 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" +$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.4 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force -Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia +Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations $Parameters = @{ CommandName = "Sophia" diff --git a/Sophia/PowerShell 7/Localizations/cn-CN/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/cn-CN/Sophia.psd1 index 187652c0..4acfe270 100644 --- a/Sophia/PowerShell 7/Localizations/cn-CN/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/cn-CN/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = 该脚本仅支持Windows 10 x64 -UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H1和更高版本 +UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H1/20H2和更高版本 UnsupportedRelease = 找到新版本 +CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义Sophia.ps1预设文件中的每个功能? ControlledFolderAccessDisabled = “受控文件夹访问”禁用 ScheduledTasks = 计划任务 OneDriveUninstalling = 卸载OneDrive…… @@ -19,7 +20,7 @@ UserDefaultFolder = 您想将“{0}”文件夹的位置 ReservedStorageIsInUse = 保留存储空间正在使用时不支持此操作。请等待所有服务操作完成后再重试 ShortcutPinning = “{0}“快捷方式将被固定到开始菜单 UninstallUWPForAll = 对于所有用户 -UninstallUWPTitle = UWP应用 +UWPAppsTitle = UWP应用 WSLUpdateDownloading = Linux内核更新包下载中…… ~14 MB WSLUpdateInstalling = 安装Linux内核更新包…… HEVCDownloading = Downloading 来自设备制造商的 HEVC 视频扩展... ~2,8 MB @@ -66,6 +67,8 @@ Minute = 1分钟 NoData = 无数据 NoInternetConnection = 无网络连接 NoResponse = 无法建立https://store.rg-adguard.net连接 +No = 不 +Yes = 是的 Open = 打开 Patient = 请等待…… Restore = 恢复 diff --git a/Sophia/PowerShell 7/Localizations/de-DE/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/de-DE/Sophia.psd1 index 64c8e0b5..75d962cf 100644 --- a/Sophia/PowerShell 7/Localizations/de-DE/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/de-DE/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64 -UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004 / 20H1-Versionen und höher +UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004/20H1/20H2-Versionen und höher UnsupportedRelease = Neue Version gefunden +CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen? ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert ScheduledTasks = Geplante Aufgaben OneDriveUninstalling = Deinstalliere OneDrive... @@ -66,6 +67,8 @@ Minute = 1 Minute NoData = Nichts anzuzeigen NoInternetConnection = Keine Internetverbindung NoResponse = Eine Verbindung mit https://store.rg-adguard.net konnte nicht hergestellt werden +No = Nein +Yes = Ja Open = Öffnen Patient = Bitte Warten... Restore = Wiederherstellen diff --git a/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 index c969deca..a4883886 100644 --- a/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/en-US/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = The script supports Windows 10 x64 only -UnsupportedOSBuild = The script supports Windows 10 2004/20H1 versions and higher +UnsupportedOSBuild = The script supports Windows 10 2004/20H1/20H2 versions and higher UnsupportedRelease = A new version found +CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script? ControlledFolderAccessDisabled = Controlled folder access disabled ScheduledTasks = Scheduled tasks OneDriveUninstalling = Uninstalling OneDrive... @@ -66,6 +67,8 @@ Minute = 1 Minute NoData = Nothing to display NoInternetConnection = No Internet connection NoResponse = A connection could not be established with https://store.rg-adguard.net +No = No +Yes = Yes Open = Open Patient = Please wait... Restore = Restore diff --git a/Sophia/PowerShell 7/Localizations/es-ES/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/es-ES/Sophia.psd1 index 362e0402..35118c5f 100644 --- a/Sophia/PowerShell 7/Localizations/es-ES/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/es-ES/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64 -UnsupportedOSBuild = El script es compatible con versión Windows 10 2004 / 20H1 y superiores +UnsupportedOSBuild = El script es compatible con versión Windows 10 2004/20H1/20H2 y superiores UnsupportedRelease = Nueva versión encontrada +CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado Sophia.ps1 antes de ejecutar Sophia Script? ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado ScheduledTasks = Tareas programadas OneDriveUninstalling = Desinstalar OneDrive... @@ -66,6 +67,8 @@ Minute = 1 minuto NoData = Nada que mostrar NoInternetConnection = No hay conexión a Internet NoResponse = No se pudo establecer una conexión con https://store.rg-adguard.net +No = No +Yes = Sí Open = Abierta Patient = Por favor espere... Restore = Restaurar diff --git a/Sophia/PowerShell 7/Localizations/fr-FR/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/fr-FR/Sophia.psd1 index 2f144fae..5ff20242 100644 --- a/Sophia/PowerShell 7/Localizations/fr-FR/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/fr-FR/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64 -UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H1 et ultérieures +UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H1/20H2 et ultérieures UnsupportedRelease = Nouvelle version trouvée +CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage Sophia.ps1 avant d'exécuter Sophia Script? ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé ScheduledTasks = Tâches planifiées OneDriveUninstalling = Désinstalltion de OneDrive... @@ -66,6 +67,8 @@ Minute = 1 minute NoData = Rien à afficher NoInternetConnection = Pas de connexion Internet NoResponse = Une connexion n'a pas pu être établie avec https://store.rg-adguard.net +No = Non +Yes = Oui Open = Ouvert Patient = Veuillez patienter... Restore = Restaurer diff --git a/Sophia/PowerShell 7/Localizations/hu-HU/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/hu-HU/Sophia.psd1 new file mode 100644 index 00000000..04908e1a --- /dev/null +++ b/Sophia/PowerShell 7/Localizations/hu-HU/Sophia.psd1 @@ -0,0 +1,82 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja +UnsupportedOSBuild = A szkript a Windows 10 2004/20H1/20H2/ és újabb kiadásokat támogatja +UnsupportedRelease = Új verzió érhető el +CustomizationWarning = \nSzemélyre szabott minden opciót a Sophia.ps1 preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet? +ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva +ScheduledTasks = Ütemezett feladatok +OneDriveUninstalling = OneDrive eltávolítása... +OneDriveInstalling = OneDrive telepítése folyamatban... +OneDriveDownloading = OneDrive letöltése... ~33 MB +WindowsFeaturesTitle = Windows szolgáltatások +OptionalFeaturesTitle = Opcionális szolgáltatások +EnableHardwareVT = Virtualizáció engedélyezése UEFI-ben +UserShellFolderNotEmpty = Néhány fájl maradt a "{0}" könyvtárban. Kérem helyezze át ezeket egy új helyre +RetrievingDrivesList = A meghajtók listájának lekérése... +DriveSelect = Válassza ki a meghajtó jelét a gyökérkönyvtárban ahol a "{0}" könyvtár létre lesz hozva +UserFolderRequest = Kívánja megváltoztatni a "{0}" könyvtár helyét? +UserFolderSelect = Válasszon ki egy könyvtárat a "{0}" könyvtárhoz +UserDefaultFolder = Szeretné visszaállítani a "{0}" könyvtár helyét a gyári értékekre? +ReservedStorageIsInUse = Ez a művelet nem hajtható végre, amíg a fenntartott tárhely használatban van\nKérem várja meg, míg a folyamatok befejeződnek és próbálja meg késöbb újra +ShortcutPinning = A gyorsindító ikon "{0}" Startmenüre helyezése +UninstallUWPForAll = Az összes felhasználó számára +UWPAppsTitle = UWP Alkalmazások +WSLUpdateDownloading = A Linux kernel frissitő csomag letöltése... ~14 MB +WSLUpdateInstalling = A Linux kernel frissítő csomag telepítése... +HEVCDownloading = A HEVC Videobővítmények letöltése a gyártói oldalról... ~2,8 MB +GraphicsPerformanceTitle = Grafikus teljesítmény tulajdonság +GraphicsPerformanceRequest = Szeretné megváltoztatni a grafikus teljesítmény beállítást az ön által kiválasztott alkalmazásban "Nagy teljesítményre"? +TaskNotificationTitle = Értesítés +CleanupTaskNotificationTitle = Fontos Információ +CleanupTaskDescription = A nem használt Windows fájlok és frissítések eltávolítása a beépített lemezkarbantartó alkalmazással +CleanupTaskNotificationEventTitle = Szeretné a nem használt fájlokat es frissitéseket eltávolítani? +CleanupTaskNotificationEvent = A Windows megtisztítása nem tart már sokáig. Legközelebb 30 nap múlva jelenik meg ez a figyelmeztetés +CleanupTaskNotificationSnoozeInterval = Válasszon ki egy emlékeztető időintervallumot +CleanupNotificationTaskDescription = Előugró emlékeztető figyelmeztetés a nem használt Windows fájlok és frissítések törléséről +SoftwareDistributionTaskNotificationEvent = A Windows frissités számára fenntartott ideiglenes tárhely sikeresen megtisztítva +TempTaskNotificationEvent = Az ideiglenes fájlok tárolására szolgáló könyvtár tisztítása sikeresen megtörtént +FolderTaskDescription = A {0} könyvtár tisztítása +ControlledFolderAccess = Vezérelt mappához való hozzáférés +ProtectedFoldersRequest = Kívánja engedélyezni a vezérelt mappához való hozzáférest és könyvtárat kijelölni, amit a Microsoft Defender majd megvéd a kártékony alkalmazásoktol es fenyegetésektől? +ProtectedFoldersListRemoved = Eltávolított könyvtárak +AppControlledFolderRequest = Szeretne megadni egy alkalmazást, ami a vezérelt mappához való hozzáférésben engedélyezett? +AllowedControlledFolderAppsRemoved = Engedélyezett alkalmazások eltávolítva +DefenderExclusionFolderRequest = Kíván könyvtárakat kihagyni a Microsoft Defender Malware ellenőrzéséből? +DefenderExclusionFoldersListRemoved = A kihagyott könyvtárak eltávolítva +AddDefenderExclusionFileRequest = Kíván fájlokat kihagyni a Microsoft Defender Malware ellenörzéséből? +DefenderExclusionFilesRemoved = A kihagyott fájlok eltávolítva +EventViewerCustomViewName = Folyamatok +EventViewerCustomViewDescription = Folyamatok létrehozása és parancssor ellenőrző események +RestartWarning = Kérem ne felejtse el újraindítani a számítógépét +ErrorsLine = Sor +ErrorsFile = Fájl +ErrorsMessage = Hibák/Figyelmeztetések +Add = Hozzáadás +AllFilesFilter = Összes fájl (*.*)|*.* +Change = Szerkesztés +DialogBoxOpening = Párbeszédablak megjelenítése... +Disable = Kikapcsolás +Enable = Engedélyezés +EXEFilesFilter = *.exe|*.exe|Minden fájl (*.*)|*.* +FolderSelect = Válasszon ki egy könyvtárat +FilesWontBeMoved = A fájlok nem lesznek áthelyezve +FourHours = 4 óra +HalfHour = 30 perc +Install = Telepítés +Minute = 1 perc +NoData = Nincs megjeleníthető információ +NoInternetConnection = Nincs internetkapcsolat +NoResponse = Nem hozható létre kapcsolat a https://store.rg-adguard.net weboldallal +No = Nem +Yes = Igen +Open = Megnyitás +Patient = Kérem várjon... +Restore = Visszaállítás +Run = Futtatás +Select = Kijelölés +SelectAll = Összes kijelölése +Skip = Átugrás +Skipped = Átugorva +TelegramTitle = Csatlakozzon a hivatalos Telegram csoportunkhoz +Uninstall = Eltávolít +'@ \ No newline at end of file diff --git a/Sophia/PowerShell 7/Localizations/it-IT/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/it-IT/Sophia.psd1 index 94e70afd..534b6d38 100644 --- a/Sophia/PowerShell 7/Localizations/it-IT/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/it-IT/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Lo script supporta solo Windows 10 x64 -UnsupportedOSBuild = Lo script supporta Windows 10, 2004 / 20H1 versioni e superiori +UnsupportedOSBuild = Lo script supporta Windows 10, 2004/20H1/20H2 versioni e superiori UnsupportedRelease = Nuova versione trovata +CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file delle preimpostazioni Sophia.ps1 prima di eseguire Sophia Script? ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata ScheduledTasks = Attività pianificate OneDriveUninstalling = Disinstalla OneDrive... @@ -66,6 +67,8 @@ Minute = 1 minuto NoData = Niente da esposizione NoInternetConnection = Nessuna connessione Internet NoResponse = Non è stato possibile stabilire una connessione con https://store.rg-adguard.net +No = No +Yes = Sì Open = Aperto Patient = Attendere prego... Restore = Ristabilire diff --git a/Sophia/PowerShell 7/Localizations/pt-BR/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/pt-BR/Sophia.psd1 index aef9f956..9bd6d747 100644 --- a/Sophia/PowerShell 7/Localizations/pt-BR/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/pt-BR/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = O script suporta somente Windows 10 x64 -UnsupportedOSBuild = O script suporta versões Windows 10 2004 / 20H1 e superior +UnsupportedOSBuild = O script suporta versões Windows 10 2004/20H1/20H2 e superior UnsupportedRelease = Nova versão encontrada +CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição Sophia.ps1 antes de executar o Sophia Script? ControlledFolderAccessDisabled = Acesso controlado a pasta desativada ScheduledTasks = Tarefas agendadas OneDriveUninstalling = Desinstalar OneDrive... @@ -66,6 +67,8 @@ Minute = 1 minuto NoData = Nada à exibir NoInternetConnection = Sem conexão à Internet NoResponse = Uma conexão não pôde ser estabelecida com https://store.rg-adguard.net +No = Não +Yes = Sim Open = Abrir Patient = Por favor, espere... Restore = Restaurar diff --git a/Sophia/PowerShell 7/Localizations/ru-RU/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/ru-RU/Sophia.psd1 index b3636199..320bbbe7 100644 --- a/Sophia/PowerShell 7/Localizations/ru-RU/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/ru-RU/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64 -UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H1 и выше +UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H1/20H2 и выше UnsupportedRelease = Обнаружена новая версия +CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script? ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен ScheduledTasks = Запланированные задания OneDriveUninstalling = Удаление OneDrive... @@ -66,6 +67,8 @@ Minute = 1 минута NoData = Отсутствуют данные NoInternetConnection = Отсутствует интернет-соединение NoResponse = Невозможно установить соединение с https://store.rg-adguard.net +No = Нет +Yes = Да Open = Открыть Patient = Пожалуйста, подождите... Restore = Восстановить diff --git a/Sophia/PowerShell 7/Localizations/tr-TR/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/tr-TR/Sophia.psd1 index 3fba62bc..8aff3a94 100644 --- a/Sophia/PowerShell 7/Localizations/tr-TR/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/tr-TR/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor -UnsupportedOSBuild = Bu betik sadece Windows 10 2004/20H1 sürüm ve üstünü destekliyor +UnsupportedOSBuild = Bu betik sadece Windows 10 2004/20H1/20H2 sürüm ve üstünü destekliyor UnsupportedRelease = Yeni sürüm bulundu +CustomizationWarning = \nSophia Script'i çalıştırmadan önce Sophia.ps1 ön ayar dosyasındaki her işlevi özelleştirdiniz mi? ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı ScheduledTasks = Zamanlanan görevler OneDriveUninstalling = OneDrive kaldırılıyor... @@ -16,7 +17,7 @@ DriveSelect = "{0}" klasörünün oluşturulacağ UserFolderRequest = "{0}" klasörünün yerini değiştirmek ister misiniz? UserFolderSelect = "{0}" klasörü için bir klasör seçin UserDefaultFolder = "{0}" klasörünün konumunu varsayılan değerle değiştirmek ister misiniz? -ReservedStorageIsInUse = Ayrılmış depolama kullanımdayken bu işlem desteklenmez. \nLütfen tüm servis işlemlerinin tamamlanmasını bekleyin ve daha sonra tekrar deneyin +ReservedStorageIsInUse = Ayrılmış depolama kullanımdayken bu işlem desteklenmez. \nLütfen tüm servis işlemlerinin tamamlanmasını bekleyin ve daha sonra tekrar deneyin ShortcutPinning = "{0}" kısayolu Başlangıç sekmesine sabitlendi UninstallUWPForAll = Bütün kullanıcılar için UWPAppsTitle = UWP Uygulamaları @@ -26,7 +27,7 @@ HEVCDownloading = "Cihaz Üreticisinden HEVC Video Uza GraphicsPerformanceTitle = Grafik performans tercihi GraphicsPerformanceRequest = Seçtiğiniz bir uygulamanın grafik performansı ayarını "Yüksek performans" olarak belirlemek ister misiniz? TaskNotificationTitle = Bildirim -CleanupTaskNotificationTitle = Önemli bilgi +CleanupTaskNotificationTitle = Önemli Bilgi CleanupTaskDescription = Kullanılmayan Windows dosyaları ve güncellemeleri yerleşik Disk Temizleme uygulaması ile temizleniyor CleanupTaskNotificationEventTitle = Windows kullanılmayan dosyaları ve güncellemeleri temizlemek için görev çalıştırılsın mı? CleanupTaskNotificationEvent = Windows temizliği uzun sürmeyecek. Bir dahaki sefer bildirim 30 gün içinde görünecek @@ -66,6 +67,8 @@ Minute = 1 Dakika NoData = Görüntülenecek bir şey yok NoInternetConnection = İnternet bağlantısı yok NoResponse = https://store.rg-adguard.net ile bağlantı kurulamadı +No = Hayır +Yes = Evet Open = Açık Patient = Lütfen bekleyin... Restore = Onar diff --git a/Sophia/PowerShell 7/Localizations/uk-UA/Sophia.psd1 b/Sophia/PowerShell 7/Localizations/uk-UA/Sophia.psd1 index cbfd1db2..c414b57a 100644 --- a/Sophia/PowerShell 7/Localizations/uk-UA/Sophia.psd1 +++ b/Sophia/PowerShell 7/Localizations/uk-UA/Sophia.psd1 @@ -1,7 +1,8 @@ ConvertFrom-StringData -StringData @' UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64 -UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 версії 2004/20H1 та вище +UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 версії 2004/20H1/20H2 та вище UnsupportedRelease = Виявлено нову версію +CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script? ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений ScheduledTasks = Заплановані задачі OneDriveUninstalling = Видалення OneDrive... @@ -66,6 +67,8 @@ Minute = 1 хвилина NoData = Відсутні дані NoInternetConnection = Відсутнє інтернет-з'єднання NoResponse = Не вдалося встановити зв’язок із https://store.rg-adguard.net +No = Немає +Yes = Так Open = Відкрити Patient = Будь ласка, зачекайте... Restore = Відновити diff --git a/Sophia/PowerShell 7/Sophia.ps1 b/Sophia/PowerShell 7/Sophia.ps1 index fbb2e9cd..e3452cef 100644 --- a/Sophia/PowerShell 7/Sophia.ps1 +++ b/Sophia/PowerShell 7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Windows 10 Sophia Script" - Version: v5.10.3 - Date: 27.04.2021 + Version: v5.10.4 + Date: 07.05.2021 Copyright (c) 2014–2021 farag Copyright (c) 2019–2021 farag & oZ-Zo @@ -11,8 +11,8 @@ Thanks to all https://forum.ru-board.com members involved .DESCRIPTION - Place the "#" char before function if you don't want it to be run - Remove the "#" char before function if you want it to be run + Place the "#" char before function if you don't want to run it + Remove the "#" char before function if you want to run it Every tweak in the preset file has its' corresponding function to restore the default settings .EXAMPLE Run the whole script @@ -71,12 +71,12 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" +$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.10.4 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force -Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia +Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations <# .SYNOPSIS @@ -91,7 +91,7 @@ Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia #> if ($Functions) { - # Regardless of the functions entered as an argument, the "Checkings" function will be executed first, + # Regardless of functions entered as an argument, the "Checkings" function will be executed first, # and the "Refresh" and "Errors" functions will be executed at the end Invoke-Command -ScriptBlock {Checkings} @@ -107,17 +107,17 @@ if ($Functions) #region Protection <# - Checkings - Please, do not touch this function + Checkings. If you want disable a warning message about whether you've customized the preset file remove the Warning argument + Please, do not comment out this function Проверки Пожалуйста, не комментируйте данную функцию #> -Checkings +Checkings -Warning <# - Enable script logging. The log will be being recorded into the script folder - To stop logging just close the console or type "Stop-Transcript" + Enable script logging. Log will be recorded into the script folder + To stop logging just close console or type "Stop-Transcript" Включить логирование работы скрипта. Лог будет записываться в папку скрипта Чтобы остановить логгирование, закройте консоль или наберите "Stop-Transcript" @@ -592,7 +592,7 @@ Hibernate -Disable # Change the %TEMP% environment variable path to "%SystemDrive%\Temp" # Изменить путь переменной среды для %TEMP% на "%SystemDrive%\Temp" -# TempFolder -SystemDrive +TempFolder -SystemDrive # Change %TEMP% environment variable path to "%LOCALAPPDATA%\Temp" (default value) # Изменить путь переменной среды для %TEMP% на "LOCALAPPDATA%\Temp" (значение по умолчанию) @@ -722,28 +722,34 @@ SetInputMethod -English <# Move user folders location to the root of any drive using the interactive menu - User files or folders won't me moved to a new location + User files or folders won't me moved to a new location. Move them manually + They're located in the %SystemDrive%\Users\%Username% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню - Пользовательские файлы и папки не будут перемещены в новое расположение + Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную + По умолчанию они располагаются в папке %SystemDrive%\Users\%Username% #> SetUserShellFolderLocation -Root <# Select folders for user folders location manually using a folder browser dialog - User files or folders won't me moved to a new location + User files or folders won't me moved to a new location. Move them manually + They're located in the %SystemDrive%\Users\%Username% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" - Пользовательские файлы и папки не будут перемещены в новое расположение + Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную + По умолчанию они располагаются в папке %SystemDrive%\Users\%Username% #> # SetUserShellFolderLocation -Custom <# Change user folders location to the default values - User files or folders won't me moved to the new location + User files or folders won't me moved to the new location. Move them manually + They're located in the %SystemDrive%\Users\%Username% folder by default Изменить расположение пользовательских папок на значения по умолчанию - Пользовательские файлы и папки не будут перемещены в новое расположение + Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную + По умолчанию они располагаются в папке %SystemDrive%\Users\%Username% #> # SetUserShellFolderLocation -Default @@ -1412,7 +1418,7 @@ PreviousVersionsPage -Hide Simulate pressing F5 to refresh the desktop Refresh desktop icons, environment variables, taskbar Restart the Start menu - Please, do not touch this function + Please, do not comment out this function Симулировать нажатие F5 для обновления рабочего стола Обновить иконки рабочего стола, переменные среды, панель задач @@ -1423,7 +1429,7 @@ Refresh <# Errors output - Please, do not touch this function + Please, do not comment out this function Вывод ошибок Пожалуйста, не комментируйте данную функцию diff --git a/Sophia/PowerShell 7/Sophia.psd1 b/Sophia/PowerShell 7/Sophia.psd1 index 27655d4f..94478ba9 100644 --- a/Sophia/PowerShell 7/Sophia.psd1 +++ b/Sophia/PowerShell 7/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = 'Sophia.psm1' - ModuleVersion = '5.10.3' + ModuleVersion = '5.10.4' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014–2021 farag & oZ-Zo. All rights reserved.' diff --git a/Sophia/PowerShell 7/Sophia.psm1 b/Sophia/PowerShell 7/Sophia.psm1 index 8078de59..a5dfcff9 100644 --- a/Sophia/PowerShell 7/Sophia.psm1 +++ b/Sophia/PowerShell 7/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS "Windows 10 Sophia Script" is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks - Version: v5.10.3 - Date: 27.04.2021 + Version: v5.10.4 + Date: 07.05.2021 Copyright (c) 2014–2021 farag Copyright (c) 2019–2021 farag & oZ-Zo @@ -45,6 +45,13 @@ #region Checkings function Checkings { + param + ( + [Parameter(Mandatory = $false)] + [switch] + $Warning + ) + Set-StrictMode -Version Latest # Сlear the $Error variable @@ -73,7 +80,7 @@ function Checkings # Checking if the current module version is the latest one try { - $LatestRelease = (Invoke-RestMethod -Uri "https://api.github.com/repos/farag2/Windows-10-Sophia-Script/releases").tag_name | Select-Object -First 1 + $LatestRelease = (Invoke-RestMethod -Uri "https://api.github.com/repos/farag2/Windows-10-Sophia-Script/releases/latest").tag_name $CurrentRelease = (Get-Module -Name Sophia).Version.ToString() switch ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) { @@ -97,6 +104,31 @@ function Checkings # Unblock all files in the folder by removing the Zone.Identifier alternate data stream with a value of "3" Get-ChildItem -Path $PSScriptRoot -Recurse -Force | Unblock-File + # Display a warning message about whether a user has customized the preset file + if ($Warning) + { + $Title = "" + $Message = $Localization.CustomizationWarning + $Yes = $Localization.Yes + $No = $Localization.No + $Options = "&$No", "&$Yes" + $DefaultChoice = 0 + $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) + + switch ($Result) + { + "0" + { + Invoke-Item -Path $PSScriptRoot\Sophia.ps1 + exit + } + "1" + { + return + } + } + } + # Import PowerShell 5.1 modules Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx -UseWindowsPowerShell @@ -1318,6 +1350,10 @@ function ThisPC { "Show" { + if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel)) + { + New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Force + } New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Name "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -PropertyType DWord -Value 0 -Force } "Hide" @@ -5423,6 +5459,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersGUID[$UserFolder] -PropertyType ExpandString -Value $FolderPath -Force + # Save desktop.ini in the UTF-16 LE encoding Set-Content -Path "$FolderPath\desktop.ini" -Value $DesktopINI[$UserFolder] -Encoding Unicode -Force (Get-Item -Path "$FolderPath\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive" (Get-Item -Path "$FolderPath\desktop.ini" -Force).Refresh() @@ -7386,7 +7423,7 @@ namespace FileAssoc { [OutputType([array])] - # Secret static string stored in %SystemRoot%\SysWOW64\shell32.dll + # Secret static string stored in %SystemRoot%\SysWOW64\shell32.dll $userExperience = "User Choice set via Windows User Experience {D18B6DD5-6124-4341-9318-804003BAFA0B}" # Get user SID $userSid = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq $env:USERNAME}).SID @@ -8831,10 +8868,10 @@ function HEIF $ProductURL = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq" $Body = @{ - "type" = "url" - "url" = $ProductURL - "ring" = "Retail" - "lang" = "en-US" + type = "url" + url = $ProductURL + ring = "Retail" + lang = "en-US" } $Raw = Invoke-RestMethod -Method Post -Uri $API -ContentType 'application/x-www-form-urlencoded' -Body $Body @@ -9536,10 +9573,16 @@ while (`$true) } "Delete" { + Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches | ForEach-Object -Process { + Remove-ItemProperty -Path $_.PsPath -Name StateFlags1337 -Force -ErrorAction Ignore + } + + Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" -Name ShowInActionCenter -Force -ErrorAction Ignore + Unregister-ScheduledTask -TaskName "Windows Cleanup" -Confirm:$false Unregister-ScheduledTask -TaskName "Windows Cleanup Notification" -Confirm:$false - Remove-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Recurse -Force + Remove-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Recurse -Force -ErrorAction Ignore } } } @@ -10301,13 +10344,14 @@ function EventViewerCustomView "@ + if (-not (Test-Path -Path "$env:ProgramData\Microsoft\Event Viewer\Views")) { New-Item -Path "$env:ProgramData\Microsoft\Event Viewer\Views" -ItemType Directory -Force } - # Saving ProcessCreation.xml in UTF-8 encoding - Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding Default -Force + # Save ProcessCreation.xml in the UTF-8 with BOM encoding + Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding UTF8BOM -Force } } } @@ -11850,14 +11894,16 @@ public static void PostMessage() Write-Warning -Message $Localization.RestartWarning - .NOTES - Load The WinRT.Runtime.dll and Microsoft.Windows.SDK.NET.dll assemblies to the current session in order to get localized UWP apps names - CsWinRT v1.2.5 - Microsoft.Windows.SDK.NET 10.0.19041.16 + <# + .NOTES + Load The WinRT.Runtime.dll and Microsoft.Windows.SDK.NET.dll assemblies to the current session in order to get localized UWP apps names + CsWinRT v1.2.5 + Microsoft.Windows.SDK.NET 10.0.19041.16 - .LINK - https://github.com/microsoft/CsWinRT - https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref + .LINK + https://github.com/microsoft/CsWinRT + https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref + #> Add-Type -AssemblyName "$PSScriptRoot\Libraries\WinRT.Runtime.dll" Add-Type -AssemblyName "$PSScriptRoot\Libraries\Microsoft.Windows.SDK.NET.dll"