From 228df7008f6cadab86986022f9ca4f5a705b5544 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sat, 16 Jul 2022 01:31:47 +0300 Subject: [PATCH] =?UTF-8?q?6.1.2=20=E2=80=94=2016.07.2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 56 +++++++++++++++- .../Sophia.ps1 | 6 +- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 66 +++++++++++++++++-- .../Sophia.ps1 | 8 +-- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 56 +++++++++++++++- .../Sophia.ps1 | 8 +-- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 58 +++++++++++++++- .../Sophia Script for Windows 10/Sophia.ps1 | 8 +-- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 61 +++++++++++++++-- .../Sophia.ps1 | 14 ++-- .../Functions.ps1 | 6 +- .../Manifest/Sophia.psd1 | 2 +- .../Module/Sophia.psm1 | 60 +++++++++++++++-- .../Sophia Script for Windows 11/Sophia.ps1 | 14 ++-- Wrapper/Config/config_Windows_10.json | 17 +++++ Wrapper/Config/config_Windows_10_LTSC.json | 17 +++++ Wrapper/Config/config_Windows_11.json | 34 ++++++++++ .../de-DE/tooltip_Windows_10.json | 19 +++++- .../de-DE/tooltip_Windows_11.json | 34 +++++++++- .../en-US/tooltip_Windows_10.json | 15 +++++ .../en-US/tooltip_Windows_11.json | 30 +++++++++ .../es-ES/tooltip_Windows_10.json | 15 +++++ .../es-ES/tooltip_Windows_11.json | 30 +++++++++ .../pt-BR/tooltip_Windows_10.json | 15 +++++ .../pt-BR/tooltip_Windows_11.json | 30 +++++++++ .../ru-RU/tooltip_Windows_10.json | 15 +++++ .../ru-RU/tooltip_Windows_11.json | 30 +++++++++ 37 files changed, 684 insertions(+), 80 deletions(-) diff --git a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1 index be6bdc99..a6c4eb2a 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.3.1 - Date: 05.07.2022 + Version: v5.3.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.3.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.3.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/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1 index e2ef7c70..29761cb2 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.3.1' + ModuleVersion = '5.3.2' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1 index 76423be4..ad824ada 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.3.1 - Date: 05.07.2022 + Version: v5.3.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -304,11 +304,62 @@ function Checkings } } + #region Defender Checkings # Turn off Controlled folder access to let the script proceed # Checking whether Defender wasn't disabled first $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -331,6 +382,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() diff --git a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1 index 96505f64..d01418c4 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2019" - Version: v5.3.1 - Date: 05.07.2022 + Version: v5.3.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -71,7 +71,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.3.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.3.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/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1 index 30eecb4b..75ddeb3f 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Manifest/Sophia.psd1 index 8a95a193..9767dc39 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.13.1' + ModuleVersion = '5.13.2' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1 index e0e0e09e..6e5c5707 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -15,9 +15,9 @@ .NOTES Supported Windows 10 version - Versions: 21H2 - Builds: 19044.1766+ - Editions: Enterprise LTSC 2021 + Version: 21H2 + Build: 19044.1766+ + Edition: Enterprise LTSC 2021 Architecture: x64 .NOTES @@ -304,11 +304,62 @@ function Checkings } } + #region Defender Checkings # Turn off Controlled folder access to let the script proceed # Checking whether Defender wasn't disabled first $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -331,6 +382,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() @@ -928,7 +980,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Add-Type @SetForegroundWindow } - Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process { + Get-Process | Where-Object -FilterScript {($_.ProcessName -eq "powershell") -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process { # Show window, if minimized [WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10) @@ -4133,7 +4185,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); Add-Type @SetForegroundWindow } - Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 10")} | ForEach-Object -Process { + Get-Process | Where-Object -FilterScript {($_.ProcessName -eq "powershell") -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process { # Show window, if minimized [WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10) diff --git a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1 index 717e5a0f..462e1c08 100644 --- a/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2021" - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -25,7 +25,7 @@ irm script.sophi.app -useb | iex .NOTES - Supported Windows 10 versions + Supported Windows 10 version Version: 21H2 Build: 19044.1766+ Edition: Enterprise LTSC 2021 @@ -71,7 +71,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1 b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1 index 88562308..44a7abb0 100644 --- a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1 index 9ae53c40..416f6c48 100644 --- a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.13.1' + ModuleVersion = '5.13.2' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1 index 50ead207..4b76b420 100644 --- a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -315,11 +315,62 @@ function Checkings # Import PowerShell 5.1 modules Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx -UseWindowsPowerShell + #region Defender Checkings # Turn off Controlled folder access to let the script proceed # Checking whether Defender wasn't disabled first $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -342,6 +393,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() diff --git a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1 index 6f27628b..b90e5b5c 100644 --- a/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Versions: 2004/20H2/21H1/21H2 - Build: 1904x.1766+ + Builds: 1904x.1766+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -71,7 +71,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 10/Functions.ps1 b/Sophia Script/Sophia Script for Windows 10/Functions.ps1 index ace66a51..3a6a309e 100644 --- a/Sophia Script/Sophia Script for Windows 10/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 10/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1 index 07cf4bce..57fb6598 100644 --- a/Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.13.1' + ModuleVersion = '5.13.2' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1 index 2891539d..e353c6a9 100644 --- a/Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -16,7 +16,7 @@ .NOTES Supported Windows 10 versions Versions: 2004/20H2/21H1/21H2 - Build: 1904x.1766+ + Builds: 1904x.1766+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -310,11 +310,62 @@ function Checkings } } + #region Defender Checkings # Turn off Controlled folder access to let the script proceed # Checking whether Defender wasn't disabled first $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -337,6 +388,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() diff --git a/Sophia Script/Sophia Script for Windows 10/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 10/Sophia.ps1 index 82e9d4b7..c9ca43a3 100644 --- a/Sophia Script/Sophia Script for Windows 10/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 10/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10" - Version: v5.13.1 - Date: 05.07.2022 + Version: v5.13.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -27,7 +27,7 @@ .NOTES Supported Windows 10 versions Versions: 2004/20H2/21H1/21H2 - Build: 1904x.1766+ + Builds: 1904x.1766+ Editions: Home/Pro/Enterprise Architecture: x64 @@ -71,7 +71,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.13.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.13.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/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1 b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1 index b0472290..6747c886 100644 --- a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.1.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.1.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/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1 index 74933730..a95c3596 100644 --- a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.1.1' + ModuleVersion = '6.1.2' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1 index 8109bb85..21b83ebc 100644 --- a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -15,8 +15,8 @@ .NOTES Supported Windows 11 versions - Version: 21H2/22H2 - Build: 22000.739+, 22509+ + Versions: 21H2/22H2 + Builds: 22000.739+, 22509+ Editions: Home/Pro/Enterprise .NOTES @@ -313,6 +313,56 @@ function Checkings $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -335,6 +385,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() @@ -8269,7 +8320,7 @@ function WSA $DiskNumber = (Get-Disk | Where-Object -FilterScript {$_.Isboot -and $_.IsSystem -and ($_.OperationalStatus -eq "Online")}).Number if (Get-PhysicalDisk -DeviceNumber $DiskNumber | Where-Object -FilterScript {$_.MediaType -ne "SSD"}) { - Write-Warning -Message $Localization.SSDRequired ### + Write-Warning -Message $Localization.SSDRequired return } diff --git a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1 index fd3f4ec4..54578241 100644 --- a/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -26,8 +26,8 @@ .NOTES Supported Windows 11 versions - Version: 21H2/22H2 - Build: 22000.739+, 22509+ + Versions: 21H2/22H2 + Builds: 22000.739+, 22509+ Editions: Home/Pro/Enterprise .NOTES @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.1.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.1.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 @@ -914,8 +914,8 @@ InstallVCRedistx64 #> InstallDotNetRuntime6 -# Enable proxying only blocked sites from the unified registry of Roskomnadzor -# Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора +# Enable proxying only blocked sites from the unified registry of Roskomnadzor. The function will be applied only if the region in Windows is set to "Russia" +# Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора. Функция будет применена, только если в Windows установлен регион "Россия" # https://antizapret.prostovpn.org RKNBypass -Enable diff --git a/Sophia Script/Sophia Script for Windows 11/Functions.ps1 b/Sophia Script/Sophia Script for Windows 11/Functions.ps1 index d58b9de1..d2a62592 100644 --- a/Sophia Script/Sophia Script for Windows 11/Functions.ps1 +++ b/Sophia Script/Sophia Script for Windows 11/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -54,7 +54,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.1.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.1.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/Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1 b/Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1 index 5a840717..d71f7ca2 100644 --- a/Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1 +++ b/Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.1.1' + ModuleVersion = '6.1.2' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2022 farag & Inestic. All rights reserved' diff --git a/Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1 b/Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1 index 3701988c..ead6ad24 100644 --- a/Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1 +++ b/Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -15,8 +15,8 @@ .NOTES Supported Windows 11 versions - Version: 21H2/22H2 - Build: 22000.739+, 22509+ + Versions: 21H2/22H2 + Builds: 22000.739+, 22509+ Editions: Home/Pro/Enterprise .NOTES @@ -303,11 +303,62 @@ function Checkings } } + #region Defender Checkings # Turn off Controlled folder access to let the script proceed # Checking whether Defender wasn't disabled first $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) if ($DefenderState -notmatch "00|01") + { + $Script:DefenderproductState = $true + } + else + { + $Script:DefenderproductState = $false + } + + # Checking services + Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Ignore | ForEach-Object -Process { + if (($null -ne $_.Name) -and ($_.Status -eq "running")) + { + $Script:DefenderServices = $true + } + else + { + $Script:DefenderServices = $false + } + } + + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AntispywareEnabled) + { + $Script:DefenderAntispywareEnabled = $true + } + else + { + $Script:DefenderAntispywareEnabled = $false + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).ProductStatus -eq 1) + { + $Script:DefenderProductStatus = $false + } + else + { + $Script:DefenderProductStatus = $true + } + + # https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-windowsdefenderproductstatus?view=graph-rest-beta + if ((Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/microsoft/windows/defender).AMEngineVersion -eq 0.0.0.0) + { + $Script:DefenderAMEngineVersion = $false + } + else + { + $Script:DefenderAMEngineVersion = $true + } + + if ($Script:DefenderproductState -and $Script:DefenderServices -and $Script:DefenderAntispywareEnabled -and $Script:DefenderProductStatus -and $Script:DefenderAMEngineVersion) { # Defender is enabled $Script:DefenderState = $true @@ -330,6 +381,7 @@ function Checkings } } } + #endregion Defender Checkings # Save all opened folders in order to restore them after File Explorer restart $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() diff --git a/Sophia Script/Sophia Script for Windows 11/Sophia.ps1 b/Sophia Script/Sophia Script for Windows 11/Sophia.ps1 index 73e0a403..814f454b 100644 --- a/Sophia Script/Sophia Script for Windows 11/Sophia.ps1 +++ b/Sophia Script/Sophia Script for Windows 11/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11" - Version: v6.1.1 - Date: 05.07.2022 + Version: v6.1.2 + Date: 16.07.2022 Copyright (c) 2014—2022 farag Copyright (c) 2019—2022 farag & Inestic @@ -26,8 +26,8 @@ .NOTES Supported Windows 11 versions - Version: 21H2/22H2 - Build: 22000.739+, 22509+ + Versions: 21H2/22H2 + Builds: 22000.739+, 22509+ Editions: Home/Pro/Enterprise .NOTES @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.1.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.1.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 @@ -914,8 +914,8 @@ InstallVCRedistx64 #> InstallDotNetRuntime6 -# Enable proxying only blocked sites from the unified registry of Roskomnadzor -# Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора +# Enable proxying only blocked sites from the unified registry of Roskomnadzor. The function will be applied only if the region in Windows is set to "Russia" +# Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора. Функция будет применена, только если в Windows установлен регион "Россия" # https://antizapret.prostovpn.org RKNBypass -Enable diff --git a/Wrapper/Config/config_Windows_10.json b/Wrapper/Config/config_Windows_10.json index 6c9187d6..96d95bd0 100644 --- a/Wrapper/Config/config_Windows_10.json +++ b/Wrapper/Config/config_Windows_10.json @@ -1595,6 +1595,23 @@ "Preset": "", "WindowsDefault": "" }, + { + "Id": 538, + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Config/config_Windows_10_LTSC.json b/Wrapper/Config/config_Windows_10_LTSC.json index a7b8c676..b9adcffa 100644 --- a/Wrapper/Config/config_Windows_10_LTSC.json +++ b/Wrapper/Config/config_Windows_10_LTSC.json @@ -1767,6 +1767,23 @@ "LTSC2019": "true", "LTSC2021": "true" }, + { + "Id": 537, + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Config/config_Windows_11.json b/Wrapper/Config/config_Windows_11.json index 1ab4570e..cf7936d7 100644 --- a/Wrapper/Config/config_Windows_11.json +++ b/Wrapper/Config/config_Windows_11.json @@ -1489,6 +1489,40 @@ "Preset": "", "WindowsDefault": "" }, + { + "Id": 538, + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Id": 539, + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json index d3c28148..cd966bb7 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json @@ -148,11 +148,11 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Do not allow apps to use advertising ID" + "ToolTip": "Erlauben Sie Anwendungen nicht, eine Werbe-ID zu verwenden" }, "One": { "Tag": "Enable", - "ToolTip": "Allow apps to use advertising ID (default value)" + "ToolTip": "Erlauben Sie Anwendungen die Verwendung einer Werbe-ID (Standardeinstellung)" } } }, @@ -1421,6 +1421,21 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Aktivieren Sie das Proxying nur für gesperrte Websites aus der einheitlichen Registrierung von Roskomnadzor. Die Funktion wird nur angewendet, wenn die Region in Windows auf \"Russland\" eingestellt ist." + }, + "One": { + "Tag": "Disable", + "ToolTip": "Deaktivieren Sie das Proxying nur für gesperrte Websites aus dem einheitlichen Register von Roskomnadzor (Standardwert)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index 2a8ab801..2b3071cf 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -148,11 +148,11 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Do not allow apps to use advertising ID" + "ToolTip": "Erlauben Sie Anwendungen nicht, eine Werbe-ID zu verwenden" }, "One": { "Tag": "Enable", - "ToolTip": "Allow apps to use advertising ID (default value)" + "ToolTip": "Erlauben Sie Anwendungen die Verwendung einer Werbe-ID (Standardeinstellung)" } } }, @@ -1312,6 +1312,36 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Aktivieren Sie das Proxying nur für gesperrte Websites aus der einheitlichen Registrierung von Roskomnadzor. Die Funktion wird nur angewendet, wenn die Region in Windows auf \"Russland\" eingestellt ist." + }, + "One": { + "Tag": "Disable", + "ToolTip": "Deaktivieren Sie das Proxying nur für gesperrte Websites aus dem einheitlichen Register von Roskomnadzor (Standardwert)" + } + } + }, + { + "Id": 539, + "Region": "System", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Aktivieren Sie alle erforderlichen Abhängigkeiten (ein Neustart kann erforderlich sein) und öffnen Sie die Microsoft Store WSA-Seite, um Windows Subsystem for Android™ mit Amazon Appstore manuell zu installieren" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Deaktivieren Sie alle erforderlichen Abhängigkeiten (ein Neustart kann erforderlich sein) und deinstallieren Sie Windows Subsystem for Android™ with Amazon Appstore (Standardwert)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index 011c48a4..fe98d6a2 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -1421,6 +1421,21 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Enable proxying only blocked sites from the unified registry of Roskomnadzor. The function will be applied only if the region in Windows is set to \"Russia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Disable proxying only blocked sites from the unified registry of Roskomnadzor (default value)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index 306a78fc..4ad117dc 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -1312,6 +1312,36 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Enable proxying only blocked sites from the unified registry of Roskomnadzor. The function will be applied only if the region in Windows is set to \"Russia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Disable proxying only blocked sites from the unified registry of Roskomnadzor (default value)" + } + } + }, + { + "Id": 539, + "Region": "System", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Enable all necessary dependencies (reboot may require) and open Microsoft Store WSA page to install Windows Subsystem for Android™ with Amazon Appstore manually" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Disable all necessary dependencies (reboot may require) and uninstall Windows Subsystem for Android™ with Amazon Appstore (default value)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/es-ES/tooltip_Windows_10.json b/Wrapper/Localizations/es-ES/tooltip_Windows_10.json index db055d58..e9431da7 100644 --- a/Wrapper/Localizations/es-ES/tooltip_Windows_10.json +++ b/Wrapper/Localizations/es-ES/tooltip_Windows_10.json @@ -1421,6 +1421,21 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Habilitar el proxy sólo sitios bloqueados desde el registro unificado de Roskomnadzor. La función se aplicará sólo si la región en Windows se establece en \"Rusia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar el proxy sólo de los sitios bloqueados del registro unificado de Roskomnadzor (valor predeterminado)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/es-ES/tooltip_Windows_11.json b/Wrapper/Localizations/es-ES/tooltip_Windows_11.json index 113c2b3c..f41209d6 100644 --- a/Wrapper/Localizations/es-ES/tooltip_Windows_11.json +++ b/Wrapper/Localizations/es-ES/tooltip_Windows_11.json @@ -1312,6 +1312,36 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Habilitar el proxy sólo sitios bloqueados desde el registro unificado de Roskomnadzor. La función se aplicará sólo si la región en Windows se establece en \"Rusia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar el proxy sólo de los sitios bloqueados del registro unificado de Roskomnadzor (valor predeterminado)" + } + } + }, + { + "Id": 539, + "Region": "System", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Habilita todas las dependencias necesarias (puede ser necesario reiniciar) y abre la página de la WSA de Microsoft Store para instalar manualmente Windows Subsystem for Android™ con Amazon Appstore" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar todas las dependencias necesarias (puede ser necesario reiniciar) y desinstalar Windows Subsystem for Android™ con Amazon Appstore (valor predeterminado)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/pt-BR/tooltip_Windows_10.json b/Wrapper/Localizations/pt-BR/tooltip_Windows_10.json index 7cb3e9ba..33270fcf 100644 --- a/Wrapper/Localizations/pt-BR/tooltip_Windows_10.json +++ b/Wrapper/Localizations/pt-BR/tooltip_Windows_10.json @@ -1421,6 +1421,21 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Activar a proxying apenas bloqueia sites do registo unificado de Roskomnadzor. A função só será aplicada se a região no Windows estiver definida para \"Rússia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar a proxy apenas bloqueou sites do registo unificado de Roskomnadzor (valor padrão)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/pt-BR/tooltip_Windows_11.json b/Wrapper/Localizations/pt-BR/tooltip_Windows_11.json index 960600b7..559d43e6 100644 --- a/Wrapper/Localizations/pt-BR/tooltip_Windows_11.json +++ b/Wrapper/Localizations/pt-BR/tooltip_Windows_11.json @@ -1312,6 +1312,36 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Activar a proxying apenas bloqueia sites do registo unificado de Roskomnadzor. A função só será aplicada se a região no Windows estiver definida para \"Rússia\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar a proxy apenas bloqueou sites do registo unificado de Roskomnadzor (valor padrão)" + } + } + }, + { + "Id": 539, + "Region": "System", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Activar todas as dependências necessárias (reiniciar pode ser necessário) e abrir a página WSA do Microsoft Store para instalar manualmente o Subsistema Windows para Android™ com a Amazon Appstore" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Desactivar todas as dependências necessárias (pode ser necessário reiniciar) e desinstalar o subsistema Windows para Android™ com Amazon Appstore (valor padrão)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json index 99be8c94..98123167 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json @@ -1421,6 +1421,21 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора. Функция будет применена, только если в Windows установлен регион \"Россия\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Выключить проксирование только заблокированных сайтов из единого реестра Роскомнадзора (значение по умолчанию)" + } + } + }, { "Id": 600, "Region": "WSL", diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index bcbd9780..3cb0efff 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -1312,6 +1312,36 @@ } } }, + { + "Id": 538, + "Region": "System", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Включить проксирование только заблокированных сайтов из единого реестра Роскомнадзора. Функция будет применена, только если в Windows установлен регион \"Россия\"" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Выключить проксирование только заблокированных сайтов из единого реестра Роскомнадзора (значение по умолчанию)" + } + } + }, + { + "Id": 539, + "Region": "System", + "Function": "WSA", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Включить все необходимые зависимости (может потребоваться перезагрузка) и открыть страницу WSA в Microsoft Store, чтобы вручную установить Windows Subsystem for Android™ with Amazon Appstore" + }, + "One": { + "Tag": "Disable", + "ToolTip": "Выключить все необходимые зависимости и удалить Windows Subsystem for Android™ with Amazon Appstore (значение по умолчанию)" + } + } + }, { "Id": 600, "Region": "WSL",