Browse Source

fix in TailoredExperiences functions

pull/73/head
lcaturelli 5 years ago
parent
commit
b02422419f
  1. 2
      Sophia/Preset.ps1
  2. 6
      Sophia/Sophia.psm1

2
Sophia/Preset.ps1

@ -166,7 +166,7 @@ DisableTailoredExperiences
# Offer tailored experiences based on the diagnostic data setting
# Предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных
# DisableTailoredExperiences
# EnableTailoredExperiences
# Disable Bing search in the Start Menu
# Отключить в меню "Пуск" поиск через Bing

6
Sophia/Sophia.psm1

@ -491,16 +491,12 @@ function EnableSuggestedContent
# Не предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных (только для текущего пользователя)
function DisableTailoredExperiences
{
if (-not (Test-Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy -Name TailoredExperiencesWithDiagnosticDataEnabled -PropertyType DWord -Value 0 -Force
}
# Offer tailored experiences based on the diagnostic data setting
# Предлагать персонализированные возможности, основанные на выбранном параметре диагностических данных
function DisableTailoredExperiences
function EnableTailoredExperiences
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Privacy -Name TailoredExperiencesWithDiagnosticDataEnabled -PropertyType DWord -Value 1 -Force
}

Loading…
Cancel
Save