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"
}
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?
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
Aug 03, 2021Bronze Contributor
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
- Aug 03, 2021You could try to add a powershell script which adds the 32-Bit DWORD value IncognitoModeAvailability
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome- AB21805Aug 03, 2021Bronze ContributorWhat would I actually put in the script?
Thanks for your continued support Rudy- 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"
}
- AB21805Aug 03, 2021Bronze ContributorI did try this
New-ItemProperty -Path "HKCU:\Software\Policies\Google\Chrome" -Name "IncognitoModeAvailability" -Value ”1” -PropertyType "REG_DWORD"
But no luck