Admins can enable/disable inspect mode on browsers like Chrome and Microsoft Edge by restricting the same in the registry editor on Windows devices.
Purpose
The purpose of the article is to provide a guide on how to disable/enable inspect mode on Chrome browser and Microsoft Edge for Windows using SureMDM.
Prerequisites
Windows 10 & Above.
Steps
- Login to SureMDM Console
- Navigate to Jobs and create a New Job
- Select Windows as the operating system
- Create a Runscript job for the below script to enable/disable the inspection based on the requirement.
- Enter the Job name and save.
- Deploy the job to the device to reflect changes.
Chrome Browser:
# Disable Developer Tools for Google Chrome
reg add “HKLM\SOFTWARE\Policies\Google\Chrome” /v DeveloperToolsDisabled /t REG_DWORD /d 1 /f
# Enable Developer Tools for Google Chrome
reg delete “HKLM\SOFTWARE\Policies\Google\Chrome” /v DeveloperToolsDisabled /f
Microsoft Edge
# Disable Developer Tools for Microsoft Edge
reg add “HKLM\SOFTWARE\Policies\Microsoft\Edge” /v DeveloperToolsAvailability /t REG_DWORD /d 2 /f
Stop-Process -Name explorer -Force
Start-Process explorer
# Enable Developer Tools for Microsoft Edge
reg delete “HKLM\SOFTWARE\Policies\Microsoft\Edge” /v DeveloperToolsAvailability /f
Stop-Process -Name Explorer -Force
Start-Process explorer
Need help? CONTACT US