Created
December 15, 2023 02:49
-
-
Save DamagedDingo/cd529d2d1873759caa3da6ceb530626d to your computer and use it in GitHub Desktop.
Intune Remediation Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( $(Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Google\Chrome\" -Name "BrowserSignin") -ne 2) ) { | |
# Not found, exit with 1 to trigger remidiation. | |
exit 1 | |
} | |
else { | |
# Value found, exit 0 | |
Write-Output "Some Output Must Be Written to STDOUT" | |
exit 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ItemPropertyValue -Path "HKLM:\SOFTWARE\Policies\Google\Chrome\" -Name "BrowserSignin" -Value 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment