Switch Hide "Meet now" tweak to apply to all users...

main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 656aaf73f4
commit 685d77fabc
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -39,6 +39,7 @@ function Register-PersonalTweaksList() {
$PathToCUPoliciesLiveTiles = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"
$PathToCUNewsAndInterest = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Feeds"
$PathToCUWindowsSearch = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search"
$PathToLMPoliciesExplorer = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
$PathToLMPoliciesNewsAndInterest = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds"
$PathToLMPoliciesWindowsSearch = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
@ -162,11 +163,11 @@ function Register-PersonalTweaksList() {
Set-ItemProperty -Path "$PathToCUExplorer" -Name "EnableAutoTray" -Type DWord -Value 1
Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Meet now' icon on taskbar..."
If (!(Test-Path "$PathToCUPoliciesExplorer")) {
New-Item -Path "$PathToCUPoliciesExplorer" -Force | Out-Null
If (!(Test-Path "$PathToLMPoliciesExplorer")) {
New-Item -Path "$PathToLMPoliciesExplorer" -Force | Out-Null
}
# [@] (0 = Show Meet Now, 1 = Hide Meet Now)
Set-ItemProperty -Path "$PathToCUPoliciesExplorer" -Name "HideSCAMeetNow" -Type DWord -Value $One
Set-ItemProperty -Path "$PathToLMPoliciesExplorer" -Name "HideSCAMeetNow" -Type DWord -Value $One
Write-Caption -Text "Task Bar - Windows 11 Compatible"
Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) 'Widgets' icon from taskbar..."

Loading…
Cancel
Save