mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2026-03-20 01:26:18 +01:00
force hide gaming copilot from widgets menu
This commit is contained in:
@@ -1038,7 +1038,10 @@ function Disable-Registry-Keys {
|
|||||||
$jsonObj.profile.settingsStorage.$($hasGamingCopilot.Name).$($prop.Name) = $false
|
$jsonObj.profile.settingsStorage.$($hasGamingCopilot.Name).$($prop.Name) = $false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#this prop isnt added to the json till the user views settings in gamebar so add the prop and set to false
|
||||||
|
#hide gaming copilot from widgets menu
|
||||||
|
$jsonObj.profile.settingsStorage.$($hasGamingCopilot.Name) | Add-Member -NotePropertyName 'homeMenuVisibleUser' -NotePropertyValue $false -Force
|
||||||
|
|
||||||
$newContent = ConvertTo-Json $jsonObj -Depth 10 -Compress #compress here to match og formatting for this file
|
$newContent = ConvertTo-Json $jsonObj -Depth 10 -Compress #compress here to match og formatting for this file
|
||||||
Set-Content $overlaySettingsPath -Value $newContent -Force
|
Set-Content $overlaySettingsPath -Value $newContent -Force
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user