Chrome: Disable Guest and Incognito
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
defaults write com.google.Chrome BrowserGuestModeEnabled -bool false | |
defaults write com.google.chrome IncognitoModeAvailability -integer 1 | |
defaults write com.google.Chrome BrowserAddPersonEnabled -bool false | |
defaults write com.google.chrome AllowDeletetingBrowserHistory -bool false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome | |
BrowserGuestModeEnabled: 0 | |
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome | |
IncognitoModeAvailability: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$registryPath = "HKLM:\SOFTWARE\Policies\Google\Chrome" | |
IF(!(Test-Path $registryPath)) { | |
New-Item -Path $registryPath -Confirm:$false -Force | Out-Null | |
} | |
New-ItemProperty -Name BrowserGuestModeEnabled -Path $registryPath -Confirm:$false -Force -Value 0 -PropertyType DWORD | |
New-ItemProperty -Name IncognitoModeAvailability -Path $registryPath -Confirm:$false -Force -Value 1 -PropertyType DWORD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment