Forum Discussion
AB21805
Aug 02, 2021Bronze Contributor
How to block incognito mode on chrome via intune
Hi all, I have tried to block chrome incognito mode I have tried this OMA-URL: ./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome/IncognitoModeAvailability value: <enabled...
- Aug 03, 2021SOmething like this: (created it on my iphone so... no guarantees 😛 )
$reg = Get-Itemproperty -Path "HKLM:\SOFTWARE\Policies\Google\Chrome" -Name IncognitoModeAvailability | out-null
if(-not($reg)){
New-Itemproperty -path "HKLM:\\SOFTWARE\Policies\Google\Chrome" -name "IncognitoModeAvailability" -value "2"
} else
{
Set-ItemProperty -path "HKLM:\\SOFTWARE\Policies\Google\Chrome" -name "IncognitoModeAvailability" -value "2"
}
AB21805
Bronze Contributor
Ignore me this worked! I had to change value to 1 to block it. Thank you so much for your help!
TropicalPriest
Mar 09, 2022Copper Contributor
Your OMA values were correct my friend. You only needed to modify the quotes. They should all have been " and not ”AB21805