From 73e1c195bbdf40cced559ddaef6ea43cf649b41e Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 10 Apr 2024 00:54:37 +0300 Subject: [PATCH] Fixing typos --- Download_Sophia.ps1 | 9 + README.md | 8 +- README_de-de.md | 8 +- README_uk-ua.md | 8 +- Wrapper/Config/config_Windows_11.json | 29 --- .../de-DE/tooltip_Windows_11.json | 24 --- .../en-US/tooltip_Windows_10.json | 8 +- .../en-US/tooltip_Windows_11.json | 32 +--- .../ru-RU/tooltip_Windows_11.json | 24 --- sophia_script_versions.json | 12 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 52 +++--- src/Sophia_Script_for_Windows_10/Sophia.ps1 | 16 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 50 ++--- .../Sophia.ps1 | 16 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 52 +++--- .../Sophia.ps1 | 16 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 52 +++--- .../Sophia.ps1 | 16 +- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 174 +++--------------- src/Sophia_Script_for_Windows_11/Sophia.ps1 | 28 +-- .../Functions.ps1 | 6 +- .../Localizations/de-DE/Sophia.psd1 | 1 + .../Localizations/en-US/Sophia.psd1 | 1 + .../Localizations/es-ES/Sophia.psd1 | 1 + .../Localizations/fr-FR/Sophia.psd1 | 1 + .../Localizations/hu-HU/Sophia.psd1 | 1 + .../Localizations/it-IT/Sophia.psd1 | 1 + .../Localizations/pl-PL/Sophia.psd1 | 1 + .../Localizations/pt-BR/Sophia.psd1 | 1 + .../Localizations/ru-RU/Sophia.psd1 | 1 + .../Localizations/tr-TR/Sophia.psd1 | 1 + .../Localizations/uk-UA/Sophia.psd1 | 1 + .../Localizations/zh-CN/Sophia.psd1 | 1 + .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 174 +++--------------- .../Sophia.ps1 | 28 +-- supported_windows_builds.json | 4 + 107 files changed, 344 insertions(+), 616 deletions(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index 89c0c4bc..6f1e6696 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -215,7 +215,16 @@ public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); [return: MarshalAs(UnmanagedType.Bool)] public static extern bool SetForegroundWindow(IntPtr hWnd); "@ + } + +# PowerShell 7 has CompilerOptions argument instead of CompilerParameters as PowerShell 5 has +# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-type#-compileroptions +if ($Host.Version.Major -eq 7) +{ + $Signature.Remove("CompilerParameters") + $Signature.Add("CompilerOptions", $CompilerParameters) } + if (-not ("WinAPI.ForegroundWindow" -as [type])) { Add-Type @Signature diff --git a/README.md b/README.md index 1f1a4016..cb505863 100644 --- a/README.md +++ b/README.md @@ -114,10 +114,10 @@ | Version | Marketing name | Build | Editions | |:-----------------------------------------|--------------------:|:-----------:|:-------------------:| | Windows 11 Insider Preview 24H2 | 2024 Update | 22509+ | Home/Pro/Enterprise | -| Windows 11 23H2 | 2023 Update | 22631.3296+ | Home/Pro/Enterprise | -| Windows 10 x64 22H2 | 2022 Update | 19045.4170+ | Home/Pro/Enterprise | -| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4170+ | Enterprise | -| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5579+ | Enterprise | +| Windows 11 23H2 | 2023 Update | 22631.3447+ | Home/Pro/Enterprise | +| Windows 10 x64 22H2 | 2022 Update | 19045.4291+ | Home/Pro/Enterprise | +| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4291+ | Enterprise | +| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5696+ | Enterprise | ### Warning diff --git a/README_de-de.md b/README_de-de.md index feb59a92..200ec5a3 100644 --- a/README_de-de.md +++ b/README_de-de.md @@ -114,10 +114,10 @@ | Version | Marketing name | Build | Editions | |:-----------------------------------------|--------------------:|:-----------:|:-------------------:| | Windows 11 Insider Preview 24H2 | 2024 Update | 22509+ | Home/Pro/Enterprise | -| Windows 11 23H2 | 2023 Update | 22631.3296+ | Home/Pro/Enterprise | -| Windows 10 x64 22H2 | 2022 Update | 19045.4170+ | Home/Pro/Enterprise | -| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4170+ | Enterprise | -| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5579+ | Enterprise | +| Windows 11 23H2 | 2023 Update | 22631.3447+ | Home/Pro/Enterprise | +| Windows 10 x64 22H2 | 2022 Update | 19045.4291+ | Home/Pro/Enterprise | +| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4291+ | Enterprise | +| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5696+ | Enterprise | ### Warnung diff --git a/README_uk-ua.md b/README_uk-ua.md index d55d80c1..045d3e4f 100644 --- a/README_uk-ua.md +++ b/README_uk-ua.md @@ -114,10 +114,10 @@ | Версія | Маркетингова назва | Збіркa | Видання | |:-----------------------------------------|--------------------:|:-----------:|:-------------------:| | Windows 11 Insider Preview 24H2 | 2024 Update | 22509+ | Home/Pro/Enterprise | -| Windows 11 23H2 | 2023 Update | 22631.3296+ | Home/Pro/Enterprise | -| Windows 10 x64 22H2 | 2022 Update | 19045.4170+ | Home/Pro/Enterprise | -| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4170+ | Enterprise | -| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5579+ | Enterprise | +| Windows 11 23H2 | 2023 Update | 22631.3447+ | Home/Pro/Enterprise | +| Windows 10 x64 22H2 | 2022 Update | 19045.4291+ | Home/Pro/Enterprise | +| Windows 10 x64 21H2 Enterprise LTSC 2021 | October 2021 Update | 19044.4291+ | Enterprise | +| Windows 10 x64 1809 Enterprise LTSC 2019 | October 2018 Update | 17763.5696+ | Enterprise | ### Увага diff --git a/Wrapper/Config/config_Windows_11.json b/Wrapper/Config/config_Windows_11.json index 224b6f02..3015a1a8 100644 --- a/Wrapper/Config/config_Windows_11.json +++ b/Wrapper/Config/config_Windows_11.json @@ -1657,19 +1657,6 @@ "Preset": "", "WindowsDefault": "" }, - { - "Region": "Start menu", - "Control": "chk", - "Required": "false", - "Function": "UnpinAllStartApps", - "Arg": { - "Zero": { - "Tag": "" - } - }, - "Preset": "", - "WindowsDefault": "" - }, { "Region": "Start menu", "Control": "cmb", @@ -2151,22 +2138,6 @@ "Preset": "Zero", "WindowsDefault": "One" }, - { - "Region": "Context menu", - "Control": "cmb", - "Required": "false", - "Function": "ShareContext", - "Arg": { - "Zero": { - "Tag": "Hide" - }, - "One": { - "Tag": "Show" - } - }, - "Preset": "Zero", - "WindowsDefault": "One" - }, { "Region": "Context menu", "Control": "cmb", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index 785dbd50..11126f2a 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -1461,16 +1461,6 @@ } } }, - { - "Region": "Start menu", - "Function": "UnpinAllStartApps", - "Arg": { - "Zero": { - "Tag": "", - "ToolTip": "Entferne alle \"Pins\" von den Start-Apps." - } - } - }, { "Region": "Start menu", "Function": "StartLayout", @@ -1885,20 +1875,6 @@ } } }, - { - "Region": "Context menu", - "Function": "ShareContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Eintrag \"Teilen\" im Kontextmenü ausblenden." - }, - "One": { - "Tag": "Show", - "ToolTip": "Eintrag \"Teilen\" im Kontextmenü anzeigen (Standardeinstellung)." - } - } - }, { "Region": "Context menu", "Function": "EditWithClipchampContext", diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index e750598b..7dc3e240 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -952,7 +952,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not Stop error code when BSoD occurs (default value)." + "ToolTip": "Do not display stop error code when BSoD occurs (default value)." } } }, @@ -1120,15 +1120,15 @@ "Arg": { "Zero": { "Tag": "Root", - "ToolTip": "Change 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. Move them manually. They're located in the %USERPROFILE% folder by default." + "ToolTip": "Change user folders location to the root of any drive using the interactive menu. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." }, "One": { "Tag": "Custom", - "ToolTip": "Select folders for user folders location manually using a folder browser dialog. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." + "ToolTip": "Select folders for user folders location manually using a folder browser dialog. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." }, "Two": { "Tag": "Default", - "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." + "ToolTip": "Change user folders location to the default values. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." } } }, diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index 8c790e06..67b2c7f9 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -886,7 +886,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not Stop error code when BSoD occurs (default value)." + "ToolTip": "Do not display stop error code when BSoD occurs (default value)." } } }, @@ -1054,15 +1054,15 @@ "Arg": { "Zero": { "Tag": "Root", - "ToolTip": "Change 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. Move them manually. They're located in the %USERPROFILE% folder by default." + "ToolTip": "Change user folders location to the root of any drive using the interactive menu. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." }, "One": { "Tag": "Custom", - "ToolTip": "Select folders for user folders location manually using a folder browser dialog. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." + "ToolTip": "Select folders for user folders location manually using a folder browser dialog. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default." }, "Two": { "Tag": "Default", - "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." + "ToolTip": "Change user folders location to the default values. User files or folders won't be moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." } } }, @@ -1461,16 +1461,6 @@ } } }, - { - "Region": "Start menu", - "Function": "UnpinAllStartApps", - "Arg": { - "Zero": { - "Tag": "", - "ToolTip": "Unpin all Start apps." - } - } - }, { "Region": "Start menu", "Function": "StartLayout", @@ -1885,20 +1875,6 @@ } } }, - { - "Region": "Context menu", - "Function": "ShareContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Hide the \"Share\" item from the context menu." - }, - "One": { - "Tag": "Show", - "ToolTip": "Show the \"Share\" item in the context menu (default value)." - } - } - }, { "Region": "Context menu", "Function": "EditWithClipchampContext", diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index 5c74ff31..d7ce52b2 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -1461,16 +1461,6 @@ } } }, - { - "Region": "Start menu", - "Function": "UnpinAllStartApps", - "Arg": { - "Zero": { - "Tag": "", - "ToolTip": "Открепить все приложения от начального экрана." - } - } - }, { "Region": "Start menu", "Function": "StartLayout", @@ -1885,20 +1875,6 @@ } } }, - { - "Region": "Context menu", - "Function": "ShareContext", - "Arg": { - "Zero": { - "Tag": "Hide", - "ToolTip": "Скрыть пункт \"Отправить\" (поделиться) из контекстного меню." - }, - "One": { - "Tag": "Show", - "ToolTip": "Отобразить пункт \"Отправить\" (поделиться) в контекстном меню (значение по умолчанию). Отображение элемента \"Поделиться\" в контекстном меню приведет к отключению проводника из Windows 10." - } - } - }, { "Region": "Context menu", "Function": "EditWithClipchampContext", diff --git a/sophia_script_versions.json b/sophia_script_versions.json index 069ebf45..4757ea04 100644 --- a/sophia_script_versions.json +++ b/sophia_script_versions.json @@ -1,9 +1,9 @@ { - "Sophia_Script_Windows_10_PowerShell_5_1": "5.18.4", - "Sophia_Script_Windows_10_PowerShell_7": "5.18.4", - "Sophia_Script_Windows_10_LTSC2019": "5.8.4", - "Sophia_Script_Windows_10_LTSC2021": "5.18.4", - "Sophia_Script_Windows_11_PowerShell_5_1": "6.6.4", - "Sophia_Script_Windows_11_PowerShell_7": "6.6.4", + "Sophia_Script_Windows_10_PowerShell_5_1": "5.18.5", + "Sophia_Script_Windows_10_PowerShell_7": "5.18.5", + "Sophia_Script_Windows_10_LTSC2019": "5.8.5", + "Sophia_Script_Windows_10_LTSC2021": "5.18.5", + "Sophia_Script_Windows_11_PowerShell_5_1": "6.6.5", + "Sophia_Script_Windows_11_PowerShell_7": "6.6.5", "Sophia_Script_Wrapper": "2.7.0" } diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1 index 5e9dfea9..cd71e2be 100644 --- a/src/Sophia_Script_for_Windows_10/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 index 52c12353..56376412 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 @@ -57,6 +57,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 07ecd635..d22f1225 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 5465afae..52401c8c 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 3dbb5973..c220e211 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 @@ -57,6 +57,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 4f18f28a..ce38b96b 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 @@ -57,6 +57,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 ba556a1b..56442b10 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 ccb63236..b62889a0 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 @@ -57,6 +57,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 9474f2c4..044bb276 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 @@ -57,6 +57,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 dc8c6f3a..ae6cf3a4 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 @@ -57,6 +57,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 ee691332..465c3994 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 @@ -57,6 +57,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 6bbba916..c3e9aa08 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 @@ -57,6 +57,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 9f972ac2..49e901d7 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 @@ -57,6 +57,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 index d79baf86..4cb501f9 100644 --- a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.18.4' + ModuleVersion = '5.18.5' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 5ac1f12d..313e7bbc 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.4170+ + Builds: 19045.4291+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -4527,14 +4527,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -4588,7 +4580,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -4713,10 +4705,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -4734,10 +4726,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -5119,7 +5109,7 @@ public static bool MarkFileDelete (string sourcefile) # Do not restart the File Explorer process automatically if it stops in order to unload libraries New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 # Restart the File Explorer process automatically if it stops in order to unload libraries @@ -5835,7 +5825,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -7166,7 +7156,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -7209,7 +7199,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -9038,6 +9028,9 @@ function WindowsLatestUpdate https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with + .NOTES Machine-wide #> @@ -9068,6 +9061,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -10446,7 +10448,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -10496,7 +10498,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -15459,7 +15461,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index 622a0877..5dfa5908 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10" - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.4170+ + Builds: 19045.4291+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia @@ -657,7 +657,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -780,7 +780,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -791,7 +791,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -802,7 +802,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 index 168e17b7..37e41f6a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.8.4 - Date: 07.04.2024 + Version: v5.8.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.8.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.8.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 index d1d57981..4425a1fc 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 @@ -48,6 +48,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 002224b6..a348571f 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 @@ -48,6 +48,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 5fb8e5fb..e7345a1f 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 @@ -48,6 +48,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 505fc4b3..6bde01b0 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 @@ -48,6 +48,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 50817dfe..77bd11e8 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 @@ -48,6 +48,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 b1c5484d..87d0fcd3 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 @@ -48,6 +48,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 d207a587..8cb4b0c7 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 @@ -48,6 +48,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 754dae31..57c75042 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 @@ -48,6 +48,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 c1ab3dd0..402af9de 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 @@ -48,6 +48,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 92b2adb2..baf4fafa 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 @@ -48,6 +48,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 012092ba..2c299fd3 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 @@ -46,6 +46,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 aede0876..8d867e69 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 @@ -48,6 +48,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 index 37ce0957..d6690b9c 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.8.4' + ModuleVersion = '5.8.5' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 95525516..4a092288 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.8.4 - Date: 07.04.2024 + Version: v5.8.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 10 version Version: 1809 - Build: 17763.5579+ + Build: 17763.5696+ Edition: Enterprise LTSC Architecture: x64 @@ -3551,14 +3551,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -3612,7 +3604,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -3737,10 +3729,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -3758,10 +3750,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -4559,7 +4549,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -5874,7 +5864,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -5917,7 +5907,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -7398,6 +7388,9 @@ function ActiveHours https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + .NOTES Machine-wide #> @@ -7428,6 +7421,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -8758,7 +8760,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -8808,7 +8810,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -12002,7 +12004,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 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 844d5a57..ee097265 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2019" - Version: v5.8.4 - Date: 07.04.2024 + Version: v5.8.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 10 version Version: 1809 - Build: 17763.5579+ + Build: 17763.5696+ Edition: Enterprise LTSC 2019 Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.8.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.8.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia @@ -506,7 +506,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -629,7 +629,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -640,7 +640,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -651,7 +651,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 index da304501..29ed06b6 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.18.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.18.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 index 4a7ea595..b320f40b 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 @@ -50,6 +50,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 065074b8..6a4e5cdb 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 @@ -50,6 +50,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 59568106..be8954d0 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 @@ -50,6 +50,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 a03bba79..fd2a4310 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 @@ -50,6 +50,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 2d92027c..0cbf94b8 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 @@ -50,6 +50,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 419869f6..13a083af 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 @@ -50,6 +50,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 39529c8f..01ad4b4a 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 @@ -50,6 +50,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 655579f9..90fb4647 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 @@ -50,6 +50,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 cd3a8553..60b9b3bf 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 @@ -50,6 +50,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 c1a6b856..88b3fc8b 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 @@ -50,6 +50,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 4d8c3499..29de3a77 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 @@ -50,6 +50,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 a6dfca7a..6faa4017 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 @@ -50,6 +50,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 index d79baf86..4cb501f9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.18.4' + ModuleVersion = '5.18.5' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 34cabf45..e25dd6a8 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.4170+ + Build: 19044.4291+ Edition: Enterprise LTSC 2021 Architecture: x64 @@ -617,7 +617,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt $LatestSupportedBuild) { # Check Windows minor build version - # https://support.microsoft.com/en-us/topic/windows-10-update-history-8127c2c6-6edf-4fdf-8b9f-0f7be1ef3562 + # https://support.microsoft.com/en-us/topic/windows-10-update-history-857b8ccb-71e4-49e5-b3f6-7073197d98fb $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR, $LatestSupportedBuild) @@ -3923,14 +3923,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -3984,7 +3976,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -4109,10 +4101,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -4130,10 +4122,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -4931,7 +4921,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -6262,7 +6252,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -6305,7 +6295,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -8025,6 +8015,9 @@ function ActiveHours https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + .NOTES Machine-wide #> @@ -8055,6 +8048,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -9385,7 +9387,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -9435,7 +9437,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -13193,7 +13195,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 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 4deab719..428ecf8a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2021" - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 10 version Version: 21H2 - Build: 19044.4170+ + Build: 19044.4291+ Edition: Enterprise LTSC 2021 Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.18.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.18.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia @@ -562,7 +562,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -685,7 +685,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -696,7 +696,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -707,7 +707,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 index b2c9b001..2d9c6b84 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.5 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 index 52c12353..56376412 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 @@ -57,6 +57,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 07ecd635..d22f1225 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 5465afae..52401c8c 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 3dbb5973..c220e211 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 @@ -57,6 +57,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 4f18f28a..ce38b96b 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 @@ -57,6 +57,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 ba556a1b..56442b10 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 @@ -57,6 +57,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 ccb63236..b62889a0 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 @@ -57,6 +57,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 9474f2c4..044bb276 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 @@ -57,6 +57,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 dc8c6f3a..ae6cf3a4 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 @@ -57,6 +57,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 ee691332..465c3994 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 @@ -57,6 +57,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 6bbba916..c3e9aa08 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 @@ -57,6 +57,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 9f972ac2..49e901d7 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 @@ -57,6 +57,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 index a85e52dc..8e079226 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.18.4' + ModuleVersion = '5.18.5' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index e6ce1102..ee9ea1bc 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.4170+ + Builds: 19045.4291+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -4533,14 +4533,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -4594,7 +4586,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -4719,10 +4711,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -4740,10 +4732,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -5125,7 +5115,7 @@ public static bool MarkFileDelete (string sourcefile) # Do not restart the File Explorer process automatically if it stops in order to unload libraries New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 # Restart the File Explorer process automatically if it stops in order to unload libraries @@ -5841,7 +5831,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -7172,7 +7162,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -7215,7 +7205,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -9044,6 +9034,9 @@ function WindowsLatestUpdate https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + .NOTES Machine-wide #> @@ -9074,6 +9067,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034763 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -10452,7 +10454,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -10502,7 +10504,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -15485,7 +15487,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 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 fdbeddf7..d699a85d 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" - Version: v5.18.4 - Date: 07.04.2024 + Version: v5.18.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 10 versions Version: 22H2 - Builds: 19045.4170+ + Builds: 19045.4291+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.5 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" # PowerShell 7 doesn't load en-us localization automatically if there is no localization folder in user's language which is determined by $PSUICulture # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-localizeddata?view=powershell-7.3 @@ -666,7 +666,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -789,7 +789,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -800,7 +800,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -811,7 +811,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index 108171e3..c2573b72 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 index 8d94e82c..b596ee08 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 @@ -56,6 +56,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 0823caca..bb4b26e4 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 d9cfaee4..ee8d2ff9 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 5dc0d7bb..878b4236 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 @@ -56,6 +56,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 19330030..7901b30c 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 @@ -56,6 +56,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 234e7f7c..47a56809 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 f70585f6..e2c78877 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 @@ -56,6 +56,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 00d9b0b9..846625c9 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 @@ -56,6 +56,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 5c212fee..1e340280 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 @@ -56,6 +56,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 9c340970..ef4efe56 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 @@ -56,6 +56,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 cebb4bae..87a826b2 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 @@ -56,6 +56,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 e524d7ae..10cd79a7 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 @@ -56,6 +56,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 index 90225711..c74347ef 100644 --- a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.6.4' + ModuleVersion = '6.6.5' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index cf8aa54a..fa8b8ce4 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 11 versions Version: 23H2+ - Builds: 22631.3296+ + Builds: 22631.3447+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -4128,14 +4128,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -4189,7 +4181,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -4314,10 +4306,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -4335,10 +4327,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -4719,7 +4709,7 @@ public static bool MarkFileDelete (string sourcefile) # Do not restart the File Explorer process automatically if it stops in order to unload libraries New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 # Restart the File Explorer process automatically if it stops in order to unload libraries @@ -5435,7 +5425,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -6967,7 +6957,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -7010,7 +7000,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -8635,6 +8625,9 @@ function NetworkDiscovery https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034765 release + .NOTES Machine-wide #> @@ -8665,6 +8658,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034765 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -10072,7 +10074,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -10203,7 +10205,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -10566,73 +10568,6 @@ function Install-WSL #endregion WSL #region Start menu -<# - .SYNOPSIS - Unpin all Start apps - - .EXAMPLE - UnpinAllStartApps - - .NOTES - Current user -#> -function UnpinAllStartApps -{ - Remove-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start*.bin" -Force -ErrorAction Ignore - - # https://gist.github.com/rad1ke - $HexString = "E27AE14B01FC4D1B9C00810BDE6E51854E5A5F47005BB1498A5C92AF9084F95E9BDB91E2EEDDD701300B000067DEFA31529529B3D32D8092A6EB66C8D5EADB19CF9B13518AAB9 -3275D9CEEF37E62C3574C036F327D1110AB0977996D67A2F8FA897D7207BEE85586B8CE6AD4F9736AA2154E3DCC9D082996984B76F1C73067F124F92A41F2B2CA83EF35436670979556FAE85AB10EA1 -6C932C3AECE1D45DA06D64BC42F4565AD0FCB8C63CDE7F6BB97ACE300198C3EACA3E1C974F547B1A7CF5B9C6A912448AB38A3BE2D6F0230A4A9AACC710C3E75088754CC2FB054B55B1D6ED7AD41EB8B -0C9D4C274E87A525582F6CFBEAE5A904A1B0A3BA07939B79CAB4F1C3DF35BF88DE846E64555F0AEB47562C329206A9975664558849E0C251E8832D52B4FD7560347E5606AC882B9FC1F43C96922C0EA -1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84851481FE1FF41CA9A2534CCE7AFC45 -584370B4940DF30555536344249690F00C3A7E2552E352FE733C7ED2F80A29AD16937810AF805A444A344188C0CBDA51E5466BF45F2587508A69581CC2BCDAE06CB363658D94CD60569352FDA17AE7C -DD785810F369B41F2D15930430A809567CC6C643FE7986CAD545EF3DB40CA6FA9220BFC7F65610AECB22799838B80DE73AF549923F8219FFAAD64780E2DB53133D73890294E77F9B0970484E86A0507 -37724FF15281C1726D334D3C9A67A85A78AE33F55DB675DAA31C47A156C0F8212DCEE228537668F4BF898C0CB869B74C98DF7EFBE0132359E5156417A85CC634B86314FAB47FB9A8DFEAFA1AEFC5E59 -9A3F744BA51E8E6823F80E1529187FA5A78420B1EC091FD93134A71A0A0F478341D9ABD2CEABD5444160023C9CAB0A5C2BAC97F55F1E98FD21F2CFF03D2D24E0C4642F4A8A6E7627BD143AFC1A6DAE6 -97B286C941B5EAAF57D34D598317C97F7CA23544B219196661B73E9DD27EBFE204B43C98C241AB02D2AA3A4EE7B2B477FC5E31642AF613BF356DFBE8AD666CE93267A3D45FD40F83CABAA2F0AE2601C -470D98AC4ABBCFA968882986297D06D81C1BE1EE8A0E64FB7543981B8E632809FBA7606BF518E8792EF4FBDC5CFC55690D8DF60812ECB2A39EB24B6F941C966DEF89E61E000D3F28CB6B260B17A53CE -8EEFC371C98BBEE72DE915BA9023DC74EEE7895D60AC2D13B51E73EB37E0FB714BB259614F3F7CBECD66EBDAE52FCB01D778C413DE0ED739DEA7AE48543614B93D46F63D1076E3C7696863D8F64EAC7 -CAA7224FEB1A15E114358F379CA686AD7F09E75E2350F38A3B27F38D2DEFFB008B007371BD32E65B39FF6661DA237F277AC4A9C4DA5A1753250BBD3FA7ECD07E594C2014B5E26E06414B6588211CE43 -9DAA2A352B017C196B4F20049DDBF2E4514E2CD7545E5AE22E877D5B6975D7FCDC61D49958258A093B05DB6D7C6457B9C260A420B1A15C6010B9C4AE68078E1B9592C97B47BFFE2C2F10A10129CC3B0 -87041840091D2A6F5FDA1561E2F0315F8F0BF46204AA4E7C12DC819A1ABCDEB02400AA2FD46ECE2B8698C19F61ECA68232536A712BC858029D40FED5C20A051BCE6D316B03A97FE7051EE0C952A7EB9 -FD2F77D9FBE75022FF5D13B168BD0B004D9C803E8F8C5D8F25CB22ACC97D8EDE169E5D50FCD87444C2029F021D87807B4A04EF148EF1C814E2827FABBCDE9E042140E0D890CEDE88B21F9824956D8F1 -8EF3A8AC85194248915F53AF26F70BC5FDC26E415936EAB0DD78398B725F5419E8DDFD46EE9A17A37087507F9D20358208A65366C4824518E75413FDE5F27FC5DD8132EFB4414A5BDDDA1D64593D863 -60062373FEE36F51ED56CA419FAD69751F76588995F9E2BE75ED13D2DED91EC1DED011752089716DD9C89DE21B8E52AD08CF1C463B0D79111200DF5269C646FBF0E3091A413CA70F6CA8F75BE257DB0 -28329F7224023603C743AB204F8DAB5C273975FA93FBAAD84D0E4D72ABAC3A4E23D7236C848AD317E73E114C5B7438B8248C75B528E19E26D9BF908001A3214A137F24C74BC7D9910F858E47789FDFE -52AB712AE758AE15C4D86ED3C23D4EB78C5ED94D8A5AB8AA93C43E18FC0CE418AC79DF945E81A58B70332A2C03C445436E8013E0B82AC59AF856C6A00812BCD3B6209449B6D008CA37D8A9210A61049 -350AD07F4E88FC7FBEC9FC64BC60C318912E36DBEA6D4058AF35CACD6E790C96B66EAE5966C47D3E1C4ACF42BF04D58FF363D20DBA61C9D32EBE433A45AFE02B41FD6FC91AE7157CCD7FACEC294623F -825DE576F72A8245D2BC5D1D7C71B183166C8F0DAF9CF8ED6F1DAEBB0349D82E57BB81DB946128A5440235AD6222A294B27E97738D49F52170DE1B1B922C8C548215FD0D2980D7BA9B8F3133D9415BA -B29670A5EDEC4858EB9D1A7E8FBD0296CB6D610BDD44A1A450EDEC61983152C237225F7AABABD482EB08328BC338D87BA1FE30864D9A97C20FA42CAEDF6359457C8BB26032A9728E819FFF9BF4F7154 -69A0A4506A4CA1625E79CAE215683CDAADFB1E68ADC4987FF3FD7E9859CB40291478A4D2B281AEFEB97DC45C7F991311A68C2F173E2377709C355C6870DC4C14E5534120539C1DB0AD0D6E331D67058 -1F6E352DCB3E34D61E6742F957FE9F39854A324E07C68A17BE9CB19446583EDDAAFD0E433A54F4E0854709BD47B24AC76DF75849B9D917FF2B0F4228C94EA01CF658430B2C18F6EEAB104B9A935C6FB -FEA494190BF3446DCC8C8AAF62BA01F0BFB18E15503C27558DB70C48EFB0AEA0B600F985C904E9F244E2A08464AE980E1A8CC05F22C9D4C23D753FD5250D0E190CB0CAC71404CF52A8CCEC988DBA22F -2164E203FB52064F38D8277764FECB0E2D811C307E4687CF6A245B2B89389D188E1F115EF2B36BA1BE63222A2C7E886A279B08ADF70109903F70EA1068137E72E894758614FE4BBAF333B8FC3EA98B1 -49B3403FF8655FAAE1DF4877B5CDABC434B7336AB24C25A85246ADAA24DECB5A39F8FD7A5549F23F112244B7EE9E447D3226F2259428FDC0C3D6CD3A47B39092532B803FEBB6FFCC1ADF26C7857F04F -294F16A9DA7DD851D4EC99BBCF853FD3435A256F47DD3CB9480365C2896A1D0E2314940968E4E3714723B4C1CDD368581FED307C8B279AE6FB8BB72EC0A093733E2D9CC6B43320766D3B43D3C554CA8 -2EEEF7B09850D29B2F412DEF3D0BD9194CAE8113B3B38085C77C238CB8D15BF6D6AB42C193F4E2F27F8BEDABB2D6ADE9E486B6AFAFD8D5DBE3B7D7305790F96ECDCC2DD016C5B9B200CB72E6CF54D71 -F69A01CDE4E3A0A4C5A03627DECD491F215C1420EB07AB8FD2763FCFF5211EB964C82E69DA208BDFA76306D54642B117DCB9A92927CE2E633338D4EEA63B571349B8DA1D4B5523C4CA10308769E4F46 -1ADD16DD5DFDB0E705187593DEF5CCCF659E48366462CC21D7930E1064234157A7A08E9C90927A37C5CF23D54C755002E4E657BB6E70D9B4BE7C468C19D6969FAE138EBF2C20DD3F5A0BC4C0E97D5BF -DB8744A21396C44549242817BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932 -6CA43526CFAEDF9922EAC3204FEB84AAED781EE5516FA5B4DCAB85DB5FF33CEC454DAA375BDA5EEA7C871C310AEDC5BD6B220B59B901D377E22FFFE95FEDA28CE2CE33CAEB8541EE05E1B5650D776C4 -B2A246DB4613E2CC5D96A44D24AE662D848A7C9E3E922AFF0632B7B40505402956FABC5C3AAB55EEE29085046C127E8776CEFC1690B76EE99371AF9B1D7EF6F79E78325DD3BD8377E9B73B936C6F261 -1D0A1223A4D7C6CF3037922DD0686A701FF86761993F294D26E13A7BB8B1C61ACAF38D50334A88DABB3FA412B4FC79F6FBFD0D0A92301484FF1BD1CF3DC67780E4562E05CCA329CABA7CB2B77D9A707 -BDEE24B1E5E4ED6CC9D5A337908BE5303E477736C8A75051A8FBD4E3CB6360D8F0A992A48F333434D4AE712EC830BCB5EAA98788B6C76C" - - $HexString = $HexString.Replace("`n","").Replace("`r","") - $Bytes = [byte[]]::new($HexString.Length/2) - - for ($i = 0; $i -lt $HexString.Length; $i += 2) - { - $Bytes[$i/2] = [System.Convert]::ToByte($HexString.Substring($i, 2), 16) - } - { - $Bytes[$i/2] = [System.Convert]::ToByte($HexString.Substring($i, 2), 16) - } - - Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" -Value $Bytes -Encoding Byte -Force -} - <# .SYNOPSIS Configure Start layout @@ -14095,61 +14030,6 @@ function CastToDeviceContext } } -<# - .SYNOPSIS - The "Share" item in the context menu - - .PARAMETER Hide - Hide the "Share" item from the context menu - - .PARAMETER Show - Show the "Share" item in the context menu - - .EXAMPLE - ShareContext -Hide - - .EXAMPLE - ShareContext -Show - - .NOTES - Current user -#> -function ShareContext -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Hide" - )] - [switch] - $Hide, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Show" - )] - [switch] - $Show - ) - - switch ($PSCmdlet.ParameterSetName) - { - "Hide" - { - Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Recurse -Force -ErrorAction Ignore - } - "Show" - { - if (-not (Test-Path -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing")) - { - New-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Force - } - New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Name "(default)" -PropertyType String -Value "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -Force - } - } -} - <# .SYNOPSIS The "Edit with Clipchamp" item in the media files context menu @@ -15004,7 +14884,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index fa683694..b2507035 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11" - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 11 versions Version: 23H2+ - Builds: 22631.3296+ + Builds: 22631.3447+ Editions: Home/Pro/Enterprise .NOTES @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia @@ -632,7 +632,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -755,7 +755,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -766,7 +766,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -777,7 +777,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию @@ -1037,10 +1037,6 @@ SATADrivesRemovableMedia -Disable #endregion WSL #region Start menu -# Unpin all Start apps -# Открепить все приложения от начального экрана -# UnpinAllStartApps - # Show default Start layout (default value) # Отображать стандартный макет начального экрана (значение по умолчанию) # StartLayout -Default @@ -1331,14 +1327,6 @@ CastToDeviceContext -Hide # Отобразить пункт "Передать на устройство" в контекстном меню медиа-файлов и папок (значение по умолчанию) # CastToDeviceContext -Show -# Hide the "Share" item from the context menu -# Скрыть пункт "Отправить" (поделиться) из контекстного меню -ShareContext -Hide - -# Show the "Share" item in the context menu (default value) -# Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию) -# ShareContext -Show - # Hide the "Edit with Clipchamp" item from the media files context menu # Скрыть пункт "Редактировать в Climpchamp" из контекстного меню EditWithClipchampContext -Hide diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 index dbeae26b..f627f7e1 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -49,7 +49,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.4 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.5 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 index 8d94e82c..b596ee08 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 @@ -56,6 +56,7 @@ ErrorsMessage = Fehler/Warnungen DialogBoxOpening = Anzeigen des Dialogfensters... Disable = Deaktivieren Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. AllFilesFilter = Alle Dateien FolderSelect = Einen Ordner auswählen FilesWontBeMoved = Dateien werden nicht verschoben. 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 0823caca..bb4b26e4 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errors/Warnings DialogBoxOpening = Displaying the dialog box... Disable = Disable Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. AllFilesFilter = All Files FolderSelect = Select a folder FilesWontBeMoved = Files will not be moved. 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 d9cfaee4..ee8d2ff9 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errores/Advertencias DialogBoxOpening = Viendo el cuadro de diálogo... Disable = Desactivar Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. AllFilesFilter = Todos los Archivos FolderSelect = Seleccione una carpeta FilesWontBeMoved = Los archivos no se transferirán. 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 5dc0d7bb..878b4236 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 @@ -56,6 +56,7 @@ ErrorsMessage = Erreurs/Avertissements DialogBoxOpening = Afficher la boîte de dialogue... Disable = Désactiver Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. AllFilesFilter = Tous les Fichiers FolderSelect = Sélectionner un dossier FilesWontBeMoved = Les fichiers ne seront pas déplacés. 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 19330030..7901b30c 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 @@ -56,6 +56,7 @@ ErrorsMessage = Hibák/Figyelmeztetések DialogBoxOpening = Párbeszédablak megjelenítése... Disable = Kikapcsolás Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. AllFilesFilter = Minden fájl FolderSelect = Válasszon ki egy könyvtárat FilesWontBeMoved = A fájlok nem lesznek áthelyezve. 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 234e7f7c..47a56809 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 @@ -56,6 +56,7 @@ ErrorsMessage = Errori/avvisi DialogBoxOpening = Visualizzazione della finestra di dialogo... Disable = Disattivare Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. AllFilesFilter = Tutti i file FolderSelect = Selezionare una cartella FilesWontBeMoved = I file non verranno trasferiti. 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 f70585f6..e2c78877 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 @@ -56,6 +56,7 @@ ErrorsMessage = Błędy/Ostrzeżenia DialogBoxOpening = Wyświetlanie okna dialogowego... Disable = Wyłączyć Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. AllFilesFilter = Wszystkie pliki FolderSelect = Wybierz folder FilesWontBeMoved = Pliki nie zostaną przeniesione. 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 00d9b0b9..846625c9 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 @@ -56,6 +56,7 @@ ErrorsMessage = Erros/Avisos DialogBoxOpening = Exibindo a caixa de diálogo... Disable = Desativar Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. AllFilesFilter = Todos os arquivos FolderSelect = Escolha uma pasta FilesWontBeMoved = Os arquivos não serão transferidos. 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 5c212fee..1e340280 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 @@ -56,6 +56,7 @@ ErrorsMessage = Ошибки/предупрежде DialogBoxOpening = Диалоговое окно открывается... Disable = Отключить Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. AllFilesFilter = Все файлы FolderSelect = Выберите папку FilesWontBeMoved = Файлы не будут перенесены. 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 9c340970..ef4efe56 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 @@ -56,6 +56,7 @@ ErrorsMessage = Hatalar/Uyarılar DialogBoxOpening = İletişim kutusu görüntüleniyor... Disable = Devre dışı bırak Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. AllFilesFilter = Tüm Dosyalar FolderSelect = Klasör seç FilesWontBeMoved = Dosyalar taşınmayacak. 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 cebb4bae..87a826b2 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 @@ -56,6 +56,7 @@ ErrorsMessage = Помилки/попереджен DialogBoxOpening = Діалогове вікно відкривається... Disable = Вимкнути Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. AllFilesFilter = Усі файли FolderSelect = Виберіть папку FilesWontBeMoved = Файли не будуть перенесені. 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 e524d7ae..10cd79a7 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 @@ -56,6 +56,7 @@ ErrorsMessage = 错误/警告 DialogBoxOpening = 显示对话窗口..... Disable = 禁用 Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 AllFilesFilter = 所有文件 FolderSelect = 选择一个文件夹 FilesWontBeMoved = 文件将不会被移动。 diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 index f68dd59f..24b64945 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.6.4' + ModuleVersion = '6.6.5' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 29742945..7898487f 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -12,7 +12,7 @@ .NOTES Supported Windows 11 versions Version: 23H2+ - Builds: 22631.3296+ + Builds: 22631.3447+ Editions: Home/Pro/Enterprise .LINK GitHub @@ -4131,14 +4131,6 @@ function Cursors $Default ) - if (-not (Test-Path -Path "$env:SystemRoot\System32\tar.exe")) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - switch ($PSCmdlet.ParameterSetName) { "Dark" @@ -4192,7 +4184,7 @@ function Cursors # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\dark.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_dark_v2.2\$($_.Name)", $true) } @@ -4317,10 +4309,10 @@ function Cursors } # Extract archive. We cannot call tar.exe due to it fails to extract files if username has cyrillic first letter in lowercase - # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\dark.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" + # Start-Process -FilePath "$env:SystemRoot\System32\tar.exe" -ArgumentList "-xf `"$DownloadsFolder\light.zip`" -C `"$env:SystemRoot\Cursors\W11_dark_v2.2`" -v" # https://github.com/PowerShell/PowerShell/issues/21070 Add-Type -Assembly System.IO.Compression.FileSystem - $ZIP = [IO.Compression.ZipFile]::OpenRead("C:\Users\тест\Downloads\dark.zip") + $ZIP = [IO.Compression.ZipFile]::OpenRead("$DownloadsFolder\light.zip") $ZIP.Entries | ForEach-Object -Process { [IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$env:SystemRoot\Cursors\W11_light_v2.2\$($_.Name)", $true) } @@ -4338,10 +4330,8 @@ function Cursors New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name IBeam -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\beam.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name No -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\unavailable.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name NWPen -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\handwriting.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force - # This is not a typo - New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Person -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\person.cur" -Force + New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name Pin -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\pin.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name precisionhair -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\precision.cur" -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name "Scheme Source" -PropertyType DWord -Value 1 -Force New-ItemProperty -Path "HKCU:\Control Panel\Cursors" -Name SizeAll -PropertyType ExpandString -Value "%SystemRoot%\Cursors\W11_light_v2.2\move.cur" -Force @@ -4723,7 +4713,7 @@ public static bool MarkFileDelete (string sourcefile) # Do not restart the File Explorer process automatically if it stops in order to unload libraries New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 # Restart the File Explorer process automatically if it stops in order to unload libraries @@ -5439,7 +5429,7 @@ function Win32LongPathLimit Display Stop error code when BSoD occurs .PARAMETER Disable - Do not Stop error code when BSoD occurs + Do not display stop error code when BSoD occurs .EXAMPLE BSoDStopError -Enable @@ -6971,7 +6961,7 @@ function InputMethod Set-UserShellFolderLocation -Default .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location .NOTES Current user @@ -7014,7 +7004,7 @@ function Set-UserShellFolderLocation https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath .NOTES - User files or folders won't me moved to a new location + User files or folders won't be moved to a new location #> function Set-UserShellFolder { @@ -8639,6 +8629,9 @@ function NetworkDiscovery https://github.com/default-username-was-already-taken/set-fileassoc https://forum.ru-board.com/profile.cgi?action=show&member=westlife + .NOTES + Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034765 release + .NOTES Machine-wide #> @@ -8669,6 +8662,15 @@ function Set-Association $Icon ) + # Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034765 release + if (@(".pdf", "http", "https") -contains $Extension) + { + Write-Verbose -Message $Localization.UserChoiceWarning -Verbose + Write-Error -Message $Localization.UserChoiceWarning -ErrorAction SilentlyContinue + + return + } + $ProgramPath = [System.Environment]::ExpandEnvironmentVariables($ProgramPath) if ($ProgramPath.Contains(":")) @@ -10076,7 +10078,7 @@ function RKNBypass # If current region is Russia if (((Get-WinHomeLocation).GeoId -eq "203")) { - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://antizapret.prostovpn.org:8443/proxy.pac" -Force + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -PropertyType String -Value "https://p.thenewone.lol:8443/proxy.pac" -Force } } "Disable" @@ -10207,7 +10209,7 @@ function PreventEdgeShortcutCreation $Disable ) - if (($null -eq (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) -or ([System.Version](Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version -lt [System.Version]"1.3.128.0")) + if (-not (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore)) { Write-Information -MessageData "" -InformationAction Continue Write-Verbose -Message $Localization.Skipped -Verbose @@ -10570,73 +10572,6 @@ function Install-WSL #endregion WSL #region Start menu -<# - .SYNOPSIS - Unpin all Start apps - - .EXAMPLE - UnpinAllStartApps - - .NOTES - Current user -#> -function UnpinAllStartApps -{ - Remove-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start*.bin" -Force -ErrorAction Ignore - - # https://gist.github.com/rad1ke - $HexString = "E27AE14B01FC4D1B9C00810BDE6E51854E5A5F47005BB1498A5C92AF9084F95E9BDB91E2EEDDD701300B000067DEFA31529529B3D32D8092A6EB66C8D5EADB19CF9B13518AAB9 -3275D9CEEF37E62C3574C036F327D1110AB0977996D67A2F8FA897D7207BEE85586B8CE6AD4F9736AA2154E3DCC9D082996984B76F1C73067F124F92A41F2B2CA83EF35436670979556FAE85AB10EA1 -6C932C3AECE1D45DA06D64BC42F4565AD0FCB8C63CDE7F6BB97ACE300198C3EACA3E1C974F547B1A7CF5B9C6A912448AB38A3BE2D6F0230A4A9AACC710C3E75088754CC2FB054B55B1D6ED7AD41EB8B -0C9D4C274E87A525582F6CFBEAE5A904A1B0A3BA07939B79CAB4F1C3DF35BF88DE846E64555F0AEB47562C329206A9975664558849E0C251E8832D52B4FD7560347E5606AC882B9FC1F43C96922C0EA -1927DF004A062BAD5AC5A4BE6BF2DB23158B2BAEEF8DE9E3A777910E82E5488A83E4D64B0D84440B98B35BC4A3438596145669904AB392CFD5F7E22F616747B84851481FE1FF41CA9A2534CCE7AFC45 -584370B4940DF30555536344249690F00C3A7E2552E352FE733C7ED2F80A29AD16937810AF805A444A344188C0CBDA51E5466BF45F2587508A69581CC2BCDAE06CB363658D94CD60569352FDA17AE7C -DD785810F369B41F2D15930430A809567CC6C643FE7986CAD545EF3DB40CA6FA9220BFC7F65610AECB22799838B80DE73AF549923F8219FFAAD64780E2DB53133D73890294E77F9B0970484E86A0507 -37724FF15281C1726D334D3C9A67A85A78AE33F55DB675DAA31C47A156C0F8212DCEE228537668F4BF898C0CB869B74C98DF7EFBE0132359E5156417A85CC634B86314FAB47FB9A8DFEAFA1AEFC5E59 -9A3F744BA51E8E6823F80E1529187FA5A78420B1EC091FD93134A71A0A0F478341D9ABD2CEABD5444160023C9CAB0A5C2BAC97F55F1E98FD21F2CFF03D2D24E0C4642F4A8A6E7627BD143AFC1A6DAE6 -97B286C941B5EAAF57D34D598317C97F7CA23544B219196661B73E9DD27EBFE204B43C98C241AB02D2AA3A4EE7B2B477FC5E31642AF613BF356DFBE8AD666CE93267A3D45FD40F83CABAA2F0AE2601C -470D98AC4ABBCFA968882986297D06D81C1BE1EE8A0E64FB7543981B8E632809FBA7606BF518E8792EF4FBDC5CFC55690D8DF60812ECB2A39EB24B6F941C966DEF89E61E000D3F28CB6B260B17A53CE -8EEFC371C98BBEE72DE915BA9023DC74EEE7895D60AC2D13B51E73EB37E0FB714BB259614F3F7CBECD66EBDAE52FCB01D778C413DE0ED739DEA7AE48543614B93D46F63D1076E3C7696863D8F64EAC7 -CAA7224FEB1A15E114358F379CA686AD7F09E75E2350F38A3B27F38D2DEFFB008B007371BD32E65B39FF6661DA237F277AC4A9C4DA5A1753250BBD3FA7ECD07E594C2014B5E26E06414B6588211CE43 -9DAA2A352B017C196B4F20049DDBF2E4514E2CD7545E5AE22E877D5B6975D7FCDC61D49958258A093B05DB6D7C6457B9C260A420B1A15C6010B9C4AE68078E1B9592C97B47BFFE2C2F10A10129CC3B0 -87041840091D2A6F5FDA1561E2F0315F8F0BF46204AA4E7C12DC819A1ABCDEB02400AA2FD46ECE2B8698C19F61ECA68232536A712BC858029D40FED5C20A051BCE6D316B03A97FE7051EE0C952A7EB9 -FD2F77D9FBE75022FF5D13B168BD0B004D9C803E8F8C5D8F25CB22ACC97D8EDE169E5D50FCD87444C2029F021D87807B4A04EF148EF1C814E2827FABBCDE9E042140E0D890CEDE88B21F9824956D8F1 -8EF3A8AC85194248915F53AF26F70BC5FDC26E415936EAB0DD78398B725F5419E8DDFD46EE9A17A37087507F9D20358208A65366C4824518E75413FDE5F27FC5DD8132EFB4414A5BDDDA1D64593D863 -60062373FEE36F51ED56CA419FAD69751F76588995F9E2BE75ED13D2DED91EC1DED011752089716DD9C89DE21B8E52AD08CF1C463B0D79111200DF5269C646FBF0E3091A413CA70F6CA8F75BE257DB0 -28329F7224023603C743AB204F8DAB5C273975FA93FBAAD84D0E4D72ABAC3A4E23D7236C848AD317E73E114C5B7438B8248C75B528E19E26D9BF908001A3214A137F24C74BC7D9910F858E47789FDFE -52AB712AE758AE15C4D86ED3C23D4EB78C5ED94D8A5AB8AA93C43E18FC0CE418AC79DF945E81A58B70332A2C03C445436E8013E0B82AC59AF856C6A00812BCD3B6209449B6D008CA37D8A9210A61049 -350AD07F4E88FC7FBEC9FC64BC60C318912E36DBEA6D4058AF35CACD6E790C96B66EAE5966C47D3E1C4ACF42BF04D58FF363D20DBA61C9D32EBE433A45AFE02B41FD6FC91AE7157CCD7FACEC294623F -825DE576F72A8245D2BC5D1D7C71B183166C8F0DAF9CF8ED6F1DAEBB0349D82E57BB81DB946128A5440235AD6222A294B27E97738D49F52170DE1B1B922C8C548215FD0D2980D7BA9B8F3133D9415BA -B29670A5EDEC4858EB9D1A7E8FBD0296CB6D610BDD44A1A450EDEC61983152C237225F7AABABD482EB08328BC338D87BA1FE30864D9A97C20FA42CAEDF6359457C8BB26032A9728E819FFF9BF4F7154 -69A0A4506A4CA1625E79CAE215683CDAADFB1E68ADC4987FF3FD7E9859CB40291478A4D2B281AEFEB97DC45C7F991311A68C2F173E2377709C355C6870DC4C14E5534120539C1DB0AD0D6E331D67058 -1F6E352DCB3E34D61E6742F957FE9F39854A324E07C68A17BE9CB19446583EDDAAFD0E433A54F4E0854709BD47B24AC76DF75849B9D917FF2B0F4228C94EA01CF658430B2C18F6EEAB104B9A935C6FB -FEA494190BF3446DCC8C8AAF62BA01F0BFB18E15503C27558DB70C48EFB0AEA0B600F985C904E9F244E2A08464AE980E1A8CC05F22C9D4C23D753FD5250D0E190CB0CAC71404CF52A8CCEC988DBA22F -2164E203FB52064F38D8277764FECB0E2D811C307E4687CF6A245B2B89389D188E1F115EF2B36BA1BE63222A2C7E886A279B08ADF70109903F70EA1068137E72E894758614FE4BBAF333B8FC3EA98B1 -49B3403FF8655FAAE1DF4877B5CDABC434B7336AB24C25A85246ADAA24DECB5A39F8FD7A5549F23F112244B7EE9E447D3226F2259428FDC0C3D6CD3A47B39092532B803FEBB6FFCC1ADF26C7857F04F -294F16A9DA7DD851D4EC99BBCF853FD3435A256F47DD3CB9480365C2896A1D0E2314940968E4E3714723B4C1CDD368581FED307C8B279AE6FB8BB72EC0A093733E2D9CC6B43320766D3B43D3C554CA8 -2EEEF7B09850D29B2F412DEF3D0BD9194CAE8113B3B38085C77C238CB8D15BF6D6AB42C193F4E2F27F8BEDABB2D6ADE9E486B6AFAFD8D5DBE3B7D7305790F96ECDCC2DD016C5B9B200CB72E6CF54D71 -F69A01CDE4E3A0A4C5A03627DECD491F215C1420EB07AB8FD2763FCFF5211EB964C82E69DA208BDFA76306D54642B117DCB9A92927CE2E633338D4EEA63B571349B8DA1D4B5523C4CA10308769E4F46 -1ADD16DD5DFDB0E705187593DEF5CCCF659E48366462CC21D7930E1064234157A7A08E9C90927A37C5CF23D54C755002E4E657BB6E70D9B4BE7C468C19D6969FAE138EBF2C20DD3F5A0BC4C0E97D5BF -DB8744A21396C44549242817BEAD5AE14FF602E69E75B87784DE5F30BE14106E8D8A081DC8CCCFBF93896E622F755F27E82A596DDCA3469A93ECB9E2E897BF0FCC063426DACDC3B1D81E1EFE6B63932 -6CA43526CFAEDF9922EAC3204FEB84AAED781EE5516FA5B4DCAB85DB5FF33CEC454DAA375BDA5EEA7C871C310AEDC5BD6B220B59B901D377E22FFFE95FEDA28CE2CE33CAEB8541EE05E1B5650D776C4 -B2A246DB4613E2CC5D96A44D24AE662D848A7C9E3E922AFF0632B7B40505402956FABC5C3AAB55EEE29085046C127E8776CEFC1690B76EE99371AF9B1D7EF6F79E78325DD3BD8377E9B73B936C6F261 -1D0A1223A4D7C6CF3037922DD0686A701FF86761993F294D26E13A7BB8B1C61ACAF38D50334A88DABB3FA412B4FC79F6FBFD0D0A92301484FF1BD1CF3DC67780E4562E05CCA329CABA7CB2B77D9A707 -BDEE24B1E5E4ED6CC9D5A337908BE5303E477736C8A75051A8FBD4E3CB6360D8F0A992A48F333434D4AE712EC830BCB5EAA98788B6C76C" - - $HexString = $HexString.Replace("`n","").Replace("`r","") - $Bytes = [byte[]]::new($HexString.Length/2) - - for ($i = 0; $i -lt $HexString.Length; $i += 2) - { - $Bytes[$i/2] = [System.Convert]::ToByte($HexString.Substring($i, 2), 16) - } - { - $Bytes[$i/2] = [System.Convert]::ToByte($HexString.Substring($i, 2), 16) - } - - Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" -Value $Bytes -Encoding Byte -Force -} - <# .SYNOPSIS Configure Start layout @@ -14119,61 +14054,6 @@ function CastToDeviceContext } } -<# - .SYNOPSIS - The "Share" item in the context menu - - .PARAMETER Hide - Hide the "Share" item from the context menu - - .PARAMETER Show - Show the "Share" item in the context menu - - .EXAMPLE - ShareContext -Hide - - .EXAMPLE - ShareContext -Show - - .NOTES - Current user -#> -function ShareContext -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Hide" - )] - [switch] - $Hide, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Show" - )] - [switch] - $Show - ) - - switch ($PSCmdlet.ParameterSetName) - { - "Hide" - { - Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Recurse -Force -ErrorAction Ignore - } - "Show" - { - if (-not (Test-Path -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing")) - { - New-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Force - } - New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Name "(default)" -PropertyType String -Value "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -Force - } - } -} - <# .SYNOPSIS The "Edit with Clipchamp" item in the media files context menu @@ -15028,7 +14908,7 @@ public static void PostMessage() # https://github.com/PowerShell/PowerShell/issues/21070 Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore - # Kill all explorer instances but only one in case enabled to launch folder windows in a separate process + # Kill all explorer instances in case launch folder windows in a separate process enabled Get-Process -Name explorer | Stop-Process -Force Start-Sleep -Seconds 3 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 3ca48837..b7dca4fe 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" - Version: v6.6.4 - Date: 07.04.2024 + Version: v6.6.5 + Date: 14.04.2024 Copyright (c) 2014—2024 farag, Inestic & lowl1f3 @@ -26,7 +26,7 @@ .NOTES Supported Windows 11 versions Version: 23H2+ - Builds: 22631.3296+ + Builds: 22631.3447+ Editions: Home/Pro/Enterprise .NOTES @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.4 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.5 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" Remove-Module -Name Sophia -Force -ErrorAction Ignore @@ -643,7 +643,7 @@ Win32LongPathLimit -Disable # Отображать код Stop-ошибки при появлении BSoD BSoDStopError -Enable -# Do not Stop error code when BSoD occurs (default value) +# Do not display stop error code when BSoD occurs (default value) # Не отображать код Stop-ошибки при появлении BSoD (значение по умолчанию) # BSoDStopError -Disable @@ -766,7 +766,7 @@ InputMethod -English <# Change 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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню @@ -777,7 +777,7 @@ Set-UserShellFolderLocation -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. Move them manually + User files or folders won't be moved to a new location. Move them manually They're located in the %USERPROFILE% folder by default Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок" @@ -788,7 +788,7 @@ Set-UserShellFolderLocation -Root <# Change user folders location to the default values - User files or folders won't me moved to the new location. Move them manually + User files or folders won't be moved to the new location. Move them manually They're located in the %USERPROFILE% folder by default Изменить расположение пользовательских папок на значения по умолчанию @@ -1048,10 +1048,6 @@ SATADrivesRemovableMedia -Disable #endregion WSL #region Start menu -# Unpin all Start apps -# Открепить все приложения от начального экрана -# UnpinAllStartApps - # Show default Start layout (default value) # Отображать стандартный макет начального экрана (значение по умолчанию) # StartLayout -Default @@ -1342,14 +1338,6 @@ CastToDeviceContext -Hide # Отобразить пункт "Передать на устройство" в контекстном меню медиа-файлов и папок (значение по умолчанию) # CastToDeviceContext -Show -# Hide the "Share" item from the context menu -# Скрыть пункт "Отправить" (поделиться) из контекстного меню -ShareContext -Hide - -# Show the "Share" item in the context menu (default value) -# Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию) -# ShareContext -Show - # Hide the "Edit with Clipchamp" item from the media files context menu # Скрыть пункт "Редактировать в Climpchamp" из контекстного меню EditWithClipchampContext -Hide diff --git a/supported_windows_builds.json b/supported_windows_builds.json index d3c7dcea..420dd977 100644 --- a/supported_windows_builds.json +++ b/supported_windows_builds.json @@ -1,6 +1,10 @@ { + "Windows_10_URL": "https://support.microsoft.com/en-us/topic/windows-10-update-history-8127c2c6-6edf-4fdf-8b9f-0f7be1ef3562", "Windows_10": "4170", + "Windows_10_LTSC_2019_URL": "https://support.microsoft.com/en-us/topic/windows-10-and-windows-server-2019-update-history-725fc2e1-4443-6831-a5ca-51ff5cbcb059", "Windows_10_LTSC_2019": "5579", + "Windows_10_LTSC_2021_URL": "https://support.microsoft.com/en-us/topic/windows-10-update-history-857b8ccb-71e4-49e5-b3f6-7073197d98fb", "Windows_10_LTSC_2021": "4170", + "Windows_11_URL": "https://support.microsoft.com/en-us/topic/windows-11-version-23h2-update-history-59875222-b990-4bd9-932f-91a5954de434", "Windows_11": "3296" }