Additional Script Updates
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# (Detect_GenericRegistryChange.ps1)
|
||||
# Detect if the registry key exists
|
||||
|
||||
$RegistryPath = "HKLM:\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies\Scripts"
|
||||
if (Test-Path -Path $RegistryPath) {
|
||||
Write-Host "Registry key exists: $RegistryPath"
|
||||
exit 0
|
||||
} else {
|
||||
Write-Host "Registry key not found: $RegistryPath"
|
||||
exit 1
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# (Remediate_GenericRegistryChange.ps1)
|
||||
# Modify a registry value
|
||||
|
||||
Set-ItemProperty -Path "HKLM:\Software\MyApp" -Name "MySetting" -Value "NewValue"
|
||||
Reference in New Issue
Block a user