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
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, 2021
You could try to add a powershell script which adds the 32-Bit DWORD value IncognitoModeAvailability
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
- 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 - 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 04, 2021Bronze ContributorIgnore me this worked! I had to change value to 1 to block it. Thank you so much for your help!