Additional Script Updates

This commit is contained in:
Andrew Amason
2025-05-19 15:19:36 -04:00
parent ec2b22290a
commit 9c8438d7d1
136 changed files with 1595 additions and 0 deletions

View File

@@ -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
}

View File

@@ -0,0 +1,4 @@
# (Remediate_GenericRegistryChange.ps1)
# Modify a registry value
Set-ItemProperty -Path "HKLM:\Software\MyApp" -Name "MySetting" -Value "NewValue"