diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1
index 7a613995..6306d783 100644
--- a/src/Sophia_Script_for_Windows_10/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_10/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 db7b656b..1e0bf774 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
@@ -12,7 +12,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = OneDrive deinstallieren…
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 d538d85d..2b7acf28 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
@@ -12,7 +12,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
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 7a59ad78..e71eee02 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
@@ -12,7 +12,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
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 6c384e94..0f28172e 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
@@ -12,7 +12,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
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 39465377..276688c1 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
@@ -12,7 +12,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
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 aa73ee5a..d26a7bde 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
@@ -12,7 +12,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstallazione di OneDrive...
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 105135b8..1d8059c7 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
@@ -12,7 +12,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
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 7595af85..2761ebb7 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
@@ -12,7 +12,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
OneDriveUninstalling = Удаление OneDrive...
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 05499983..abfc177c 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
@@ -12,7 +12,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
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 0b2643eb..925257b7 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
@@ -12,7 +12,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
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 c50b8167..b6d0012c 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
@@ -12,7 +12,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive……
diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1
index b47c43a9..530206c0 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.14.1'
+ ModuleVersion = '5.14.2'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 ef923102..43b264e4 100644
--- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
+++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
@@ -2,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,9 +10,6 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2+
@@ -20,10 +17,6 @@
Editions: Home/Pro/Enterprise
Architecture: x64
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -572,6 +565,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -6260,6 +6258,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
@@ -10695,7 +10695,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
<#
.SYNOPSIS
- Install "HEVC Video Extensions from Device Manufacturer" to be able to open .heic and .heif formats
+ "HEVC Video Extensions from Device Manufacturer" extension
.PARAMETER Install
Download and install the "HEVC Video Extensions from Device Manufacturer" extension
@@ -10745,7 +10745,7 @@ function HEIF
"Install"
{
# Check whether the extension is already installed
- if ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if (-not ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos)))
{
return
}
@@ -10766,9 +10766,9 @@ function HEIF
try
{
- # Check whether https://github.com is alive
+ # Check whether https://store.rg-adguard.net is alive
$Parameters = @{
- Uri = "https://github.com"
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@@ -10778,20 +10778,44 @@ function HEIF
return
}
- # https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Misc
- $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Body = @{
+ type = "url"
+ url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
+ ring = "Retail"
+ lang = "en-US"
+ }
$Parameters = @{
- Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- UseBasicParsing = $true
- Verbose = $true
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
+ Method = "Post"
+ ContentType = "application/x-www-form-urlencoded"
+ Body = $Body
+ Verbose = $true
+ }
+ $Raw = Invoke-WebRequest @Parameters
+
+ # Parsing the page
+ $Raw | Select-String -Pattern '
.*)"\s.*>(?.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
+ $TempURL = ($_.Groups | Select-Object -Index 1).Value
+ $HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1
}
- Invoke-WebRequest @Parameters
# Installing "HEVC Video Extensions from Device Manufacturer"
- Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Verbose
+ if ([System.Version]$HEVCPackageName -gt [System.Version](Get-AppxPackage -Name Microsoft.HEVCVideoExtension).Version)
+ {
+ Write-Verbose -Message $Localization.Patient -Verbose
+ Write-Verbose -Message $Localization.HEVCDownloading -Verbose
+
+ $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Parameters = @{
+ Uri = $TempURL
+ OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx"
+ Verbose = $true
+ }
+ Invoke-WebRequest @Parameters
- Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Force
+ Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Verbose
+ Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Force
+ }
}
catch [System.Net.WebException]
{
diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1
index 4b3886cd..1812ec2b 100644
--- a/src/Sophia_Script_for_Windows_10/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10"
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -74,7 +74,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1
index bf889ca0..3d2d2699 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v5.4.1
+ Version: v5.4.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.4.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.4.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 aa45cf54..dea987cf 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
@@ -12,7 +12,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
WindowsFeaturesTitle = Windows-Features
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 c827a0d8..d9b5d80b 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
@@ -12,7 +12,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
WindowsFeaturesTitle = Windows features
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 5c05816a..3539c6ec 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
@@ -12,7 +12,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
WindowsFeaturesTitle = Características de Windows
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 ee772bb7..f94036d1 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
@@ -12,7 +12,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
WindowsFeaturesTitle = Fonctionnalités
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/hu-HU/Sophia.psd1
index b9eba196..3f479173 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
@@ -12,7 +12,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
WindowsFeaturesTitle = Windows szolgáltatások
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 55e8c531..2a327cb0 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
@@ -12,7 +12,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
WindowsFeaturesTitle = Funzionalità di Windows
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 9aadc3e4..2812cc27 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
@@ -12,7 +12,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
WindowsFeaturesTitle = Recursos do Windows
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 265e45bf..087829e1 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
@@ -12,7 +12,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
WindowsFeaturesTitle = Компоненты Windows
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Localizations/tr-TR/Sophia.psd1
index 3560fe41..15f0acd0 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
@@ -12,7 +12,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
WindowsFeaturesTitle = Características do Windows
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 f56e2c76..41580b18 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
@@ -12,7 +12,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
WindowsFeaturesTitle = Компоненти Windows
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 ac0d0ee3..30ff0677 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
@@ -12,7 +12,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
WindowsFeaturesTitle = Windows功能
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 f17bbd71..aec5b30c 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.4.1'
+ ModuleVersion = '5.4.2'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 213f1298..c2a6e9ec 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,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v5.4.1
+ Version: v5.4.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,9 +10,6 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 10 version
Version: 1809
@@ -20,10 +17,6 @@
Edition: Enterprise LTSC
Architecture: x64
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -533,6 +526,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -4949,6 +4947,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
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 01767201..9ae82562 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2019"
- Version: v5.4.1
+ Version: v5.4.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -74,7 +74,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.4.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.4.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1
index e98c2d5a..b977ca44 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.14.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.14.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 ee83a810..2580a8a8 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
@@ -12,7 +12,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
WindowsFeaturesTitle = Windows-Features
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 21ed4bc4..75dbafbd 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
@@ -12,7 +12,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
WindowsFeaturesTitle = Windows features
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 814eed53..780fbd42 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
@@ -12,7 +12,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
WindowsFeaturesTitle = Características de Windows
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 74af75d6..6abefc59 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
@@ -12,7 +12,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
WindowsFeaturesTitle = Fonctionnalités
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/hu-HU/Sophia.psd1
index bf414567..211bc7bd 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
@@ -12,7 +12,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
WindowsFeaturesTitle = Windows szolgáltatások
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 5382efe3..8fbddc1d 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
@@ -12,7 +12,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
WindowsFeaturesTitle = Funzionalità di Windows
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 4dffde3f..b87ea42a 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
@@ -12,7 +12,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
WindowsFeaturesTitle = Recursos do Windows
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 fdf0fef7..5764b56e 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
@@ -12,7 +12,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
WindowsFeaturesTitle = Компоненты Windows
diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Localizations/tr-TR/Sophia.psd1
index d117f31a..923fbc31 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
@@ -12,7 +12,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
WindowsFeaturesTitle = Características do Windows
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 b26ac003..2500ffd8 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
@@ -12,7 +12,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
WindowsFeaturesTitle = Компоненти Windows
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 182313ac..e8861059 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
@@ -12,7 +12,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
WindowsFeaturesTitle = Windows功能
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 b47c43a9..530206c0 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.14.1'
+ ModuleVersion = '5.14.2'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 c761c9ae..84d86596 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,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,9 +10,6 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 10 version
Version: 21H2
@@ -20,10 +17,6 @@
Edition: Enterprise LTSC 2021
Architecture: x64
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -533,6 +526,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -5336,6 +5334,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
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 f34b0cfc..5103eeed 100644
--- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2021"
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -74,7 +74,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.14.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.14.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1
index 29ec2731..1d7ecd74 100644
--- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 db7b656b..1e0bf774 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
@@ -12,7 +12,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = OneDrive deinstallieren…
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 d538d85d..2b7acf28 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
@@ -12,7 +12,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
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 7a59ad78..e71eee02 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
@@ -12,7 +12,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
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 6c384e94..0f28172e 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
@@ -12,7 +12,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
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 39465377..276688c1 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
@@ -12,7 +12,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
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 aa73ee5a..d26a7bde 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
@@ -12,7 +12,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstallazione di OneDrive...
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 105135b8..1d8059c7 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
@@ -12,7 +12,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
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 7595af85..2761ebb7 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
@@ -12,7 +12,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
OneDriveUninstalling = Удаление OneDrive...
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 05499983..abfc177c 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
@@ -12,7 +12,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
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 0b2643eb..925257b7 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
@@ -12,7 +12,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
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 c50b8167..b6d0012c 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
@@ -12,7 +12,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive……
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 8612ac3b..13597795 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.14.1'
+ ModuleVersion = '5.14.2'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 b56cd536..6ffc538d 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,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,9 +10,6 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 10 versions
Versions: 21H2/22H2+
@@ -20,10 +17,6 @@
Editions: Home/Pro/Enterprise
Architecture: x64
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -574,6 +567,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -6278,6 +6276,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
@@ -10733,7 +10733,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
<#
.SYNOPSIS
- Install "HEVC Video Extensions from Device Manufacturer" to be able to open .heic and .heif formats
+ "HEVC Video Extensions from Device Manufacturer" extension
.PARAMETER Install
Download and install the "HEVC Video Extensions from Device Manufacturer" extension
@@ -10783,7 +10783,7 @@ function HEIF
"Install"
{
# Check whether the extension is already installed
- if ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if (-not ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos)))
{
return
}
@@ -10804,9 +10804,9 @@ function HEIF
try
{
- # Check whether https://github.com is alive
+ # Check whether https://store.rg-adguard.net is alive
$Parameters = @{
- Uri = "https://github.com"
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@@ -10816,20 +10816,44 @@ function HEIF
return
}
- # https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Misc
- $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Body = @{
+ type = "url"
+ url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
+ ring = "Retail"
+ lang = "en-US"
+ }
$Parameters = @{
- Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- UseBasicParsing = $true
- Verbose = $true
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
+ Method = "Post"
+ ContentType = "application/x-www-form-urlencoded"
+ Body = $Body
+ Verbose = $true
+ }
+ $Raw = Invoke-WebRequest @Parameters
+
+ # Parsing the page
+ $Raw | Select-String -Pattern '.*)"\s.*>(?.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
+ $TempURL = ($_.Groups | Select-Object -Index 1).Value
+ $HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1
}
- Invoke-WebRequest @Parameters
# Installing "HEVC Video Extensions from Device Manufacturer"
- Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Verbose
+ if ([System.Version]$HEVCPackageName -gt [System.Version](Get-AppxPackage -Name Microsoft.HEVCVideoExtension).Version)
+ {
+ Write-Verbose -Message $Localization.Patient -Verbose
+ Write-Verbose -Message $Localization.HEVCDownloading -Verbose
+
+ $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Parameters = @{
+ Uri = $TempURL
+ OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx"
+ Verbose = $true
+ }
+ Invoke-WebRequest @Parameters
- Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Force
+ Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Verbose
+ Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Force
+ }
}
catch [System.Net.WebException]
{
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 65bd53a8..f3725a94 100644
--- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 (PowerShell 7)"
- Version: v5.14.1
+ Version: v5.14.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -74,7 +74,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.14.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1
index a5c2ba7f..938c2cc5 100644
--- a/src/Sophia_Script_for_Windows_11/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_11/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 70ace2e4..b727190d 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
@@ -11,7 +11,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = OneDrive deinstallieren…
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 8f354f4e..a87b1bee 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
@@ -11,7 +11,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
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 ba7fff7f..90d3d467 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
@@ -11,7 +11,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
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 7648b16f..d7b2b3a3 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
@@ -11,7 +11,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
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 00053f86..c4b43357 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
@@ -11,7 +11,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
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 2e707334..93808651 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
@@ -11,7 +11,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstallazione di OneDrive...
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 4f0daf92..61e02a67 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
@@ -11,7 +11,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
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 19ca957b..ec0c73b8 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
@@ -11,7 +11,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
OneDriveUninstalling = Удаление OneDrive...
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 b745db2d..a618bf9f 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
@@ -11,7 +11,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
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 dc4e8be6..d3d2740f 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
@@ -11,7 +11,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
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 f94e91fa..050639fd 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
@@ -11,7 +11,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive……
diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1
index bceb022f..1ba04497 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.2.1'
+ ModuleVersion = '6.2.2'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 a952bb76..cf0e39be 100644
--- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
+++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
@@ -2,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,19 +10,12 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 11 versions
Versions: 21H2/22H2/23H2+
Builds: 22000.739+, 22621+
Editions: Home/Pro/Enterprise
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -564,6 +557,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -5735,6 +5733,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
@@ -10091,7 +10091,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
<#
.SYNOPSIS
- Install "HEVC Video Extensions from Device Manufacturer" to be able to open .heic and .heif formats
+ "HEVC Video Extensions from Device Manufacturer" extension
.PARAMETER Install
Download and install the "HEVC Video Extensions from Device Manufacturer" extension
@@ -10141,7 +10141,7 @@ function HEIF
"Install"
{
# Check whether the extension is already installed
- if ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if (-not ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos)))
{
return
}
@@ -10162,9 +10162,9 @@ function HEIF
try
{
- # Check whether https://github.com is alive
+ # Check whether https://store.rg-adguard.net is alive
$Parameters = @{
- Uri = "https://github.com"
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@@ -10174,20 +10174,44 @@ function HEIF
return
}
- # https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Misc
- $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Body = @{
+ type = "url"
+ url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
+ ring = "Retail"
+ lang = "en-US"
+ }
$Parameters = @{
- Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- UseBasicParsing = $true
- Verbose = $true
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
+ Method = "Post"
+ ContentType = "application/x-www-form-urlencoded"
+ Body = $Body
+ Verbose = $true
+ }
+ $Raw = Invoke-WebRequest @Parameters
+
+ # Parsing the page
+ $Raw | Select-String -Pattern '.*)"\s.*>(?.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
+ $TempURL = ($_.Groups | Select-Object -Index 1).Value
+ $HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1
}
- Invoke-WebRequest @Parameters
# Installing "HEVC Video Extensions from Device Manufacturer"
- Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Verbose
+ if ([System.Version]$HEVCPackageName -gt [System.Version](Get-AppxPackage -Name Microsoft.HEVCVideoExtension).Version)
+ {
+ Write-Verbose -Message $Localization.Patient -Verbose
+ Write-Verbose -Message $Localization.HEVCDownloading -Verbose
+
+ $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Parameters = @{
+ Uri = $TempURL
+ OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx"
+ Verbose = $true
+ }
+ Invoke-WebRequest @Parameters
- Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Force
+ Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Verbose
+ Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Force
+ }
}
catch [System.Net.WebException]
{
diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1
index 029a5d9f..fc95f531 100644
--- a/src/Sophia_Script_for_Windows_11/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -73,7 +73,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1
index b6b5d485..2fbb42e4 100644
--- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1
+++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
The TAB completion for functions and their arguments
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -54,7 +54,7 @@ function Sophia
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.2 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
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 70ace2e4..b727190d 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
@@ -11,7 +11,7 @@ bin = Im Ordner "bin" befinden sich keine
RebootPending = Der PC wartet darauf, neu gestartet zu werden
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen?
-WindowsBroken = \nEinige Windows-Komponenten sind möglicherweise beschädigt
+WindowsBroken = Einige Windows-Komponenten sind möglicherweise beschädigt
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = OneDrive deinstallieren…
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 8f354f4e..a87b1bee 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
@@ -11,7 +11,7 @@ bin = There are no files in the bin folder
RebootPending = The PC is waiting to be restarted
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the {0} preset file before running Sophia Script?
-WindowsBroken = \nSome Windows components may have been broken
+WindowsBroken = Some Windows components may have been broken
ControlledFolderAccessDisabled = Controlled folder access disabled
ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
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 ba7fff7f..90d3d467 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
@@ -11,7 +11,7 @@ bin = No hay archivos en la carpeta bin. P
RebootPending = El PC está esperando a ser reiniciado
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script?
-WindowsBroken = \nEs posible que se hayan roto algunos componentes de Windows
+WindowsBroken = Es posible que se hayan roto algunos componentes de Windows
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
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 7648b16f..d7b2b3a3 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
@@ -11,7 +11,7 @@ bin = Il n'y a pas de fichiers dans le dos
RebootPending = Le PC attend d'être redémarré
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script?
-WindowsBroken = \nCertains composants Windows peuvent avoir été endommagés
+WindowsBroken = Certains composants Windows peuvent avoir été endommagés
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
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 00053f86..c4b43357 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
@@ -11,7 +11,7 @@ bin = A bin mappában nincsenek fájlok. K
RebootPending = A számítógép újraindításra vár
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
-WindowsBroken = \nElőfordulhat, hogy a Windows egyes összetevői elromoltak
+WindowsBroken = Előfordulhat, hogy a Windows egyes összetevői elromoltak
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
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 2e707334..93808651 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
@@ -11,7 +11,7 @@ bin = Non ci sono file nella cartella bin.
RebootPending = Il PC è in attesa di essere riavviato
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script?
-WindowsBroken = \nAlcuni componenti di Windows potrebbero essere rotti
+WindowsBroken = Alcuni componenti di Windows potrebbero essere rotti
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstallazione di OneDrive...
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 4f0daf92..61e02a67 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
@@ -11,7 +11,7 @@ bin = Não existem ficheiros na pasta bin.
RebootPending = O PC está esperando para ser reiniciado
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script?
-WindowsBroken = \nAlguns componentes do Windows podem ter sido quebrados
+WindowsBroken = Alguns componentes do Windows podem ter sido quebrados
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
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 19ca957b..ec0c73b8 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
@@ -11,7 +11,7 @@ bin = В папке bin отсутству
RebootPending = Компьютер ожидает перезагрузки
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле {0} перед запуском Sophia Script?
-WindowsBroken = \nНекоторые компоненты Windows могли быть повреждены
+WindowsBroken = Некоторые компоненты Windows могли быть повреждены
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
OneDriveUninstalling = Удаление OneDrive...
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 b745db2d..a618bf9f 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
@@ -11,7 +11,7 @@ bin = bin klasöründe dosya yok. Lütfen
RebootPending = PC yeniden başlatılmayı bekliyor
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
-WindowsBroken = \nBazı Windows bileşenleri bozulmuş olabilir
+WindowsBroken = Bazı Windows bileşenleri bozulmuş olabilir
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
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 dc4e8be6..d3d2740f 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
@@ -11,7 +11,7 @@ bin = У папці bin немає фай
RebootPending = Комп'ютер очікує на перезавантаження
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script?
-WindowsBroken = \nДеякі компоненти Windows можуть бути пошкоджені
+WindowsBroken = Деякі компоненти Windows можуть бути пошкоджені
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
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 f94e91fa..050639fd 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
@@ -11,7 +11,7 @@ bin = bin文件夹中没有文件。请重
RebootPending = 计算机正在等待重新启动
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数?
-WindowsBroken = \n某些 Windows 组件可能已损坏
+WindowsBroken = 某些 Windows 组件可能已损坏
ControlledFolderAccessDisabled = “受控文件夹访问”已禁用
ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive……
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 d5cf400e..0d31113d 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.2.1'
+ ModuleVersion = '6.2.2'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2022 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 7cbf65a1..fd9fa71f 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,7 +2,7 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -10,19 +10,12 @@
Thanks to all https://forum.ru-board.com members involved
- .NOTES
- Running the script is best done on a fresh install because running it on wrong tweaked system may result in errors occurring
-
.NOTES
Supported Windows 11 versions
Versions: 21H2/22H2/23H2+
Builds: 22000.739+, 22621+
Editions: Home/Pro/Enterprise
- .NOTES
- Set execution policy to be able to run scripts only in the current PowerShell session:
- Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
-
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
@@ -566,6 +559,11 @@ function script:Set-Policy
$Value
)
+ if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc"))
+ {
+ return
+ }
+
switch ($Type)
{
"CLEAR"
@@ -5753,6 +5751,8 @@ function NetworkAdaptersSavePower
$Enable
)
+ Write-Verbose -Message $Localization.Patient -Verbose
+
if (Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"})
{
$PhysicalAdaptersStatusUp = @((Get-NetAdapter -Physical | Where-Object -FilterScript {$_.Status -eq "Up"}).Name)
@@ -10129,7 +10129,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
<#
.SYNOPSIS
- Install "HEVC Video Extensions from Device Manufacturer" to be able to open .heic and .heif formats
+ "HEVC Video Extensions from Device Manufacturer" extension
.PARAMETER Install
Download and install the "HEVC Video Extensions from Device Manufacturer" extension
@@ -10179,7 +10179,7 @@ function HEIF
"Install"
{
# Check whether the extension is already installed
- if ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos))
+ if (-not ((Get-AppxPackage -Name Microsoft.HEVCVideoExtension) -and (Get-AppxPackage -Name Microsoft.Windows.Photos)))
{
return
}
@@ -10200,9 +10200,9 @@ function HEIF
try
{
- # Check whether https://github.com is alive
+ # Check whether https://store.rg-adguard.net is alive
$Parameters = @{
- Uri = "https://github.com"
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
@@ -10212,20 +10212,44 @@ function HEIF
return
}
- # https://github.com/farag2/Sophia-Script-for-Windows/tree/master/Misc
- $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Body = @{
+ type = "url"
+ url = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq"
+ ring = "Retail"
+ lang = "en-US"
+ }
$Parameters = @{
- Uri = "https://github.com/farag2/Sophia-Script-for-Windows/raw/master/Misc/Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx"
- UseBasicParsing = $true
- Verbose = $true
+ Uri = "https://store.rg-adguard.net/api/GetFiles"
+ Method = "Post"
+ ContentType = "application/x-www-form-urlencoded"
+ Body = $Body
+ Verbose = $true
+ }
+ $Raw = Invoke-WebRequest @Parameters
+
+ # Parsing the page
+ $Raw | Select-String -Pattern '.*)"\s.*>(?.*)<\/a>' -AllMatches | ForEach-Object -Process {$_.Matches} | Where-Object -FilterScript {$_.Value -like "*x64*.appx*"} | ForEach-Object -Process {
+ $TempURL = ($_.Groups | Select-Object -Index 1).Value
+ $HEVCPackageName = ($_.Groups | Select-Object -Index 2).Value.Split("_") | Select-Object -Index 1
}
- Invoke-WebRequest @Parameters
# Installing "HEVC Video Extensions from Device Manufacturer"
- Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Verbose
+ if ([System.Version]$HEVCPackageName -gt [System.Version](Get-AppxPackage -Name Microsoft.HEVCVideoExtension).Version)
+ {
+ Write-Verbose -Message $Localization.Patient -Verbose
+ Write-Verbose -Message $Localization.HEVCDownloading -Verbose
+
+ $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
+ $Parameters = @{
+ Uri = $TempURL
+ OutFile = "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx"
+ Verbose = $true
+ }
+ Invoke-WebRequest @Parameters
- Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx" -Force
+ Add-AppxPackage -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Verbose
+ Remove-Item -Path "$DownloadsFolder\Microsoft.HEVCVideoExtension_8wekyb3d8bbwe.appx" -Force
+ }
}
catch [System.Net.WebException]
{
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 def80a0d..ab900c6f 100644
--- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1
+++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1
@@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)"
- Version: v6.2.1
+ Version: v6.2.2
Date: 29.10.2022
Copyright (c) 2014—2022 farag
@@ -73,7 +73,7 @@ param
Clear-Host
-$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
+$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.2.2 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force