Uninstall google chrome android4/17/2023 ![]() Write-Host "Google Chrome is not installed" $chromeInstalled = Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe' Intune will remediate anything that exits with exit code 1, so we need to make sure that if Google Chrome is detected that we exit with that value. The first script checks for the existence of Google Chrome on the device. As mentioned two PowerShell scripts are needed, one to detect and one to remediate. This blog post just shows you how you can use a simple script to do something effectively, in this case I wanted to remove Google Chrome for end users devices when the user had installed the application. I’m not going to go through all the pre-requisites you need in place for this to work, I’ll just point you to the official MS docs and you can take a look yourself. You need a detection script to capture the current state of what you are checking for – does something exist or not, and then remediate the problem with another script. If you are familiar with configuration items and baselines in SCCM then you will be comfortable already with the approach you need to take when using a proactive remediation. Proactive remediation is a cool new Intune feature which allow you to script to detect and fix problems on your endpoints. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |