Browse Source

Added StartRecommendationsTips & StartAccountNotifications functions

master
Dmitry Nefedov 4 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", "Preset": "Zero",
"WindowsDefault": "One" "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", "Region": "UI & Personalization",
"Control": "cmb", "Control": "cmb",

18
Wrapper/Config/config_Windows_11.json

@ -285,7 +285,23 @@
"Region": "Privacy & Telemetry", "Region": "Privacy & Telemetry",
"Control": "cmb", "Control": "cmb",
"Required": "false", "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": { "Arg": {
"Zero": { "Zero": {
"Tag": "Hide" "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", "Region": "UI & Personalization",
"Function": "ThisPC", "Function": "ThisPC",
@ -1385,7 +1399,7 @@
"Two": { "Two": {
"Tag": "Extension", "Tag": "Extension",
"ToolTip": "Erweiterung." "ToolTip": "Erweiterung."
} },
"Three": { "Three": {
"Tag": "Icon", "Tag": "Icon",
"ToolTip": "Pfad zum Symbol." "ToolTip": "Pfad zum Symbol."

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

@ -245,15 +245,29 @@
}, },
{ {
"Region": "Privacy & Telemetry", "Region": "Privacy & Telemetry",
"Function": "BrowsingHistory", "Function": "StartRecommendationsTips",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Hide", "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": { "One": {
"Tag": "Show", "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", "Region": "UI & Personalization",
"Function": "ThisPC", "Function": "ThisPC",
@ -1378,7 +1392,7 @@
"Tag": "", "Tag": "",
"ToolTip": "Register app, calculate hash, and associate with an extension with the 'How do you want to open this' pop-up hidden." "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", "Tag": "ProgramPath",
"ToolTip": "Path to executable file." "ToolTip": "Path to executable file."
}, },

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

@ -245,15 +245,29 @@
}, },
{ {
"Region": "Privacy & Telemetry", "Region": "Privacy & Telemetry",
"Function": "BrowsingHistory", "Function": "StartRecommendationsTips",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Hide", "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": { "One": {
"Tag": "Show", "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", "Region": "UI & Personalization",
"Function": "ThisPC", "Function": "ThisPC",
@ -1378,11 +1392,11 @@
"Tag": "", "Tag": "",
"ToolTip": "Зарегистрируйте приложение, рассчитайте хэш и свяжите его с расширением со скрытым всплывающим окном 'Как вы хотите открыть это'." "ToolTip": "Зарегистрируйте приложение, рассчитайте хэш и свяжите его с расширением со скрытым всплывающим окном 'Как вы хотите открыть это'."
}, },
"One": { "One": {
"Tag": "ProgramPath", "Tag": "ProgramPath",
"ToolTip": "Путь до исполняемого файла." "ToolTip": "Путь до исполняемого файла."
}, },
"Two": { "Two": {
"Tag": "Extension", "Tag": "Extension",
"ToolTip": "Расширение." "ToolTip": "Расширение."
}, },

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

@ -245,15 +245,29 @@
}, },
{ {
"Region": "Privacy & Telemetry", "Region": "Privacy & Telemetry",
"Function": "BrowsingHistory", "Function": "StartRecommendationsTips",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Hide", "Tag": "Hide",
"ToolTip": "Не показать веб-сайты из журнала браузера в меню \"Пуск\"." "ToolTip": "Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню \"Пуск\"."
}, },
"One": { "One": {
"Tag": "Show", "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" winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk # https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps" WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
} }
foreach ($Tweaker in $Tweakers.Keys) 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 #endregion Privacy & Telemetry
#region UI & Personalization #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) # Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию) # Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable # 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 #endregion Privacy & Telemetry
#region UI & Personalization #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" winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk # https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps" WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
} }
foreach ($Tweaker in $Tweakers.Keys) 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 #endregion Privacy & Telemetry
#region UI & Personalization #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" $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 # 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://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-localizeddata?view=powershell-7.3
# https://github.com/PowerShell/PowerShell/pull/19896 # https://github.com/PowerShell/PowerShell/pull/19896
@ -265,6 +267,14 @@ BingSearch -Disable
# Enable Bing search in the Start Menu (default value) # Enable Bing search in the Start Menu (default value)
# Включить поиск через Bing в меню "Пуск" (значение по умолчанию) # Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable # 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 #endregion Privacy & Telemetry
#region UI & Personalization #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" winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk # https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps" WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
} }
foreach ($Tweaker in $Tweakers.Keys) foreach ($Tweaker in $Tweakers.Keys)
{ {
@ -2223,27 +2225,24 @@ function BingSearch
<# <#
.SYNOPSIS .SYNOPSIS
Browsing history in the Start menu Recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Hide .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 .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 .EXAMPLE
BrowsingHistory -Hide StartRecommendationsTips -Hide
.EXAMPLE .EXAMPLE
BrowsingHistory -Show StartRecommendationsTips -Show
.NOTES
Windows 11 build 23451 (Dev) required
.NOTES .NOTES
Current user Current user
#> #>
function BrowsingHistory function StartRecommendationsTips
{ {
param param
( (
@ -2262,23 +2261,66 @@ function BrowsingHistory
$Show $Show
) )
if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -lt 23451) switch ($PSCmdlet.ParameterSetName)
{ {
Write-Information -MessageData "" -InformationAction Continue "Hide"
Write-Verbose -Message $Localization.Skipped -Verbose {
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -PropertyType DWord -Value 0 -Force
return }
"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) switch ($PSCmdlet.ParameterSetName)
{ {
"Hide" "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" "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 в меню "Пуск" (значение по умолчанию) # Включить поиск через Bing в меню "Пуск" (значение по умолчанию)
# BingSearch -Enable # BingSearch -Enable
# Do not show websites from your browsing history in the Start menu. Windows 11 build 23451 (Dev) required # Do not show recommendations for tips, shortcuts, new apps, and more in the Start menu
# Не показать веб-сайты из журнала браузера в меню "Пуск". Требуется Windows 11 build 23451 (Dev) # Не показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск"
BrowsingHistory -Hide StartRecommendationsTips -Hide
# Show websites from your browsing history in the Start menu (default value) # Show recommendations for tips, shortcuts, new apps, and more in the Start menu (default value)
# Показать веб-сайты из журнала браузера в меню "Пуск" (значение по умолчанию) # Показать рекомендации с советами, сочетаниями клавиш, новыми приложениями и т. д. в меню "Пуск" (значение по умолчанию)
# BrowsingHistory -Show # 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 #endregion Privacy & Telemetry
#region UI & Personalization #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" winutil = "$env:TEMP\Winutil.log"
# https://www.youtube.com/watch?v=5NBqbUUB1Pk # https://www.youtube.com/watch?v=5NBqbUUB1Pk
WinClean = "$env:ProgramFiles\WinClean Plus Apps" WinClean = "$env:ProgramFiles\WinClean Plus Apps"
# https://github.com/Atlas-OS/Atlas
AtlasOS = "$env:SystemRoot\AtlasModules"
} }
foreach ($Tweaker in $Tweakers.Keys) foreach ($Tweaker in $Tweakers.Keys)
{ {
@ -2226,27 +2228,24 @@ function BingSearch
<# <#
.SYNOPSIS .SYNOPSIS
Browsing history in the Start menu Recommendations for tips, shortcuts, new apps, and more in the Start menu
.PARAMETER Hide .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 .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 .EXAMPLE
BrowsingHistory -Hide StartRecommendationsTips -Hide
.EXAMPLE .EXAMPLE
BrowsingHistory -Show StartRecommendationsTips -Show
.NOTES
Windows 11 build 23451 (Dev) required
.NOTES .NOTES
Current user Current user
#> #>
function BrowsingHistory function StartRecommendationsTips
{ {
param param
( (
@ -2265,23 +2264,66 @@ function BrowsingHistory
$Show $Show
) )
if ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber -lt 23451) switch ($PSCmdlet.ParameterSetName)
{ {
Write-Information -MessageData "" -InformationAction Continue "Hide"
Write-Verbose -Message $Localization.Skipped -Verbose {
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Start_IrisRecommendations -PropertyType DWord -Value 0 -Force
return }
"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) switch ($PSCmdlet.ParameterSetName)
{ {
"Hide" "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" "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 # Dismiss Microsoft Defender offer in the Windows Security about signing in Microsoft account
function DismissMSAccount function DismissMSAccount
{ {
@ -13574,7 +13670,7 @@ function WindowsSandbox
$Enable $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 return
} }

20
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

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

Loading…
Cancel
Save