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...
  • Rudy_Ooms_MVP's avatar
    Rudy_Ooms_MVP
    Aug 03, 2021
    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"
    }

Resources