diff --git a/README.md b/README.md
index 6c639909..2a37df5a 100644
--- a/README.md
+++ b/README.md
@@ -149,7 +149,7 @@
* The TAB [autocompletion](#the-tab-autocomplete-read-more-here) for function and its' arguments by typing first letters;
* Disable Windows features displaying friendly packages names with pop-up form written in [WPF](#screenshots);
* Uninstall Windows capabilities displaying friendly packages names with pop-up form written in [WPF](#screenshots);
-* Download and install the [HEVC Video Extensions from Device Manufacturer](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) to be able to open .heic and .heif formats;
+* Download and install the [HEVC Video Extensions from Device Manufacturer](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) to be able to open [HEVC](https://en.wikipedia.org/wiki/H.265) format;
* Register app, calculate hash, and set as default for specific extension without the "How do you want to open this" pop-up using special [function](https://github.com/DanysysTeam/PS-SFTA);
* Install any supported Linux distrobution for WSL displaying friendly distro names with pop-up form written in [WPF](#screenshots);
* Create a `Windows Cleanup` and `Windows Cleanup Notification` scheduled tasks for Windows cleaning up unused files and updates;
@@ -212,20 +212,23 @@
* Look through the `Sophia.ps1` file to configure functions that you want to be run;
* Place the "#" char before function if you don't want it to be run.
* Remove the "#" char before function if you want it to be run.
-* On `Windows 10` click `File` in File Explorer, hover over `Open Windows PowerShell`, and select `Open Windows PowerShell as Administrator` [(how-to with screenshots)](https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/)
-* On `Windows 11` right-click on the Windows icon and select `Windows Terminal (Admin)`. Then change the current location
+* Copy the whole path to `Sophia.ps1`
+ * On `Windows 10` press and hold the Shift key, right click on `Sophia.ps1`, and click on `Copy as path`;
+ * On `Windows 11` right click on `Sophia.ps1` and click on `Copy as path`.
+* Open `Windows PowerShell`
+ * On `Windows 10` click `File` in the File Explorer, hover over `Open Windows PowerShell`, and select `Open Windows PowerShell as Administrator` [(how-to with screenshots)](https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/)
+ * On `Windows 11` right-click on the Windows icon and open `Windows Terminal (Admin)`;
+* Set execution policy to be able to run scripts only in the current PowerShell session;
- ```powershell
- Set-Location -Path "Path\To\Sophia\Folder"
- ```
-
-* Set execution policy to be able to run scripts only in the current PowerShell session
-
- ```powershell
+```powershell
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
- ```
+```
-* Type `.\Sophia.ps1` Enter to run the whole preset file.
+* Paste copied path to `Sophia.ps1` from the previous step (with [&](https://en.wikipedia.org/wiki/Ampersand));
+
+```powershell
+ &
+```
## How to use Wrapper
@@ -249,10 +252,10 @@ To run the specific function(s) [dot source](https://docs.microsoft.com/ru-ru/po
* Now you can do like this (the quotation marks required)
```powershell
-Sophia -FunctionsTAB
-Sophia -Functions tempTAB
-Sophia -Functions uninTAB
-Sophia -Functions uwpTAB
+Sophia -FunctionsTAB
+Sophia -Functions temp
+Sophia -Functions unin
+Sophia -Functions uwp
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
UninstallUWPApps, "PinToStart -UnpinAll"
diff --git a/README_uk-ua.md b/README_uk-ua.md
index dfef314f..65b9c770 100644
--- a/README_uk-ua.md
+++ b/README_uk-ua.md
@@ -150,7 +150,7 @@
* TAB [автодоповнення](#автодоповнення-tab-детальніше-тут) для функції та її аргументів шляхом введення перших літер;
* Вимкнення функцій Windows для відображення дружніх назв пакетів у спливаючій формі, написаній на [WPF](#скріншоти);
* Видалення можливостей Windows відображати дружні назви пакетів у спливаючій формі, написаній на [WPF](#скріншоти);
-* Завантаження та встановлення [HEVC Video Extensions від виробника пристрою](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) для відкриття форматів .heic та .heif;
+* Завантаження та встановлення [HEVC Video Extensions від виробника пристрою](https://www.microsoft.com/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq) для відкриття формата [HEVC](https://uk.wikipedia.org/wiki/H.265);
* Реєстрація програми, розрахунок хешу та встановлення за замовчуванням для певного розширення без спливаючого вікна "Як ви хочете відкрити це" за допомогою спеціальної [функції](https://github.com/DanysysTeam/PS-SFTA);
* Встановлення будь-якого підтримуваного дистрибутива Linux для WSL з відображенням дружніх назв дистрибутивів у спливаючій формі, написаній на [WPF](#скріншоти);
* Створення запланованих завдань `Очищення Windows` та `Повідомлення про очищення Windows` для очищення Windows від невикористовуваних файлів та оновлень;
@@ -213,20 +213,23 @@
* Перегляньте файл `Sophia.ps1` для налаштування функцій, які потрібно запустити;
* Помістіть символ "#" перед функцією, якщо ви не бажаєте, щоб вона виконувалась.
* Приберіть символ "#" перед функцією, якщо ви бажаєте, щоб вона виконувалась.
-* В `Windows 10` натисніть `Файл` у Провіднику, наведіть курсор на `Запустити Windows PowerShell`, і виберіть `Запустити Windows PowerShell від імені адміністратора` [(як це зробити зі скріншотами)](https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/)
-* В `Windows 11` натисніть правою кнопкою миші на Windows іконку і виберіть `Термінал (Адміністратор)`. Потім змініть поточне розташування
+* Скопіюйте весь шлях до Sophia.ps1
+ * У Windows 10 натисніть і утримуйте клавішу Shift, клацніть правою кнопкою миші на Sophia.ps1 і виберіть Копіювати як шлях;
+ * У Windows 11 клацніть правою кнопкою миші на Sophia.ps1 і виберіть Копіювати як шлях.
+* Відкрийте Windows PowerShell
+ * У Windows 10 натисніть Файл у Провіднику файлів, наведіть курсор на Відкрити Windows PowerShell і виберіть Відкрити Windows PowerShell від імені адміністратора [(покрокова інструкція зі скріншотами)](https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/);
+ * У Windows 11 натисніть правою кнопкою миші на іконку Windows і відкрийте Термінал Windows (Admin).
+* Встановіть політику виконання, щоб мати змогу запускати сценарії лише у поточному сеансі PowerShell;
- ```powershell
- Set-Location -Path "Path\To\Sophia\Folder"
- ```
-
-* Встановіть політику виконання, щоб запускати сценарії тільки в поточному сеансі PowerShell
-
- ```powershell
+```powershell
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
- ```
+```
-* Введіть `.\Sophia.ps1` Enter щоб запустити налаштований файл.
+* Вставте скопійований шлях до Sophia.ps1 з попереднього кроку (за допомогою [&](https://en.wikipedia.org/wiki/Ampersand));
+
+```powershell
+ &
+```
## Як використовувати Wrapper
diff --git a/Wrapper/Config/before_after.json b/Wrapper/Config/before_after.json
index a847f6ff..2f40fdef 100644
--- a/Wrapper/Config/before_after.json
+++ b/Wrapper/Config/before_after.json
@@ -2,12 +2,12 @@
{
"Id": 100,
"Region": "before",
- "Function": ""
+ "Function": ""
},
{
"Id": 101,
"Region": "before",
- "Function": ""
+ "Function": ""
},
{
"Id": 200,
diff --git a/Wrapper/Config/config_Windows_10.json b/Wrapper/Config/config_Windows_10.json
index ffa15880..1a0711c1 100644
--- a/Wrapper/Config/config_Windows_10.json
+++ b/Wrapper/Config/config_Windows_10.json
@@ -1751,23 +1751,6 @@
{
"Id": 702,
"Region": "Start menu",
- "Control": "cmb",
- "Required": "false",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated"
- },
- "One": {
- "Tag": "NonElevated"
- }
- },
- "Preset": "Zero",
- "WindowsDefault": "One"
- },
- {
- "Id": 703,
- "Region": "Start menu",
"Control": "chk",
"Required": "false",
"Function": "PinToStart -Tiles",
@@ -1786,7 +1769,7 @@
"WindowsDefault": ""
},
{
- "Id": 704,
+ "Id": 703,
"Region": "Start menu",
"Control": "chk",
"Required": "false",
diff --git a/Wrapper/Config/config_Windows_10_LTSC.json b/Wrapper/Config/config_Windows_10_LTSC.json
index 8f264665..4bdc2c37 100644
--- a/Wrapper/Config/config_Windows_10_LTSC.json
+++ b/Wrapper/Config/config_Windows_10_LTSC.json
@@ -1913,25 +1913,6 @@
{
"Id": 702,
"Region": "Start menu",
- "Control": "cmb",
- "Required": "false",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated"
- },
- "One": {
- "Tag": "NonElevated"
- }
- },
- "Preset": "Zero",
- "WindowsDefault": "One",
- "LTSC2019": "true",
- "LTSC2021": "true"
- },
- {
- "Id": 703,
- "Region": "Start menu",
"Control": "chk",
"Required": "false",
"Function": "PinToStart -Tiles",
@@ -1952,7 +1933,7 @@
"LTSC2021": "true"
},
{
- "Id": 704,
+ "Id": 703,
"Region": "Start menu",
"Control": "chk",
"Required": "false",
diff --git a/Wrapper/Config/config_Windows_11.json b/Wrapper/Config/config_Windows_11.json
index fd781d6a..7025f99c 100644
--- a/Wrapper/Config/config_Windows_11.json
+++ b/Wrapper/Config/config_Windows_11.json
@@ -565,11 +565,17 @@
"Tag": "Hide"
},
"One": {
- "Tag": "Show"
+ "Tag": "SearchIcon"
+ },
+ "Two": {
+ "Tag": "SearchIconLabel"
+ },
+ "Three": {
+ "Tag": "SearchBox"
}
},
"Preset": "Zero",
- "WindowsDefault": "One"
+ "WindowsDefault": "Three"
},
{
"Id": 316,
@@ -1565,17 +1571,14 @@
"Region": "System",
"Control": "cmb",
"Required": "false",
- "Function": "WSA",
+ "Function": "Install-WSA",
"Arg": {
"Zero": {
- "Tag": "Enable"
- },
- "One": {
- "Tag": "Disable"
+ "Tag": ""
}
},
- "Preset": "Zero",
- "WindowsDefault": "One"
+ "Preset": "",
+ "WindowsDefault": ""
},
{
"Id": 540,
@@ -1627,23 +1630,6 @@
"Region": "Start menu",
"Control": "cmb",
"Required": "false",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated"
- },
- "One": {
- "Tag": "NonElevated"
- }
- },
- "Preset": "Zero",
- "WindowsDefault": "One"
- },
- {
- "Id": 702,
- "Region": "Start menu",
- "Control": "cmb",
- "Required": "false",
"Function": "StartLayout",
"Arg": {
"Zero": {
diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json
index 86d9bd43..200e7736 100644
--- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json
+++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json
@@ -1559,21 +1559,6 @@
{
"Id": 702,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Führt die Windows PowerShell-Verknüpfung über das Startmenü als Administrator aus"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Führt die Windows PowerShell-Verknüpfung über das Startmenü als Benutzer aus (Standardeinstellung)"
- }
- }
- },
- {
- "Id": 703,
- "Region": "Start menu",
"Function": "PinToStart -Tiles",
"ToolTip": "Folgendene Verknüpfungen: Systemsteuerung, Geräte und Drucker, PowerShell an das Startmenü anheften",
"Arg": {
@@ -1592,7 +1577,7 @@
}
},
{
- "Id": 704,
+ "Id": 703,
"Region": "Start menu",
"Function": "PinToStart -UnpinAll",
"Arg": {
diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json
index 10edd939..673aca31 100644
--- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json
+++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json
@@ -496,7 +496,15 @@
"ToolTip": "Suchschaltfläche in der Taskleiste ausblenden"
},
"One": {
- "Tag": "Show",
+ "Tag": "SearchIcon",
+ "ToolTip": "Das Suchsymbol in der Taskleiste anzeigen"
+ },
+ "Two": {
+ "Tag": "SearchIconLabel",
+ "ToolTip": "Show the search icon and label on the taskbar"
+ },
+ "Three": {
+ "Tag": "SearchBox",
"ToolTip": "Suchsymbol in der Taskleiste anzeigen (Standardeinstellung)"
}
}
@@ -1394,15 +1402,11 @@
{
"Id": 539,
"Region": "System",
- "Function": "WSA",
+ "Function": "Install-WSA",
"Arg": {
"Zero": {
- "Tag": "Enable",
+ "Tag": "",
"ToolTip": "Alle erforderlichen Abhängigkeiten aktivieren (ein Neustart kann erforderlich sein) und die Microsoft Store WSA-Seite öffnen, um Windows Subsystem for Android™ mit Amazon-Appstore manuell zu installieren"
- },
- "One": {
- "Tag": "Disable",
- "ToolTip": "Alle erforderlichen Abhängigkeiten deaktivieren (ein Neustart kann erforderlich sein) und Windows Subsystem for Android™ mith Amazon-Appstore deinstallieren (Standardwert)"
}
}
},
@@ -1446,21 +1450,6 @@
{
"Id": 701,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Führt die Windows PowerShell-Verknüpfung über das Startmenü als Administrator aus"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Führt die Windows PowerShell-Verknüpfung über das Startmenü als Benutzer aus (Standardeinstellung)"
- }
- }
- },
- {
- "Id": 702,
- "Region": "Start menu",
"Function": "StartLayout",
"Arg": {
"Zero": {
diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json
index e39725c6..f7b55859 100644
--- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json
+++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json
@@ -1559,21 +1559,6 @@
{
"Id": 702,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Run the Windows PowerShell shortcut from the Start menu as Administrator"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Run the Windows PowerShell shortcut from the Start menu as user (default value)"
- }
- }
- },
- {
- "Id": 703,
- "Region": "Start menu",
"Function": "PinToStart -Tiles",
"ToolTip": "Pin to Start the following shortcuts: Control Panel, Devices and Printers, PowerShell",
"Arg": {
@@ -1592,7 +1577,7 @@
}
},
{
- "Id": 704,
+ "Id": 703,
"Region": "Start menu",
"Function": "PinToStart -UnpinAll",
"Arg": {
diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json
index ab956ae0..43e65969 100644
--- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json
+++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json
@@ -496,8 +496,16 @@
"ToolTip": "Hide the search button from the taskbar"
},
"One": {
- "Tag": "Show",
- "ToolTip": "Show the search icon on the taskbar (default value)"
+ "Tag": "SearchIcon",
+ "ToolTip": "Show the search icon on the taskbar"
+ },
+ "Two": {
+ "Tag": "SearchIconLabel",
+ "ToolTip": "Show the search icon and label on the taskbar"
+ },
+ "Three": {
+ "Tag": "SearchBox",
+ "ToolTip": "Show the search box on the taskbar (default value)"
}
}
},
@@ -1394,15 +1402,11 @@
{
"Id": 539,
"Region": "System",
- "Function": "WSA",
+ "Function": "Install-WSA",
"Arg": {
"Zero": {
- "Tag": "Enable",
+ "Tag": "",
"ToolTip": "Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install Windows Subsystem for Android™ with Amazon Appstore manually"
- },
- "One": {
- "Tag": "Disable",
- "ToolTip": "Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore (default value)"
}
}
},
@@ -1446,21 +1450,6 @@
{
"Id": 701,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Run the Windows PowerShell shortcut from the Start menu as Administrator"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Run the Windows PowerShell shortcut from the Start menu as user (default value)"
- }
- }
- },
- {
- "Id": 702,
- "Region": "Start menu",
"Function": "StartLayout",
"Arg": {
"Zero": {
diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
index 11e4bed5..2232acdd 100644
--- a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
+++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
@@ -1559,21 +1559,6 @@
{
"Id": 702,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Запускать ярлык Windows PowerShell в меню \"Пуск\" от имени Администратора"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Запускать ярлык Windows PowerShell в меню \"Пуск\" от имени пользователя (значение по умолчанию)"
- }
- }
- },
- {
- "Id": 703,
- "Region": "Start menu",
"Function": "PinToStart -Tiles",
"ToolTip": "Закрепить на начальном экране следующие ярлыки: Панель управления, Устройства и принтеры, PowerShell",
"Arg": {
@@ -1592,7 +1577,7 @@
}
},
{
- "Id": 704,
+ "Id": 703,
"Region": "Start menu",
"Function": "PinToStart -UnpinAll",
"Arg": {
diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
index 6de527a9..23cfb92f 100644
--- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
+++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
@@ -501,6 +501,29 @@
}
}
},
+ {
+ "Id": 315,
+ "Region": "UI & Personalization",
+ "Function": "TaskbarSearch",
+ "Arg": {
+ "Zero": {
+ "Tag": "Hide",
+ "ToolTip": "Скрыть кнопку поиска на панели задач"
+ },
+ "One": {
+ "Tag": "SearchIcon",
+ "ToolTip": "Показать значок поиска на панели задач"
+ },
+ "Two": {
+ "Tag": "SearchIconLabel",
+ "ToolTip": "Показать значок и метку поиска на панели задач"
+ },
+ "Three": {
+ "Tag": "SearchBox",
+ "ToolTip": "Показывать значок поиска на панели задач (значение по умолчанию)"
+ }
+ }
+ },
{
"Id": 316,
"Region": "UI & Personalization",
@@ -1394,15 +1417,11 @@
{
"Id": 539,
"Region": "System",
- "Function": "WSA",
+ "Function": "Install-WSA",
"Arg": {
"Zero": {
- "Tag": "Enable",
+ "Tag": "",
"ToolTip": "Включить все необходимые зависимости (может потребоваться перезагрузка) и открыть страницу WSA в Microsoft Store, чтобы вручную установить Windows Subsystem for Android™ with Amazon Appstore"
- },
- "One": {
- "Tag": "Disable",
- "ToolTip": "Выключить все необходимые зависимости и удалить Windows Subsystem for Android™ with Amazon Appstore (значение по умолчанию)"
}
}
},
@@ -1446,21 +1465,6 @@
{
"Id": 701,
"Region": "Start menu",
- "Function": "RunPowerShellShortcut",
- "Arg": {
- "Zero": {
- "Tag": "Elevated",
- "ToolTip": "Запускать ярлык Windows PowerShell в меню \"Пуск\" от имени Администратора"
- },
- "One": {
- "Tag": "NonElevated",
- "ToolTip": "Запускать ярлык Windows PowerShell в меню \"Пуск\" от имени пользователя (значение по умолчанию)"
- }
- }
- },
- {
- "Id": 702,
- "Region": "Start menu",
"Function": "StartLayout",
"Arg": {
"Zero": {
diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1
index 2fd4f460..c59f4a09 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Localizations/de-DE/Sophia.psd1
index 4e0f000f..23d31556 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 21H2/22H2+
-UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2364 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 9c0f7e21..89b4ce4b 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 21H2/22H2+
-UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2364 and higher. Run Windows Update and try again
+UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 9af637a6..799d85f3 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 21H2/22H2+
-UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2364 y superior. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 30325354..9148ca67 100644
--- a/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10/Localizations/fr-FR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 21H2/22H2+
-UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2364 et plus. Exécutez Windows Update et réessayez
+UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 d087b964..97b7feee 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 21H2/22H2+ verziókat
-UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2364 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 092be0b5..54c2cdbd 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10 21H2/22H2+
-UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2364 o superiori. Eseguire Windows Update e riprovare
+UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 8e6b99c7..750a4e95 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko system Windows 10 x64
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 21H2/22H2+
-UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2364 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
+UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 eb93a248..f423ea78 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 21H2/22H2+
-UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2364 e superior. Execute o Windows Update e tente novamente
+UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 a95533d0..44477e33 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает Windows 10 21H2/22H2+
-UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2364 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 6ff68842..a01732c2 100644
--- a/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10/Localizations/tr-TR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Komut dosyası, Windows 10 21H2/22H2+ sürümlerini destekler
-UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2364 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 948ee6e7..594dd7cc 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує Windows 10 21H2/22H2+
-UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2364 і вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 fa28190c..dddb9441 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本21H2/22H2+和更高版本
-UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2364及以上。运行Windows Update并再次尝试
+UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1
index ffeedf6b..4e51ad1e 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.15.2'
+ ModuleVersion = '5.15.3'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
index 5eddae00..8696a782 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2+
- Builds: 19044.2364+
+ Builds: 19045.2604+
Editions: Home/Pro/Enterprise
Architecture: x64
@@ -67,11 +67,11 @@ function Checks
# Detect the OS build version
switch ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber)
{
- {($_ -ge 19044) -and ($_ -le 19048)}
+ {($_ -ge 19045) -and ($_ -le 19048)}
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2364)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604)
{
- # Check whether the OS minor build version is 2364 minimum
+ # Check whether the OS minor build version is 2604 minimum
# https://docs.microsoft.com/en-us/windows/release-health/release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $Version)
@@ -100,7 +100,7 @@ function Checks
exit
}
}
- {($_ -lt 19044) -or ($_ -gt 19048)}
+ {($_ -lt 19045) -or ($_ -gt 19048)}
{
Write-Warning -Message $Localization.UnsupportedOSBuild
Start-Process -FilePath "https://t.me/sophia_chat"
@@ -6846,7 +6846,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -8728,7 +8728,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -9216,6 +9216,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -9589,10 +9590,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -9658,6 +9657,60 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
+
+<#
+ .SYNOPSIS
+ Internal SATA drives up as removeable media in the taskbar notification area
+
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
+
+ .PARAMETER Show
+ Show more recommendations on Start
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Disable
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Default
+
+ .NOTES
+ Machine-wide
+#>
+function SATADrivesRemovableMedia ###
+{
+ param
+ (
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Disable"
+ )]
+ [switch]
+ $Disable,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Default"
+ )]
+ [switch]
+ $Default
+ )
+
+ switch ($PSCmdlet.ParameterSetName)
+ {
+ "Disable"
+ {
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
+ }
+ "Default"
+ {
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
+ }
+ }
+}
#endregion System
#region WSL
@@ -9940,61 +9993,6 @@ function AppSuggestions
}
}
-<#
- .SYNOPSIS
- How to run the Windows PowerShell shortcut
-
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
-
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
-
- .EXAMPLE
- RunPowerShellShortcut -Elevated
-
- .EXAMPLE
- RunPowerShellShortcut -NonElevated
-
- .NOTES
- Current user
-#>
-function RunPowerShellShortcut
-{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Elevated"
- )]
- [switch]
- $Elevated,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "NonElevated"
- )]
- [switch]
- $NonElevated
- )
-
- switch ($PSCmdlet.ParameterSetName)
- {
- "Elevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- "NonElevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- }
-}
-
<#
.SYNOPSIS
The Start tiles
@@ -11110,7 +11108,7 @@ function HEVC
)
# Check whether the extension is already installed
- if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if ((-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) -or (Get-AppxPackage -Name Microsoft.HEVCVideoExtension))
{
return
}
diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1
index 77f0ffa2..1a89fb93 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2
- Builds: 19044.2364+
+ Builds: 19045.2604+
Editions: Home/Pro/Enterprise
Architecture: x64
@@ -70,7 +70,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -1001,6 +1001,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region WSL
@@ -1031,14 +1039,6 @@ AppSuggestions -Hide
# Показывать рекомендации в меню "Пуск" (значение по умолчанию)
# AppSuggestions -Show
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
-
<#
Pin to Start the following shortcuts: Control Panel, Devices and Printers, PowerShell
Valid shortcuts values: ControlPanel, DevicesPrinters and PowerShell
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 6a85c62d..f774c309 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.5.2
- Date: 11.02.2023
+ Version: v5.5.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.5.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.5.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/de-DE/Sophia.psd1
index 30586570..aa5b79d3 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2019
-UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 3770 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 4010 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 de04d90e..c223f1c5 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2019
-UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative update: 3770 and higher. Run Windows Update and try again
+UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative update: 4010 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 eb75da42..068f1880 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/es-ES/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2019
-UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 3770 y superior. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 4010 y superior. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 c69497e8..816a7807 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/fr-FR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte le version Windows 10 Enterprise LTSC 2019
-UpdateWarning = La mise à jour cumulative de Windows 10 est installée : {0}. Mise à jour cumulative prise en charge: 3770 et plus. Exécutez Windows Update et réessayez
+UpdateWarning = La mise à jour cumulative de Windows 10 est installée : {0}. Mise à jour cumulative prise en charge: 4010 et plus. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 044578b3..f2cf0556 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2019 kiadást
-UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 3770 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 4010 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 c5a4946a..efca5474 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2019
-UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 3770 o superiori. Eseguire Windows Update e riprovare
+UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 4010 o superiori. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 2c586a56..4ed48924 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko system Windows 10 x64 only
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2019
-UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 3770 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie
+UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 4010 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 c53363e3..830cd22a 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2019
-UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 3770 e superior. Execute o Windows Update e tente novamente
+UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 4010 e superior. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 9ad9c20b..a928c554 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2019
-UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 3770 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 4010 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 d3bb9ef5..38d35091 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Bu betik sadece Windows 10 Enterprise LTSC 2019
-UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 3770 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 4010 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 72af8ee1..918ec81c 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2019
-UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 3770 і вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 4010 і вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 b647aa83..a8699b88 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本Enterprise LTSC 2019
-UpdateWarning = 安装了Windows 10累积更新:{0}. 支持的累积更新:3770及以上。运行Windows Update并再次尝试
+UpdateWarning = 安装了Windows 10累积更新:{0}. 支持的累积更新:4010及以上。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
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 511fa0a0..ea64fa9c 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.5.2'
+ ModuleVersion = '5.5.3'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
index 303c4290..67bee608 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.5.2
- Date: 11.02.2023
+ Version: v5.5.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -69,9 +69,9 @@ function Checks
{
$true
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 3770)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 4010)
{
- # Check whether the OS minor build version is 3770 minimum
+ # Check whether the OS minor build version is 4010 minimum
# https://docs.microsoft.com/en-us/windows/release-health/release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $Version)
@@ -5510,7 +5510,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -7115,7 +7115,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -7603,6 +7603,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -7932,10 +7933,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -8001,84 +8000,83 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
-#endregion System
-#region Start menu
<#
.SYNOPSIS
- Recently added apps in the Start menu
+ Internal SATA drives up as removeable media in the taskbar notification area
- .PARAMETER Hide
- Hide recently added apps in the Start menu
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
.PARAMETER Show
- Show recently added apps in the Start menu
+ Show more recommendations on Start
.EXAMPLE
- RecentlyAddedApps -Hide
+ SATADrivesRemovableMedia -Disable
.EXAMPLE
- RecentlyAddedApps -Show
+ SATADrivesRemovableMedia -Default
.NOTES
Machine-wide
#>
-function RecentlyAddedApps
+function SATADrivesRemovableMedia ###
{
param
(
[Parameter(
Mandatory = $true,
- ParameterSetName = "Hide"
+ ParameterSetName = "Disable"
)]
[switch]
- $Hide,
+ $Disable,
[Parameter(
Mandatory = $true,
- ParameterSetName = "Show"
+ ParameterSetName = "Default"
)]
[switch]
- $Show
+ $Default
)
switch ($PSCmdlet.ParameterSetName)
{
- "Hide"
+ "Disable"
{
- if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
- {
- New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
- }
- New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -PropertyType DWord -Value 1 -Force
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
}
- "Show"
+ "Default"
{
- Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -Force -ErrorAction Ignore
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
}
}
}
+#endregion System
+#region Start menu
<#
.SYNOPSIS
- App suggestions in the Start menu
+ Recently added apps in the Start menu
.PARAMETER Hide
- Hide app suggestions in the Start menu
+ Hide recently added apps in the Start menu
.PARAMETER Show
- Show app suggestions in the Start menu
+ Show recently added apps in the Start menu
.EXAMPLE
- AppSuggestions -Hide
+ RecentlyAddedApps -Hide
.EXAMPLE
- AppSuggestions -Show
+ RecentlyAddedApps -Show
.NOTES
- Current user
+ Machine-wide
#>
-function AppSuggestions
+function RecentlyAddedApps
{
param
(
@@ -8101,66 +8099,66 @@ function AppSuggestions
{
"Hide"
{
- New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338388Enabled -PropertyType DWord -Value 0 -Force
+ if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
+ {
+ New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
+ }
+ New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -PropertyType DWord -Value 1 -Force
}
"Show"
{
- New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338388Enabled -PropertyType DWord -Value 1 -Force
+ Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
- How to run the Windows PowerShell shortcut
+ App suggestions in the Start menu
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
+ .PARAMETER Hide
+ Hide app suggestions in the Start menu
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
+ .PARAMETER Show
+ Show app suggestions in the Start menu
.EXAMPLE
- RunPowerShellShortcut -Elevated
+ AppSuggestions -Hide
.EXAMPLE
- RunPowerShellShortcut -NonElevated
+ AppSuggestions -Show
.NOTES
Current user
#>
-function RunPowerShellShortcut
+function AppSuggestions
{
param
(
[Parameter(
Mandatory = $true,
- ParameterSetName = "Elevated"
+ ParameterSetName = "Hide"
)]
[switch]
- $Elevated,
+ $Hide,
[Parameter(
Mandatory = $true,
- ParameterSetName = "NonElevated"
+ ParameterSetName = "Show"
)]
[switch]
- $NonElevated
+ $Show
)
switch ($PSCmdlet.ParameterSetName)
{
- "Elevated"
+ "Hide"
{
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338388Enabled -PropertyType DWord -Value 0 -Force
}
- "NonElevated"
+ "Show"
{
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338388Enabled -PropertyType DWord -Value 1 -Force
}
}
}
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 88cb85e0..f1c7acbb 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.5.2
- Date: 11.02.2023
+ Version: v5.5.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 version
Version: 1809
- Build: 17763.3770+
+ Build: 17763.4010+
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.5.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.5.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -798,6 +798,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region Start menu
@@ -816,14 +824,6 @@ AppSuggestions -Hide
# Show app suggestions in the Start menu (default value)
# Показывать рекомендации в меню "Пуск" (значение по умолчанию)
# AppSuggestions -Show
-
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
#endregion Start menu
#region Gaming
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 933210dd..a044f083 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.15.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.15.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/de-DE/Sophia.psd1
index e306c532..52ed6a47 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 Enterprise LTSC 2021
-UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2364 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 7edfd924..74e17eec 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 Enterprise LTSC 2021
-UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2364 and higher. Run Windows Update and try again
+UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 68526950..19755f67 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 Enterprise LTSC 2021
-UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2364 y superior. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 117ff0de..037cceef 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/fr-FR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 Enterprise LTSC 2021
-UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2364 et plus. Exécutez Windows Update et réessayez
+UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 fcb477a5..c7a35bef 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 Enterprise LTSC 2021
-UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2364 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 546bca7c..f10b169c 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10 Enterprise LTSC 2021
-UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2364 o superiori. Eseguire Windows Update e riprovare
+UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 d8e7df4b..5ea48a43 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko system Windows 10 x64
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 Enterprise LTSC 2021
-UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2364 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie
+UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 8b5b925e..3d107f6a 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 Enterprise LTSC 2021
-UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2364 e superior. Execute o Windows Update e tente novamente
+UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 f27ddcc2..c1512eb3 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 Enterprise LTSC 2021
-UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2364 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 0645c8fe..481bc177 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Komut dosyası, Windows 10 Enterprise LTSC 2021
-UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2364 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 488a5678..86d994ee 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 Enterprise LTSC 2021
-UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2364 і вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 c4115fc9..6d8dff45 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10 Enterprise LTSC 2021
-UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2364及以上。运行Windows Update并再次尝试
+UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
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 ffeedf6b..4e51ad1e 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.15.2'
+ ModuleVersion = '5.15.3'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
index 6a30f558..e456faf0 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 version
Version: 21H2
- Build: 19044.2364+
+ Build: 19044.2604+
Edition: Enterprise LTSC 2021
Architecture: x64
@@ -69,9 +69,9 @@ function Checks
{
$true
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2364)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604)
{
- # Check whether the OS minor build version is 2364 minimum
+ # Check whether the OS minor build version is 2604 minimum
# https://docs.microsoft.com/en-us/windows/release-health/release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $Version)
@@ -5897,7 +5897,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -7740,7 +7740,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -8228,6 +8228,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -8557,10 +8558,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -8626,6 +8625,60 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
+
+<#
+ .SYNOPSIS
+ Internal SATA drives up as removeable media in the taskbar notification area
+
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
+
+ .PARAMETER Show
+ Show more recommendations on Start
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Disable
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Default
+
+ .NOTES
+ Machine-wide
+#>
+function SATADrivesRemovableMedia ###
+{
+ param
+ (
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Disable"
+ )]
+ [switch]
+ $Disable,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Default"
+ )]
+ [switch]
+ $Default
+ )
+
+ switch ($PSCmdlet.ParameterSetName)
+ {
+ "Disable"
+ {
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
+ }
+ "Default"
+ {
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
+ }
+ }
+}
#endregion System
#region WSL
@@ -8908,61 +8961,6 @@ function AppSuggestions
}
}
-<#
- .SYNOPSIS
- How to run the Windows PowerShell shortcut
-
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
-
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
-
- .EXAMPLE
- RunPowerShellShortcut -Elevated
-
- .EXAMPLE
- RunPowerShellShortcut -NonElevated
-
- .NOTES
- Current user
-#>
-function RunPowerShellShortcut
-{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Elevated"
- )]
- [switch]
- $Elevated,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "NonElevated"
- )]
- [switch]
- $NonElevated
- )
-
- switch ($PSCmdlet.ParameterSetName)
- {
- "Elevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- "NonElevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- }
-}
-
<#
.SYNOPSIS
The Start tiles
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 d546cfe7..8a559cd0 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 version
Version: 21H2
- Build: 19044.2364+
+ Build: 19044.2604+
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.15.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.15.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -896,6 +896,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region WSL
@@ -926,14 +934,6 @@ AppSuggestions -Hide
# Показывать рекомендации в меню "Пуск" (значение по умолчанию)
# AppSuggestions -Show
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
-
<#
Pin to Start the following shortcuts: Control Panel, Devices and Printers, PowerShell
Valid shortcuts values: ControlPanel, DevicesPrinters and PowerShell
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 a905e592..bf3de7b1 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/de-DE/Sophia.psd1
index 4e0f000f..23d31556 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 21H2/22H2+
-UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2364 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 2604 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 9c0f7e21..89b4ce4b 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 21H2/22H2+
-UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2364 and higher. Run Windows Update and try again
+UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative updates: 2604 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 9af637a6..799d85f3 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 21H2/22H2+
-UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2364 y superior. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 2604 y superior. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 30325354..9148ca67 100644
--- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/fr-FR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 21H2/22H2+
-UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2364 et plus. Exécutez Windows Update et réessayez
+UpdateWarning = La mise à jour cumulative de Windows 10 est installée: {0}. Mise à jour cumulative prise en charge: 2604 et plus. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 d087b964..97b7feee 100644
--- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/hu-HU/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 21H2/22H2+ verziókat
-UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2364 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 2604 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 092be0b5..54c2cdbd 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10 21H2/22H2+
-UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2364 o superiori. Eseguire Windows Update e riprovare
+UpdateWarning = Windows 10 cumulative update installato: {0}. È necessario l'aggiornamento cumulativo 2604 o superiori. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 8e6b99c7..750a4e95 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Skrypt obsługuje tylko system Windows 10 x64
UnsupportedOSBuild = Skrypt obsługuje system Windows 10 21H2/22H2+
-UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2364 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
+UpdateWarning = Zainstalowano zbiorczą aktualizację systemu Windows 10: {0}. Obsługiwane aktualizacje zbiorcze: 2604 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 eb93a248..f423ea78 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 21H2/22H2+
-UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2364 e superior. Execute o Windows Update e tente novamente
+UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 2604 e superior. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 a95533d0..44477e33 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает Windows 10 21H2/22H2+
-UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2364 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 2604 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 6ff68842..a01732c2 100644
--- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1
+++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Localizations/tr-TR/Sophia.psd1
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Komut dosyası, Windows 10 21H2/22H2+ sürümlerini destekler
-UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2364 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 2604 ve üstü. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 948ee6e7..594dd7cc 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує Windows 10 21H2/22H2+
-UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2364 і вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Встановлений накопичувальний пакет оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 2604 і вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 fa28190c..dddb9441 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
@@ -1,7 +1,7 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本21H2/22H2+和更高版本
-UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2364及以上。运行Windows Update并再次尝试
+UpdateWarning = 安装了Windows 10累积更新: {0}. 支持的累积更新:2604及以上。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
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 7d361583..82a1c9ab 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.15.2'
+ ModuleVersion = '5.15.3'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
index f63f98b7..e7e1896b 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -13,7 +13,7 @@
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2+
- Builds: 19044.2364+
+ Builds: 19045.2604+
Editions: Home/Pro/Enterprise
Architecture: x64
@@ -67,11 +67,11 @@ function Checks
# Detect the OS build version
switch ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber)
{
- {($_ -ge 19044) -and ($_ -le 19048)}
+ {($_ -ge 19045) -and ($_ -le 19048)}
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2364)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 2604)
{
- # Check whether the OS minor build version is 2364 minimum
+ # Check whether the OS minor build version is 2604 minimum
# https://docs.microsoft.com/en-us/windows/release-health/release-information
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
Write-Warning -Message ($Localization.UpdateWarning -f $Version)
@@ -100,7 +100,7 @@ function Checks
exit
}
}
- {($_ -lt 19044) -or ($_ -gt 19048)}
+ {($_ -lt 19045) -or ($_ -gt 19048)}
{
Write-Warning -Message $Localization.UnsupportedOSBuild
Start-Process -FilePath "https://t.me/sophia_chat"
@@ -6849,7 +6849,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -8731,7 +8731,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -9219,6 +9219,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -9592,10 +9593,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -9661,6 +9660,60 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
+
+<#
+ .SYNOPSIS
+ Internal SATA drives up as removeable media in the taskbar notification area
+
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
+
+ .PARAMETER Show
+ Show more recommendations on Start
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Disable
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Default
+
+ .NOTES
+ Machine-wide
+#>
+function SATADrivesRemovableMedia ###
+{
+ param
+ (
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Disable"
+ )]
+ [switch]
+ $Disable,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Default"
+ )]
+ [switch]
+ $Default
+ )
+
+ switch ($PSCmdlet.ParameterSetName)
+ {
+ "Disable"
+ {
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
+ }
+ "Default"
+ {
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
+ }
+ }
+}
#endregion System
#region WSL
@@ -9943,61 +9996,6 @@ function AppSuggestions
}
}
-<#
- .SYNOPSIS
- How to run the Windows PowerShell shortcut
-
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
-
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
-
- .EXAMPLE
- RunPowerShellShortcut -Elevated
-
- .EXAMPLE
- RunPowerShellShortcut -NonElevated
-
- .NOTES
- Current user
-#>
-function RunPowerShellShortcut
-{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Elevated"
- )]
- [switch]
- $Elevated,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "NonElevated"
- )]
- [switch]
- $NonElevated
- )
-
- switch ($PSCmdlet.ParameterSetName)
- {
- "Elevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -AsByteStream -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -AsByteStream -Force
- }
- "NonElevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -AsByteStream -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -AsByteStream -Force
- }
- }
-}
-
<#
.SYNOPSIS
The Start tiles
@@ -11133,7 +11131,7 @@ function HEVC
)
# Check whether the extension is already installed
- if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if ((-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) -or (Get-AppxPackage -Name Microsoft.HEVCVideoExtension))
{
return
}
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 9410a581..a457c4b4 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.15.2
- Date: 11.02.2023
+ Version: v5.15.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2
- Builds: 19044.2364+
+ Builds: 19045.2604+
Editions: Home/Pro/Enterprise
Architecture: x64
@@ -70,7 +70,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.15.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -1010,6 +1010,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region WSL
@@ -1040,14 +1048,6 @@ AppSuggestions -Hide
# Показывать рекомендации в меню "Пуск" (значение по умолчанию)
# AppSuggestions -Show
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
-
<#
Pin to Start the following shortcuts: Control Panel, Devices and Printers, PowerShell
Valid shortcuts values: ControlPanel, DevicesPrinters and PowerShell
diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1
index d5eab819..56285f9b 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Localizations/de-DE/Sophia.psd1
index 5ab0044c..d5b9c430 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Das Skript unterstützt Windows 11 2004/20H2/21H1-Versionen und höher
-UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.963 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1344 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 c48f7184..6e4e57ba 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = The script supports Windows 11 21H2 version and higher
-UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.963 and higher. Run Windows Update and try again
+UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.1344 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 018d4c3d..00e35811 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = El script es compatible con versión Windows 11 21H2 y superiores
-UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.963 y superiores. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1344 y superiores. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 18018ec1..fd875e32 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Le script supporte les versions Windows 11 21H2 et ultérieures
-UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.963 et ultérieures. Exécutez Windows Update et réessayez
+UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1344 et ultérieures. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 e76b531c..2f250882 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = A szkript a Windows 11 21H2 és újabb kiadásokat támogatja
-UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.963 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1344 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 7654b22f..bd150568 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Lo script supporta Windows 11 21H2 e versioni successive
-UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.963 e successive. Eseguire Windows Update e riprovare
+UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1344 e successive. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 beb0d952..0938cb4c 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Skrypt obsługuje tylko system Windows 11 21H2 version and higher
-UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.963 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
+UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1344 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 29e9993e..c86eaa47 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = O script suporta versões Windows 11 21H2 e superior
-UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.963 e successive. Execute o Windows Update e tente novamente
+UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1344 e successive. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 294f57a2..7d214e90 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает только Windows 11 21H2 и выше
-UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.963 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1344 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 016d290f..846f98ab 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Bu betik sadece Windows 11 21H2 sürüm ve üstünü destekliyor
-UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.963 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1344 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 76699320..4d1ee861 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує тільки Windows 11 21H2 та вище
-UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.963 та вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1344 та вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 4ef87048..c6940a2e 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 该脚本支持Windows 11版本21H2和更高版本
-UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.963和更高版本。运行Windows Update并再次尝试
+UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.1344和更高版本。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1
index 89cb2c9e..bca53033 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.3.2'
+ ModuleVersion = '6.3.3'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
index 51fb622b..54ddc086 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -13,7 +13,7 @@
.NOTES
Supported Windows 11 versions
Versions: 22H2/23H2+
- Builds: 22621.963+
+ Builds: 22621.1344+
Editions: Home/Pro/Enterprise
.LINK GitHub
@@ -121,9 +121,9 @@ function Checks
}
{$_ -ge 22621}
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 963)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1344)
{
- # Check whether the OS minor build version is 1335 minimum
+ # Check whether the OS minor build version is 1344 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@@ -2601,19 +2601,28 @@ function TaskbarAlignment
<#
.SYNOPSIS
- The search icon on the taskbar
+ Search on the taskbar
.PARAMETER Hide
- Hide the search icon on the taskbar
+ Hide the search on the taskbar
- .PARAMETER Show
+ .PARAMETER SearchIcon
Show the search icon on the taskbar
+ .PARAMETER SearchBox
+ Show the search box on the taskbar
+
.EXAMPLE
TaskbarSearch -Hide
.EXAMPLE
- TaskbarSearch -Show
+ TaskbarSearch -SearchIcon
+
+ .EXAMPLE
+ TaskbarSearch -SearchIconLabel
+
+ .EXAMPLE
+ TaskbarSearch -SearchBox
.NOTES
Current user
@@ -2631,10 +2640,24 @@ function TaskbarSearch
[Parameter(
Mandatory = $true,
- ParameterSetName = "Show"
+ ParameterSetName = "SearchIcon"
)]
[switch]
- $Show
+ $SearchIcon,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "SearchIconLabel"
+ )]
+ [switch]
+ $SearchIconLabel,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "SearchBox"
+ )]
+ [switch]
+ $SearchBox
)
switch ($PSCmdlet.ParameterSetName)
@@ -2643,10 +2666,18 @@ function TaskbarSearch
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 0 -Force
}
- "Show"
+ "SearchIcon"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 1 -Force
}
+ "SearchIconLabel"
+ {
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 3 -Force
+ }
+ "SearchBox"
+ {
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 2 -Force
+ }
}
}
@@ -6351,7 +6382,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -8233,7 +8264,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -8721,6 +8752,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -9089,13 +9121,7 @@ function RKNBypass
<#
.SYNOPSIS
- Enable the latest Windows Subsystem for Android™ with Amazon Appstore
-
- .EXAMPLE Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install it manually
- WSA -Enable
-
- .EXAMPLE Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore
- WSA -Disable
+ Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install it manually
.LINK
https://support.microsoft.com/en-us/windows/install-mobile-apps-and-the-amazon-appstore-f8d0abb5-44ad-47d8-b9fb-ad6b1459ff6c
@@ -9104,109 +9130,70 @@ function RKNBypass
https://docs.microsoft.com/en-us/windows/android/wsa/
.LINK
- https://www.microsoft.com/store/productId/9P3395VX91NR
+ https://apps.microsoft.com/store/detail/windows-subsystem-for-android™-with-amazon-appstore/9P3395VX91NR
.NOTES
Machine-wide
#>
-function WSA
+function Install-WSA
{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Enable"
- )]
- [switch]
- $Enable,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Disable"
- )]
- [switch]
- $Disable
- )
-
- switch ($PSCmdlet.ParameterSetName)
+ # Enable Virtual Machine Platform
+ if ((Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform).State -eq "Disabled")
{
- "Enable"
- {
- # Check if Windows 11 is installed on an SSD
- $DiskNumber = (Get-Disk | Where-Object -FilterScript {$_.Isboot -and $_.IsSystem -and ($_.OperationalStatus -eq "Online")}).Number
- if (Get-PhysicalDisk -DeviceNumber $DiskNumber | Where-Object -FilterScript {$_.MediaType -ne "SSD"})
- {
- Write-Warning -Message $Localization.SSDRequired
-
- return
- }
-
- # Enable Windows Subsystem for Android (WSA)
- if ((Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux).State -eq "Disabled")
- {
- Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
-
- Write-Warning -Message $Localization.RestartWarning
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
+ Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
- return
- }
+ Write-Warning -Message $Localization.RestartWarning
+ Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
- # Enable Virtual Machine Platform
- if ((Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform).State -eq "Disabled")
- {
- Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
+ return
+ }
- Write-Warning -Message $Localization.RestartWarning
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
+ if (Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid)
+ {
+ return
+ }
- return
- }
+ # Check if Windows 11 is installed on an SSD
+ $DiskNumber = (Get-Disk | Where-Object -FilterScript {$_.Isboot -and $_.IsSystem -and ($_.OperationalStatus -eq "Online")}).Number
+ if (Get-PhysicalDisk -DeviceNumber $DiskNumber | Where-Object -FilterScript {$_.MediaType -ne "SSD"})
+ {
+ Write-Warning -Message $Localization.SSDRequired
- if (Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid)
- {
- return
- }
+ return
+ }
- try
- {
- # Check the internet connection
- $Parameters = @{
- Uri = "https://www.google.com"
- Method = "Head"
- DisableKeepAlive = $true
- UseBasicParsing = $true
- }
- if (-not (Invoke-WebRequest @Parameters).StatusDescription)
- {
- return
- }
+ try
+ {
+ # Check the internet connection
+ $Parameters = @{
+ Uri = "https://www.google.com"
+ Method = "Head"
+ DisableKeepAlive = $true
+ UseBasicParsing = $true
+ }
+ if (-not (Invoke-WebRequest @Parameters).StatusDescription)
+ {
+ return
+ }
- if (((Get-WinHomeLocation).GeoId -ne "244"))
- {
- # Set Windows region to USA
- $Script:Region = (Get-WinHomeLocation).GeoId
- Set-WinHomeLocation -GeoId 244
+ if (((Get-WinHomeLocation).GeoId -ne "244"))
+ {
+ # Set Windows region to USA
+ $Script:Region = (Get-WinHomeLocation).GeoId
+ Set-WinHomeLocation -GeoId 244
- $Script:RegionChanged = $true
- }
+ $Script:RegionChanged = $true
+ }
- # Open Misrosoft Store WSA page to install it manually
- Start-Process -FilePath ms-windows-store://pdp/?ProductId=9P3395VX91NR
- }
- catch [System.Net.WebException]
- {
- Write-Warning -Message $Localization.NoInternetConnection
- Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
+ # Open Misrosoft Store WSA page to install it manually
+ Start-Process -FilePath ms-windows-store://pdp/?ProductId=9P3395VX91NR
+ }
+ catch [System.Net.WebException]
+ {
+ Write-Warning -Message $Localization.NoInternetConnection
+ Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
- }
- }
- "Disable"
- {
- Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
- Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid | Remove-AppxPackage
- }
+ Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
}
@@ -9250,10 +9237,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -9319,6 +9304,60 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
+
+<#
+ .SYNOPSIS
+ Internal SATA drives up as removeable media in the taskbar notification area
+
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
+
+ .PARAMETER Show
+ Show more recommendations on Start
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Disable
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Default
+
+ .NOTES
+ Machine-wide
+#>
+function SATADrivesRemovableMedia ###
+{
+ param
+ (
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Disable"
+ )]
+ [switch]
+ $Disable,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Default"
+ )]
+ [switch]
+ $Default
+ )
+
+ switch ($PSCmdlet.ParameterSetName)
+ {
+ "Disable"
+ {
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
+ }
+ "Default"
+ {
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
+ }
+ }
+}
#endregion System
#region WSL
@@ -9563,61 +9602,6 @@ BDEE24B1E5E4ED6CC9D5A337908BE5303E477736C8A75051A8FBD4E3CB6360D8F0A992A48F333434
Set-Content "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start.bin" -Value $Bytes -Encoding Byte -Force
}
-<#
- .SYNOPSIS
- How to run the Windows PowerShell shortcut
-
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
-
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
-
- .EXAMPLE
- RunPowerShellShortcut -Elevated
-
- .EXAMPLE
- RunPowerShellShortcut -NonElevated
-
- .NOTES
- Current user
-#>
-function RunPowerShellShortcut
-{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Elevated"
- )]
- [switch]
- $Elevated,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "NonElevated"
- )]
- [switch]
- $NonElevated
- )
-
- switch ($PSCmdlet.ParameterSetName)
- {
- "Elevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- "NonElevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Encoding Byte -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -Encoding Byte -Force
- }
- }
-}
-
<#
.SYNOPSIS
Configure Start layout
@@ -9640,9 +9624,6 @@ function RunPowerShellShortcut
.EXAMPLE
StartLayout -ShowMoreRecommendations
- .NOTES
- For Windows 11 22H2+
-
.NOTES
Current user
#>
@@ -9672,25 +9653,22 @@ function StartLayout
$ShowMoreRecommendations
)
- if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -ge 22621)
+ switch ($PSCmdlet.ParameterSetName)
{
- switch ($PSCmdlet.ParameterSetName)
+ "Default"
{
- "Default"
- {
- # Default
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 0 -Force
- }
- "ShowMorePins"
- {
- # Show More Pins
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 1 -Force
- }
- "ShowMoreRecommendations"
- {
- # Show More Recommendations
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 2 -Force
- }
+ # Default
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 0 -Force
+ }
+ "ShowMorePins"
+ {
+ # Show More Pins
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 1 -Force
+ }
+ "ShowMoreRecommendations"
+ {
+ # Show More Recommendations
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 2 -Force
}
}
}
@@ -10556,7 +10534,7 @@ function HEVC
)
# Check whether the extension is already installed
- if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if ((-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) -or (Get-AppxPackage -Name Microsoft.HEVCVideoExtension))
{
return
}
@@ -12508,17 +12486,17 @@ function DNSoverHTTPS
foreach ($InterfaceGuid in $InterfaceGuids)
{
- if (-not (Test-Path -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS"))
+ if (-not (Test-Path -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS"))
{
- New-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Force
+ New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Force
}
- if (-not (Test-Path -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS"))
+ if (-not (Test-Path -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS"))
{
- New-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Force
+ New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Force
}
# Encrypted preffered, unencrypted allowed
- New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
- New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
}
}
}
@@ -12540,7 +12518,7 @@ function DNSoverHTTPS
foreach ($InterfaceGuid in $InterfaceGuids)
{
- Remove-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh" -Recurse -Force -ErrorAction Ignore
+ Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh" -Recurse -Force -ErrorAction Ignore
}
}
}
@@ -12867,7 +12845,7 @@ function EditWithClipchampContext
$Show
)
- if (((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -ge 22621) -and (Get-AppxPackage -Name Clipchamp.Clipchamp))
+ if (Get-AppxPackage -Name Clipchamp.Clipchamp)
{
switch ($PSCmdlet.ParameterSetName)
{
diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1
index 5bcf0f77..1af4bf92 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 11 versions
Versions: 22H2
- Builds: 22621.963+
+ Builds: 22621.1344+
Editions: Home/Pro/Enterprise
.NOTES
@@ -69,7 +69,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -365,13 +365,21 @@ TaskbarAlignment -Center
# Установить выравнивание панели задач по левому краю
# TaskbarAlignment -Left
-# Hide the search button from the taskbar
-# Скрыть кнопку поиска с панели задач
+# Hide the search on the taskbar
+# Скрыть поле или значок поиска на панели задач
TaskbarSearch -Hide
# Show the search icon on the taskbar
-# Отобразить кнопку поиска на панели задач
-# TaskbarSearch -Show
+# Показать значок поиска на панели задач
+# TaskbarSearch -SearchIcon
+
+# Show the search icon and label on the taskbar
+# Показать значок и метку поиска на панели задач
+# TaskbarSearch -SearchIconLabel
+
+# Show the search box on the taskbar (default value)
+# Показать поле поиска на панели задач (значение по умолчанию)
+# TaskbarSearch -SearchBox
# Hide the Task view button from the taskbar
# Скрыть кнопку "Представление задач" с панели задач
@@ -932,11 +940,7 @@ RKNBypass -Enable
# Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install Windows Subsystem for Android™ with Amazon Appstore manually
# Включить все необходимые зависимости (может потребоваться перезагрузка) и открыть страницу WSA в Microsoft Store, чтобы вручную установить Windows Subsystem for Android™ with Amazon Appstore
-# WSA -Enable
-
-# Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore (default value)
-# Выключить все необходимые зависимости и удалить Windows Subsystem for Android™ with Amazon Appstore (значение по умолчанию)
-# WSA -Disable
+# Install-WSA
# List Microsoft Edge channels to prevent desktop shortcut creation upon its' update
# Перечислите каналы Microsoft Edge для предотвращения создания ярлыков на рабочем столе после его обновления
@@ -945,6 +949,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region WSL
@@ -963,24 +975,16 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Открепить все приложения от начального экрана
# UnpinAllStartApps
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
-
-# Show default Start layout (for 22621+ build only) (default value)
-# Отображать стандартный макет начального экрана (только для сборок 22621+) (значение по умолчанию)
+# Show default Start layout (default value)
+# Отображать стандартный макет начального экрана (значение по умолчанию)
# StartLayout -Default
-# Show more pins on Start (for 22621+ build only)
-# Отображать больше закреплений на начальном экране (только для сборок 22621+)
+# Show more pins on Start
+# Отображать больше закреплений на начальном экране
StartLayout -ShowMorePins
-# Show more recommendations on Start (for 22621+ build only)
-# Отображать больше рекомендаций на начальном экране (только для сборок 22621+)
+# Show more recommendations on Start
+# Отображать больше рекомендаций на начальном экране
# StartLayout -ShowMoreRecommendations
#endregion Start menu
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 d14764c6..5aed30d2 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -50,7 +50,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.3 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/de-DE/Sophia.psd1
index 5ab0044c..d5b9c430 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Das Skript unterstützt Windows 11 2004/20H2/21H1-Versionen und höher
-UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.963 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
+UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: 22621.1344 und höher. Führen Sie Windows Update aus und versuchen Sie es erneut
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
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 c48f7184..6e4e57ba 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = The script supports Windows 11 21H2 version and higher
-UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.963 and higher. Run Windows Update and try again
+UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: 22621.1344 and higher. Run Windows Update and try again
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
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 018d4c3d..00e35811 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = El script es compatible con versión Windows 11 21H2 y superiores
-UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.963 y superiores. Ejecute Windows Update y vuelva a intentarlo
+UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: 22621.1344 y superiores. Ejecute Windows Update y vuelva a intentarlo
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
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 18018ec1..fd875e32 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Le script supporte les versions Windows 11 21H2 et ultérieures
-UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.963 et ultérieures. Exécutez Windows Update et réessayez
+UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: 22621.1344 et ultérieures. Exécutez Windows Update et réessayez
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
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 e76b531c..2f250882 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = A szkript a Windows 11 21H2 és újabb kiadásokat támogatja
-UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.963 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
+UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: 22621.1344 és magasabb verziószámok. Futtassa a Windows Update programot, és próbálja meg újra
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
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 7654b22f..bd150568 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Lo script supporta Windows 11 21H2 e versioni successive
-UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.963 e successive. Eseguire Windows Update e riprovare
+UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: 22621.1344 e successive. Eseguire Windows Update e riprovare
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata
LoggedInUserNotAdmin = L'utente in suo non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
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 beb0d952..0938cb4c 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Skrypt obsługuje tylko system Windows 11 21H2 version and higher
-UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.963 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
+UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: 22621.1344 i nowsze. Uruchom aktualizację systemu Windows i spróbuj ponownie.
UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka
LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora
UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell
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 29e9993e..c86eaa47 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = O script suporta versões Windows 11 21H2 e superior
-UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.963 e successive. Execute o Windows Update e tente novamente
+UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: 22621.1344 e successive. Execute o Windows Update e tente novamente
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
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 294f57a2..7d214e90 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает только Windows 11 21H2 и выше
-UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.963 и выше. Запустите обновление Windows и попробуйте заново
+UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: 22621.1344 и выше. Запустите обновление Windows и попробуйте заново
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
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 016d290f..846f98ab 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Bu betik sadece Windows 11 21H2 sürüm ve üstünü destekliyor
-UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.963 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin
+UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: 22621.1344 ve üstünü destekliyor. Windows Update'i çalıştırın ve tekrar deneyin
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
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 76699320..4d1ee861 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує тільки Windows 11 21H2 та вище
-UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.963 та вище. Запустіть Windows Update і повторіть спробу
+UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: 22621.1344 та вище. Запустіть Windows Update і повторіть спробу
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
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 4ef87048..c6940a2e 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
@@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 该脚本支持Windows 11版本21H2和更高版本
-UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.963和更高版本。运行Windows Update并再次尝试
+UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: 22621.1344和更高版本。运行Windows Update并再次尝试
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本
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 3a91ad0a..9087f324 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.3.2'
+ ModuleVersion = '6.3.3'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved'
diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
index 88f695c9..49223781 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -13,7 +13,7 @@
.NOTES
Supported Windows 11 versions
Versions: 22H2/23H2+
- Builds: 22621.963+
+ Builds: 22621.1344+
Editions: Home/Pro/Enterprise
.LINK GitHub
@@ -121,9 +121,9 @@ function Checks
}
{$_ -ge 22621}
{
- if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 963)
+ if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt 1344)
{
- # Check whether the OS minor build version is 1335 minimum
+ # Check whether the OS minor build version is 1344 minimum
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR
@@ -2603,19 +2603,28 @@ function TaskbarAlignment
<#
.SYNOPSIS
- The search icon on the taskbar
+ Search on the taskbar
.PARAMETER Hide
- Hide the search icon on the taskbar
+ Hide the search on the taskbar
- .PARAMETER Show
+ .PARAMETER SearchIcon
Show the search icon on the taskbar
+ .PARAMETER SearchBox
+ Show the search box on the taskbar
+
.EXAMPLE
TaskbarSearch -Hide
.EXAMPLE
- TaskbarSearch -Show
+ TaskbarSearch -SearchIcon
+
+ .EXAMPLE
+ TaskbarSearch -SearchIconLabel
+
+ .EXAMPLE
+ TaskbarSearch -SearchBox
.NOTES
Current user
@@ -2633,10 +2642,24 @@ function TaskbarSearch
[Parameter(
Mandatory = $true,
- ParameterSetName = "Show"
+ ParameterSetName = "SearchIcon"
)]
[switch]
- $Show
+ $SearchIcon,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "SearchIconLabel"
+ )]
+ [switch]
+ $SearchIconLabel,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "SearchBox"
+ )]
+ [switch]
+ $SearchBox
)
switch ($PSCmdlet.ParameterSetName)
@@ -2645,10 +2668,18 @@ function TaskbarSearch
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 0 -Force
}
- "Show"
+ "SearchIcon"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 1 -Force
}
+ "SearchIconLabel"
+ {
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 3 -Force
+ }
+ "SearchBox"
+ {
+ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWord -Value 2 -Force
+ }
}
}
@@ -6354,7 +6385,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent)
{
- Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force
+ Remove-Item -Path "$CurrentUserFolderPath\desktop.ini" -Force -ErrorAction Ignore
}
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
@@ -8236,7 +8267,7 @@ namespace RegistryUtils
}
'@
- if (-not('RegistryUtils.Action' -as [type]))
+ if (-not ('RegistryUtils.Action' -as [type]))
{
Add-Type -TypeDefinition $RegistryUtils
}
@@ -8724,6 +8755,7 @@ namespace FileAssoc
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
+
public static void Refresh()
{
// Update desktop icons
@@ -9092,13 +9124,7 @@ function RKNBypass
<#
.SYNOPSIS
- Enable the latest Windows Subsystem for Android™ with Amazon Appstore
-
- .EXAMPLE Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install it manually
- WSA -Enable
-
- .EXAMPLE Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore
- WSA -Disable
+ Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install it manually
.LINK
https://support.microsoft.com/en-us/windows/install-mobile-apps-and-the-amazon-appstore-f8d0abb5-44ad-47d8-b9fb-ad6b1459ff6c
@@ -9107,109 +9133,70 @@ function RKNBypass
https://docs.microsoft.com/en-us/windows/android/wsa/
.LINK
- https://www.microsoft.com/store/productId/9P3395VX91NR
+ https://apps.microsoft.com/store/detail/windows-subsystem-for-android™-with-amazon-appstore/9P3395VX91NR
.NOTES
Machine-wide
#>
-function WSA
+function Install-WSA
{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Enable"
- )]
- [switch]
- $Enable,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Disable"
- )]
- [switch]
- $Disable
- )
-
- switch ($PSCmdlet.ParameterSetName)
+ # Enable Virtual Machine Platform
+ if ((Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform).State -eq "Disabled")
{
- "Enable"
- {
- # Check if Windows 11 is installed on an SSD
- $DiskNumber = (Get-Disk | Where-Object -FilterScript {$_.Isboot -and $_.IsSystem -and ($_.OperationalStatus -eq "Online")}).Number
- if (Get-PhysicalDisk -DeviceNumber $DiskNumber | Where-Object -FilterScript {$_.MediaType -ne "SSD"})
- {
- Write-Warning -Message $Localization.SSDRequired
-
- return
- }
-
- # Enable Windows Subsystem for Android (WSA)
- if ((Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux).State -eq "Disabled")
- {
- Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
-
- Write-Warning -Message $Localization.RestartWarning
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
+ Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
- return
- }
+ Write-Warning -Message $Localization.RestartWarning
+ Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
- # Enable Virtual Machine Platform
- if ((Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform).State -eq "Disabled")
- {
- Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
+ return
+ }
- Write-Warning -Message $Localization.RestartWarning
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
+ if (Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid)
+ {
+ return
+ }
- return
- }
+ # Check if Windows 11 is installed on an SSD
+ $DiskNumber = (Get-Disk | Where-Object -FilterScript {$_.Isboot -and $_.IsSystem -and ($_.OperationalStatus -eq "Online")}).Number
+ if (Get-PhysicalDisk -DeviceNumber $DiskNumber | Where-Object -FilterScript {$_.MediaType -ne "SSD"})
+ {
+ Write-Warning -Message $Localization.SSDRequired
- if (Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid)
- {
- return
- }
+ return
+ }
- try
- {
- # Check the internet connection
- $Parameters = @{
- Uri = "https://www.google.com"
- Method = "Head"
- DisableKeepAlive = $true
- UseBasicParsing = $true
- }
- if (-not (Invoke-WebRequest @Parameters).StatusDescription)
- {
- return
- }
+ try
+ {
+ # Check the internet connection
+ $Parameters = @{
+ Uri = "https://www.google.com"
+ Method = "Head"
+ DisableKeepAlive = $true
+ UseBasicParsing = $true
+ }
+ if (-not (Invoke-WebRequest @Parameters).StatusDescription)
+ {
+ return
+ }
- if (((Get-WinHomeLocation).GeoId -ne "244"))
- {
- # Set Windows region to USA
- $Script:Region = (Get-WinHomeLocation).GeoId
- Set-WinHomeLocation -GeoId 244
+ if (((Get-WinHomeLocation).GeoId -ne "244"))
+ {
+ # Set Windows region to USA
+ $Script:Region = (Get-WinHomeLocation).GeoId
+ Set-WinHomeLocation -GeoId 244
- $Script:RegionChanged = $true
- }
+ $Script:RegionChanged = $true
+ }
- # Open Misrosoft Store WSA page to install it manually
- Start-Process -FilePath ms-windows-store://pdp/?ProductId=9P3395VX91NR
- }
- catch [System.Net.WebException]
- {
- Write-Warning -Message $Localization.NoInternetConnection
- Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
+ # Open Misrosoft Store WSA page to install it manually
+ Start-Process -FilePath ms-windows-store://pdp/?ProductId=9P3395VX91NR
+ }
+ catch [System.Net.WebException]
+ {
+ Write-Warning -Message $Localization.NoInternetConnection
+ Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
- Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
- }
- }
- "Disable"
- {
- Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
- Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForAndroid | Remove-AppxPackage
- }
+ Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
}
@@ -9253,10 +9240,8 @@ 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).Version -lt [System.Version]"1.3.128.0"))
+ 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"))
{
- (Get-Package -Name "Microsoft Edge Update" -ProviderName Programs -ErrorAction Ignore).Version
-
return
}
@@ -9322,6 +9307,60 @@ function PreventEdgeShortcutCreation
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\EdgeUpdate -Name $Names -Force -ErrorAction Ignore
}
}
+
+<#
+ .SYNOPSIS
+ Internal SATA drives up as removeable media in the taskbar notification area
+
+ .PARAMETER Disable
+ Prevent all internal SATA drives from showing up as removable media in the taskbar notification area ###
+
+ .PARAMETER Default
+ Show up all internal SATA drives as removeable media in the taskbar notification area
+
+ .PARAMETER Show
+ Show more recommendations on Start
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Disable
+
+ .EXAMPLE
+ SATADrivesRemovableMedia -Default
+
+ .NOTES
+ Machine-wide
+#>
+function SATADrivesRemovableMedia
+{
+ param
+ (
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Disable"
+ )]
+ [switch]
+ $Disable,
+
+ [Parameter(
+ Mandatory = $true,
+ ParameterSetName = "Default"
+ )]
+ [switch]
+ $Default
+ )
+
+ switch ($PSCmdlet.ParameterSetName)
+ {
+ "Disable"
+ {
+ New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Value @(0, 1, 2, 3, 4, 5) -Type MultiString -Force
+ }
+ "Default"
+ {
+ Remove-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device -Name TreatAsInternalPort -Force -ErrorAction Ignore
+ }
+ }
+}
#endregion System
#region WSL
@@ -9566,61 +9605,6 @@ BDEE24B1E5E4ED6CC9D5A337908BE5303E477736C8A75051A8FBD4E3CB6360D8F0A992A48F333434
Set-Content "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start.bin" -Value $Bytes -AsByteStream -Force
}
-<#
- .SYNOPSIS
- How to run the Windows PowerShell shortcut
-
- .PARAMETER Elevated
- Run the Windows PowerShell shortcut from the Start menu as Administrator
-
- .PARAMETER NonElevated
- Run the Windows PowerShell shortcut from the Start menu as user
-
- .EXAMPLE
- RunPowerShellShortcut -Elevated
-
- .EXAMPLE
- RunPowerShellShortcut -NonElevated
-
- .NOTES
- Current user
-#>
-function RunPowerShellShortcut
-{
- param
- (
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "Elevated"
- )]
- [switch]
- $Elevated,
-
- [Parameter(
- Mandatory = $true,
- ParameterSetName = "NonElevated"
- )]
- [switch]
- $NonElevated
- )
-
- switch ($PSCmdlet.ParameterSetName)
- {
- "Elevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -AsByteStream -Raw
- $bytes[0x15] = $bytes[0x15] -bor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -AsByteStream -Force
- }
- "NonElevated"
- {
- [byte[]]$bytes = Get-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -AsByteStream -Raw
- $bytes[0x15] = $bytes[0x15] -bxor 0x20
- Set-Content -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Windows PowerShell\Windows PowerShell.lnk" -Value $bytes -AsByteStream -Force
- }
- }
-}
-
<#
.SYNOPSIS
Configure Start layout
@@ -9643,9 +9627,6 @@ function RunPowerShellShortcut
.EXAMPLE
StartLayout -ShowMoreRecommendations
- .NOTES
- For Windows 11 22H2+
-
.NOTES
Current user
#>
@@ -9675,25 +9656,22 @@ function StartLayout
$ShowMoreRecommendations
)
- if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -ge 22621)
+ switch ($PSCmdlet.ParameterSetName)
{
- switch ($PSCmdlet.ParameterSetName)
+ "Default"
{
- "Default"
- {
- # Default
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 0 -Force
- }
- "ShowMorePins"
- {
- # Show More Pins
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 1 -Force
- }
- "ShowMoreRecommendations"
- {
- # Show More Recommendations
- New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 2 -Force
- }
+ # Default
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 0 -Force
+ }
+ "ShowMorePins"
+ {
+ # Show More Pins
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 1 -Force
+ }
+ "ShowMoreRecommendations"
+ {
+ # Show More Recommendations
+ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name Start_Layout -PropertyType DWord -Value 2 -Force
}
}
}
@@ -10579,7 +10557,7 @@ function HEVC
)
# Check whether the extension is already installed
- if (-not (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if ((-not (Get-AppxPackage -Name Microsoft.Windows.Photos)) -or (Get-AppxPackage -Name Microsoft.HEVCVideoExtension))
{
return
}
@@ -12531,17 +12509,17 @@ function DNSoverHTTPS
foreach ($InterfaceGuid in $InterfaceGuids)
{
- if (-not (Test-Path -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS"))
+ if (-not (Test-Path -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS"))
{
- New-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Force
+ New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Force
}
- if (-not (Test-Path -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS"))
+ if (-not (Test-Path -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS"))
{
- New-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Force
+ New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Force
}
# Encrypted preffered, unencrypted allowed
- New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
- New-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$SecondaryDNS" -Name DohFlags -PropertyType QWord -Value 5 -Force
}
}
}
@@ -12563,7 +12541,7 @@ function DNSoverHTTPS
foreach ($InterfaceGuid in $InterfaceGuids)
{
- Remove-Item -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh" -Recurse -Force -ErrorAction Ignore
+ Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh" -Recurse -Force -ErrorAction Ignore
}
}
}
@@ -12890,7 +12868,7 @@ function EditWithClipchampContext
$Show
)
- if (((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -ge 22621) -and (Get-AppxPackage -Name Clipchamp.Clipchamp))
+ if (Get-AppxPackage -Name Clipchamp.Clipchamp)
{
switch ($PSCmdlet.ParameterSetName)
{
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 c0589e04..b7a68af6 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.3.2
- Date: 11.02.2023
+ Version: v6.3.3
+ Date: 07.03.2023
Copyright (c) 2014—2023 farag
Copyright (c) 2019—2023 farag & Inestic
@@ -27,7 +27,7 @@
.NOTES
Supported Windows 11 versions
Versions: 22H2
- Builds: 22621.963+
+ Builds: 22621.1344+
Editions: Home/Pro/Enterprise
.NOTES
@@ -69,7 +69,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.3.3 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@@ -374,13 +374,21 @@ TaskbarAlignment -Center
# Установить выравнивание панели задач по левому краю
# TaskbarAlignment -Left
-# Hide the search button from the taskbar
-# Скрыть кнопку поиска с панели задач
+# Hide the search on the taskbar
+# Скрыть поле или значок поиска на панели задач
TaskbarSearch -Hide
# Show the search icon on the taskbar
-# Отобразить кнопку поиска на панели задач
-# TaskbarSearch -Show
+# Показать значок поиска на панели задач
+# TaskbarSearch -SearchIcon
+
+# Show the search icon and label on the taskbar
+# Показать значок и метку поиска на панели задач
+# TaskbarSearch -SearchIconLabel
+
+# Show the search box on the taskbar (default value)
+# Показать поле поиска на панели задач (значение по умолчанию)
+# TaskbarSearch -SearchBox
# Hide the Task view button from the taskbar
# Скрыть кнопку "Представление задач" с панели задач
@@ -941,11 +949,7 @@ RKNBypass -Enable
# Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install Windows Subsystem for Android™ with Amazon Appstore manually
# Включить все необходимые зависимости (может потребоваться перезагрузка) и открыть страницу WSA в Microsoft Store, чтобы вручную установить Windows Subsystem for Android™ with Amazon Appstore
-# WSA -Enable
-
-# Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore (default value)
-# Выключить все необходимые зависимости и удалить Windows Subsystem for Android™ with Amazon Appstore (значение по умолчанию)
-# WSA -Disable
+# Install-WSA
# List Microsoft Edge channels to prevent desktop shortcut creation upon its' update
# Перечислите каналы Microsoft Edge для предотвращения создания ярлыков на рабочем столе после его обновления
@@ -954,6 +958,14 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)
# Не предотвращать создание ярлыков на рабочем столе при обновлении Microsoft Edge (значение по умолчанию)
# PreventEdgeShortcutCreation -Disable
+
+# Prevent all internal SATA drives from showing up as removable media in the taskbar notification area
+# Запретить отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач
+SATADrivesRemovableMedia -Disable
+
+# Show up all internal SATA drives as removeable media in the taskbar notification area (default value)
+# Отображать все внутренние SATA-диски как съемные носители в области уведомлений на панели задач (значение по умолчанию)
+# SATADrivesRemovableMedia -Default
#endregion System
#region WSL
@@ -972,24 +984,16 @@ PreventEdgeShortcutCreation -Channels Stable, Beta, Dev, Canary
# Открепить все приложения от начального экрана
# UnpinAllStartApps
-# Run the Windows PowerShell shortcut from the Start menu as Administrator
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
-RunPowerShellShortcut -Elevated
-
-# Run the Windows PowerShell shortcut from the Start menu as user (default value)
-# Запускать ярлык Windows PowerShell в меню "Пуск" от имени пользователя (значение по умолчанию)
-# RunPowerShellShortcut -NonElevated
-
-# Show default Start layout (for 22621+ build only) (default value)
-# Отображать стандартный макет начального экрана (только для сборок 22621+) (значение по умолчанию)
+# Show default Start layout (default value)
+# Отображать стандартный макет начального экрана (значение по умолчанию)
# StartLayout -Default
-# Show more pins on Start (for 22621+ build only)
-# Отображать больше закреплений на начальном экране (только для сборок 22621+)
+# Show more pins on Start
+# Отображать больше закреплений на начальном экране
StartLayout -ShowMorePins
-# Show more recommendations on Start (for 22621+ build only)
-# Отображать больше рекомендаций на начальном экране (только для сборок 22621+)
+# Show more recommendations on Start
+# Отображать больше рекомендаций на начальном экране
# StartLayout -ShowMoreRecommendations
#endregion Start menu