Forum Discussion

AB21805's avatar
AB21805
Bronze Contributor
Aug 02, 2021

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/>
<data id=”IncognitoModeAvailability” value=”1” />

 

Please help!

  • SOmething 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"
    }
  • Maybe a stupid question... but did you ingest the admx also ?
    What happens when you target the user instead of device? I have seen in it in the past, that some times the device selection just won't work while configuring this setting.

    Did you take a look on what the deviceenterprisemgt eventlog has to say?
    • AB21805's avatar
      AB21805
      Bronze Contributor

      Hi Rudy_Ooms_MVP 

       

      Yes I have added the ADMX. Incognito is literally the only one that doesn't seem to work. 

       

       

      I have tried to target the user too but no luck! Is this possible an alternative way like using powershell? 

       

      I just dont get where im going wrong

       

       

      • You could try to add a powershell script which adds the 32-Bit DWORD value IncognitoModeAvailability
        HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome

Resources