Skip to content

Commit 829b80f

Browse files
authored
force hide gaming copilot from widgets menu
1 parent 88e889c commit 829b80f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

RemoveWindowsAi.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,10 @@ function Disable-Registry-Keys {
10381038
$jsonObj.profile.settingsStorage.$($hasGamingCopilot.Name).$($prop.Name) = $false
10391039
}
10401040
}
1041-
1041+
#this prop isnt added to the json till the user views settings in gamebar so add the prop and set to false
1042+
#hide gaming copilot from widgets menu
1043+
$jsonObj.profile.settingsStorage.$($hasGamingCopilot.Name) | Add-Member -NotePropertyName 'homeMenuVisibleUser' -NotePropertyValue $false -Force
1044+
10421045
$newContent = ConvertTo-Json $jsonObj -Depth 10 -Compress #compress here to match og formatting for this file
10431046
Set-Content $overlaySettingsPath -Value $newContent -Force
10441047
}

0 commit comments

Comments
 (0)