Browse Source

Added StartRecommendationsTips & StartAccountNotifications functions

master
Dmitry Nefedov 6 months ago
parent
commit
66151da11d
  1. 16
      Wrapper/Config/config_Windows_10.json
  2. 18
      Wrapper/Config/config_Windows_11.json
  3. 16
      Wrapper/Localizations/de-DE/tooltip_Windows_10.json
  4. 20
      Wrapper/Localizations/de-DE/tooltip_Windows_11.json
  5. 16
      Wrapper/Localizations/en-US/tooltip_Windows_10.json
  6. 20
      Wrapper/Localizations/en-US/tooltip_Windows_11.json
  7. 18
      Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
  8. 20
      Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
  9. 53
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  10. 8
      src/Sophia_Script_for_Windows_10/Sophia.ps1
  11. 53
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  12. 10
      src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
  13. 74
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  14. 20
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  15. 130
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
  16. 20
      src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

16
Wrapper/Config/config_Windows_10.json

@ -281,6 +281,22 @@
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "UI & Personalization",
"Control": "cmb",

18
Wrapper/Config/config_Windows_11.json

@ -285,7 +285,23 @@
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide"

16
Wrapper/Localizations/de-DE/tooltip_Windows_10.json

@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen werden im Startmenü nicht angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Zeigen Sie Benachrichtigungen zu Microsoft-Konten im Startmenü im Startmenü an (Standardeinstellung)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
@ -1385,7 +1399,7 @@
"Two": {
"Tag": "Extension",
"ToolTip": "Erweiterung."
}
},
"Three": {
"Tag": "Icon",
"ToolTip": "Pfad zum Symbol."

20
Wrapper/Localizations/de-DE/tooltip_Windows_11.json

@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Zeigt keine Websites aus dem Browserverlauf im Startmenü an."
"ToolTip": "Im Startmenü werden keine Empfehlungen für Tipps, Verknüpfungen, neue Apps und mehr angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Zeigt Websites aus dem Browserverlauf im Startmenü an (Standardeinstellung)."
"ToolTip": "Empfehlungen für Tipps, Verknüpfungen, neue Apps und mehr im Startmenü anzeigen (Standardeinstellung)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen werden im Startmenü nicht angezeigt."
},
"One": {
"Tag": "Show",
"ToolTip": "Microsoft-Kontobezogene Benachrichtigungen im Startmenü im Startmenü anzeigen (Standardeinstellung)."
}
}
},

16
Wrapper/Localizations/en-US/tooltip_Windows_10.json

@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show Microsoft account-related notifications on Start Menu in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show Microsoft account-related notifications on Start Menu in the Start menu (default value)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
@ -1378,7 +1392,7 @@
"Tag": "",
"ToolTip": "Register app, calculate hash, and associate with an extension with the 'How do you want to open this' pop-up hidden."
},
"One": {
"One": {
"Tag": "ProgramPath",
"ToolTip": "Path to executable file."
},

20
Wrapper/Localizations/en-US/tooltip_Windows_11.json

@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show websites from your browsing history in the Start menu."
"ToolTip": "Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show websites from your browsing history in the Start menu (default value)."
"ToolTip": "Show recommendations for tips, shortcuts, new apps, and more in the Start menu (default value)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Do not show Microsoft account-related notifications on Start Menu in the Start menu."
},
"One": {
"Tag": "Show",
"ToolTip": "Show Microsoft account-related notifications on Start Menu in the Start menu (default value)."
}
}
},

18
Wrapper/Localizations/ru-RU/tooltip_Windows_10.json

@ -243,6 +243,20 @@
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\"."
},
"One": {
"Tag": "Show",
"ToolTip": "Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\" (значение по умолчанию)."
}
}
},
{
"Region": "UI & Personalization",
"Function": "ThisPC",
@ -1378,11 +1392,11 @@
"Tag": "",
"ToolTip": "Зарегистрируйте приложение, рассчитайте хэш и свяжите его с расширением со скрытым всплывающим окном 'Как вы хотите открыть это'."
},
"One": {
"One": {
"Tag": "ProgramPath",
"ToolTip": "Путь до исполняемого файла."
},
"Two": {
"Two": {
"Tag": "Extension",
"ToolTip": "Расширение."
},

20
Wrapper/Localizations/ru-RU/tooltip_Windows_11.json

@ -245,15 +245,29 @@
},
{
"Region": "Privacy & Telemetry",
"Function": "BrowsingHistory",
"Function": "StartRecommendationsTips",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показать веб-сайты из журнала браузера в меню \"Пуск\"."
"ToolTip": "Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\"."
},
"One": {
"Tag": "Show",
"ToolTip": "Показать веб-сайты из журнала браузера в меню \"Пуск\" (значение по умолчанию)."
"ToolTip": "Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\" (значение по умолчанию)."
}
}
},
{
"Region": "Privacy & Telemetry",
"Function": "StartAccountNotifications",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Не показывать в меню \"Пуск\" уведомления, связанные с учетной записью Microsoft."
},
"One": {
"Tag": "Show",
"ToolTip": "Переодически показывать в меню \"Пуск\" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)."
}
}
},

53
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -240,6 +240,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
@ -2238,6 +2240,57 @@ function BingSearch
}
}
}
<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}
#endregion Privacy & Telemetry
#region UI & Personalization

8
src/Sophia_Script_for_Windows_10/Sophia.ps1

@ -256,6 +256,14 @@ BingSearch -Disable
# Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable
# Do not show Microsoft account-related notifications on Start Menu in the Start menu
# Не показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft
StartAccountNotifications -Hide
# Show Microsoft account-related notifications on Start Menu in the Start menu (default value)
# Переодически показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)
# StartAccountNotifications -Show
#endregion Privacy & Telemetry
#region UI & Personalization

53
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -236,6 +236,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
@ -2244,6 +2246,57 @@ function BingSearch
}
}
}
<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}
#endregion Privacy & Telemetry
#region UI & Personalization

10
src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1

@ -72,6 +72,8 @@ Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.18.5 (PowerShell 7) | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
# PowerShell 7 doesn't load en-us localization automatically if there is no localization folder in user's language which is determined by $PSUICulture
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-localizeddata?view=powershell-7.3
# https://github.com/PowerShell/PowerShell/pull/19896
@ -265,6 +267,14 @@ BingSearch -Disable
# Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable
# Do not show Microsoft account-related notifications on Start Menu in the Start menu
# Не показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft
StartAccountNotifications -Hide
# Show Microsoft account-related notifications on Start Menu in the Start menu (default value)
# Переодически показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)
# StartAccountNotifications -Show
#endregion Privacy & Telemetry
#region UI & Personalization

74
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -228,6 +228,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
@ -2223,27 +2225,24 @@ function BingSearch
<#
.SYNOPSIS
Browsing history in the Start menu
Recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Hide
Do not show websites from your browsing history in the Start menu
Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Show
Show websites from your browsing history in the Start menu
Show recommendations for tips, shortcuts, new apps, and more in the Start menu
.EXAMPLE
BrowsingHistory -Hide
StartRecommendationsTips -Hide
.EXAMPLE
BrowsingHistory -Show
.NOTES
Windows 11 build 23451 (Dev) required
StartRecommendationsTips -Show
.NOTES
Current user
#>
function BrowsingHistory
function StartRecommendationsTips
{
param
(
@ -2262,23 +2261,66 @@ function BrowsingHistory
$Show
)
if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -lt 23451)
switch ($PSCmdlet.ParameterSetName)
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
return
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_RecoPersonalizedSites -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_RecoPersonalizedSites -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}

20
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -256,13 +256,21 @@ BingSearch -Disable
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable
# Do not show websites from your browsing history in the Start menu. Windows 11 build 23451 (Dev) required
# Не показать веб-сайты из журнала браузера в меню "Пуск". Требуется Windows 11 build 23451 (Dev)
BrowsingHistory -Hide
# Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu
# Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск"
StartRecommendationsTips -Hide
# Show websites from your browsing history in the Start menu (default value)
# Показать веб-сайты из журнала браузера в меню "Пуск" (значение по умолчанию)
# BrowsingHistory -Show
# Show recommendations for tips, shortcuts, new apps, and more in the Start menu (default value)
# Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск" (значение по умолчанию)
# StartRecommendationsTips -Show
# Do not show Microsoft account-related notifications on Start Menu in the Start menu
# Не показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft
StartAccountNotifications -Hide
# Show Microsoft account-related notifications on Start Menu in the Start menu (default value)
# Переодически показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)
# StartAccountNotifications -Show
#endregion Privacy & Telemetry
#region UI & Personalization

130
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -224,6 +224,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
}
foreach ($Tweaker in $Tweakers.Keys)
{
@ -2226,27 +2228,24 @@ function BingSearch
<#
.SYNOPSIS
Browsing history in the Start menu
Recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Hide
Do not show websites from your browsing history in the Start menu
Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Show
Show websites from your browsing history in the Start menu
Show recommendations for tips, shortcuts, new apps, and more in the Start menu
.EXAMPLE
BrowsingHistory -Hide
StartRecommendationsTips -Hide
.EXAMPLE
BrowsingHistory -Show
.NOTES
Windows 11 build 23451 (Dev) required
StartRecommendationsTips -Show
.NOTES
Current user
#>
function BrowsingHistory
function StartRecommendationsTips
{
param
(
@ -2265,23 +2264,66 @@ function BrowsingHistory
$Show
)
if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -lt 23451)
switch ($PSCmdlet.ParameterSetName)
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
return
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
Microsoft account-related notifications on Start Menu
.PARAMETER Hide
Do not show Microsoft account-related notifications on Start Menu in the Start menu
.PARAMETER Show
Show Microsoft account-related notifications on Start Menu in the Start menu
.EXAMPLE
StartAccountNotifications -Hide
.EXAMPLE
StartAccountNotifications -Show
.NOTES
Current user
#>
function StartAccountNotifications
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_RecoPersonalizedSites -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -PropertyType DWord -Value 0 -Force
}
"Show"
{
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_RecoPersonalizedSites -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_AccountNotifications -Force -ErrorAction Ignore
}
}
}
@ -13030,6 +13072,60 @@ function PUAppsDetection
}
}
<#
.SYNOPSIS
Sandboxing for Microsoft Defender
.PARAMETER Enable
Enable sandboxing for Microsoft Defender
.PARAMETER Disable
Disable sandboxing for Microsoft Defender
.EXAMPLE
DefenderSandbox -Enable
.EXAMPLE
DefenderSandbox -Disable
.NOTES
Machine-wide
#>
function DefenderSandbox
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable
)
if ($Script:DefenderEnabled)
{
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
setx /M MP_FORCE_USE_SANDBOX 1
}
"Disable"
{
setx /M MP_FORCE_USE_SANDBOX 0
}
}
}
}
# Dismiss Microsoft Defender offer in the Windows Security about signing in Microsoft account
function DismissMSAccount
{
@ -13574,7 +13670,7 @@ function WindowsSandbox
$Enable
)
if (-not (Get-WindowsEdition -Online | Where-Object -FilterScript {($_.Edition -eq "Professional") -or ($_.Edition -eq "Enterprise")}))
if (-not (Get-WindowsEdition -Online | Where-Object -FilterScript {($_.Edition -eq "Professional") -or ($_.Edition -eq "Enterprise") -or ($_.Edition -eq "Education")}))
{
return
}

20
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -267,13 +267,21 @@ BingSearch -Disable
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable
# Do not show websites from your browsing history in the Start menu. Windows 11 build 23451 (Dev) required
# Не показать веб-сайты из журнала браузера в меню "Пуск". Требуется Windows 11 build 23451 (Dev)
BrowsingHistory -Hide
# Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu
# Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск"
StartRecommendationsTips -Hide
# Show websites from your browsing history in the Start menu (default value)
# Показать веб-сайты из журнала браузера в меню "Пуск" (значение по умолчанию)
# BrowsingHistory -Show
# Show recommendations for tips, shortcuts, new apps, and more in the Start menu (default value)
# Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск" (значение по умолчанию)
# StartRecommendationsTips -Show
# Do not show Microsoft account-related notifications on Start Menu in the Start menu
# Не показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft
StartAccountNotifications -Hide
# Show Microsoft account-related notifications on Start Menu in the Start menu (default value)
# Переодически показывать в меню "Пуск" уведомления, связанные с учетной записью Microsoft (значение по умолчанию)
# StartAccountNotifications -Show
#endregion Privacy & Telemetry
#region UI & Personalization

Loading…
Cancel
Save