Trying to deploy Managed installer and we were getting errors
preRemediationDetectionOutput: [Sidecar is not set as a managed installer.] remediationError: [C:\WINDOWS\IMECache\HealthScripts\d78c1822-e082-491a-b3a7-4a701836481e_4\remediate.ps1 : Failed in handling upgrade. Cannot convert argument “0”, with value: “System.Object[]”, for “RemoveChild” to type “System.Xml.XmlNode”: “Cannot convert the “System.Object[]” value of type “System.Object[]” to type “System.Xml.XmlNode”.” + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,remediate.ps1]
I had to run the below script in proactive remediation to clear Existing AppLocker Managed Installer Policy before this would deploy
#Detect
# The template of the AppLocker policy to set Intune as the Managed Installer
[string]$SidecarMiPolicy =
@"
<?xml version="1.0"?>
<AppLockerPolicy Version="1">
<RuleCollection Type="Appx" EnforcementMode="NotConfigured" />
<RuleCollection Type="Dll" EnforcementMode="AuditOnly">
<FilePathRule Id="86f235ad-3f7b-4121-bc95-ea8bde3a5db5" Name="Dummy Rule" Description="" UserOrGroupSid="S-1-1-0" Action="Deny">
<Conditions>
<FilePathCondition Path="%OSDRIVE%\ThisWillBeBlocked.dll" />
</Conditions>
</FilePathRule>
<RuleCollectionExtensions>
<ThresholdExtensions>
<Services EnforcementMode="Enabled" />
</ThresholdExtensions>
<RedstoneExtensions>
<SystemApps Allow="Enabled" />
</RedstoneExtensions>
</RuleCollectionExtensions>
</RuleCollection>
<RuleCollection Type="Exe" EnforcementMode="AuditOnly">
<FilePathRule Id="9420c496-046d-45ab-bd0e-455b2649e41e" Name="Dummy Rule" Description="" UserOrGroupSid="S-1-1-0" Action="Deny">
<Conditions>
<FilePathCondition Path="%OSDRIVE%\ThisWillBeBlocked.exe" />
</Conditions>
</FilePathRule>
<RuleCollectionExtensions>
<ThresholdExtensions>
<Services EnforcementMode="Enabled" />
</ThresholdExtensions>
<RedstoneExtensions>
<SystemApps Allow="Enabled" />
</RedstoneExtensions>
</RuleCollectionExtensions>
</RuleCollection>
<RuleCollection Type="ManagedInstaller" EnforcementMode="AuditOnly">
<FilePublisherRule Id="3cf97403-1b4a-4492-8e70-98436cf78983" Name="MICROSOFT.MANAGEMENT.SERVICES.INTUNEWINDOWSAGENT.EXE version 1.37.200.8 exactly in MICROSOFT INTUNE from O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" Description="1" UserOrGroupSid="S-1-1-0" Action="Allow">
<Conditions>
<FilePublisherCondition PublisherName="O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="*" BinaryName="MICROSOFT.MANAGEMENT.SERVICES.INTUNEWINDOWSAGENT.EXE">
<BinaryVersionRange LowSection="1.37.200.8" HighSection="*" />
</FilePublisherCondition>
</Conditions>
</FilePublisherRule>
</RuleCollection>
<RuleCollection Type="Msi" EnforcementMode="NotConfigured" />
<RuleCollection Type="Script" EnforcementMode="NotConfigured" />
</AppLockerPolicy>
"@
# VerifyNode
# Verfiy the Managed Installer file rule is for Intune, only check the rule Id, the PublisherName and the BinaryName
function VerifyNode($miNode, [string]$ruleId, [string]$PublisherName, [string]$BinaryName)
{
Write-Debug ("Checking node $ruleId and $PublisherName")
$ruleNode = $miNode.ChildNodes | Where-Object{($_.LocalName -eq 'FilePublisherRule') -and ($_.Id -eq $ruleId)}
if(-not $ruleNode)
{
return $false
}
$conditionNode = $ruleNode.ChildNodes | ForEach-Object { $_.ChildNodes } | Where-Object { ($_.LocalName -eq 'FilePublisherCondition') -and ($_.PublisherName -eq $PublisherName) -and ($_.BinaryName -eq $BinaryName) }
if(-not $conditionNode)
{
return $false
}
return $true
}
# Remove-IntuneManagedInstaller
# Remove the Managed Installer policy for Intune if have,
#
# Return
# Bool: indicate if the policy was modified.
# And $policy would be modified if having Managed Installer policy for Intune.
function Remove-IntuneManagedInstaller([xml]$policy)
{
$updated = $false
$miNode = $policy.AppLockerPolicy.ChildNodes | Where-Object{$_.Type -eq 'ManagedInstaller'}
if(-not $miNode)
{
Write-Host('Policy does not contain a managed installer: ' + $policy.OuterXml)
return $updated
}
$currentdRules = $miNode.ChildNodes | Where-Object{ ($_.LocalName -eq 'FilePublisherRule') }
if(-not $currentdRules)
{
Write-Host('Managed installer does not include FilePublisherRule')
return $updated
}
# This the template policy that Intune deployed
[xml]$desiredPolicy = $SidecarMiPolicy
$desiredMiNode = $desiredPolicy.AppLockerPolicy.ChildNodes | Where-Object{$_.Type -eq 'ManagedInstaller'}
$desiredRules = $desiredMiNode.ChildNodes | Where-Object{ ($_.LocalName -eq 'FilePublisherRule') }
$conditionNode = $desiredRules.ChildNodes | ForEach-Object {$_.ChildNodes } | Where-Object { ($_.LocalName -eq 'FilePublisherCondition') }
# iterate the managed installer rules, remove the Intune item if have
foreach($rule in $currentdRules)
{
if(VerifyNode -miNode $miNode -ruleId $rule.Id -PublisherName $conditionNode.PublisherName -BinaryName $conditionNode.BinaryName)
{
Write-Host('Policy includes Intune Management Extension as managed installer, remove it. Rule Id: ' + $rule.Id)
$miNode.RemoveChild($rule) | Out-Null
$updated = $true
}
else {
Write-Host('Policy doesn''t includes Intune Management Extension as managed installer, will not remove it. Rule Id: ' + $rule.Id)
}
}
if($miNode.ChildNodes.Count -eq 0)
{
Write-Host('Delete empty Managed Installer section')
$miNode.ParentNode.RemoveChild($miNode) | Out-Null
}
return $updated
}
function SetAppLockerPolicy([string]$policyXml)
{
$policyFile = "$($env:tmp)\CatCleanIMEOnlyAppLockerPolicy_$(get-date -f yyyyMMddhhmmss).xml"
$policyXml | Out-File $policyFile
Write-Host "Clearing AppLocker policy $policyFile"
Set-AppLockerPolicy -XmlPolicy $policyFile -ErrorAction SilentlyContinue
}
# Execution flow starts here
# Load the current effective AppLocker policy
try
{
[xml]$effectivePolicyXml = Get-AppLockerPolicy -Effective -Xml -ErrorVariable ev -ErrorAction SilentlyContinue
}
catch
{
Write-Error('Get-AppLockerPolicy failed. ' + $_.Exception.Message)
exit 1
}
# Check if it contains MI policy and if the MI policy has rules for Intune Management Extension
try
{
$NewPolicyXml = $effectivePolicyXml.Clone()
$needUpdate = Remove-IntuneManagedInstaller($NewPolicyXml)
}
catch
{
Write-Error('Failed to verify AppLocker policy compliance. ' + $_.Exception.Message)
exit 1
}
if($needUpdate)
{
# Intune Management Extension is set as the managed installer
Write-Host("Intune Management Extension is set as the managed installer, remove it.")
Exit 1
#Remove managed installer for Intune
try
{
# dump the original policy before change
# $effectivePolicyXml
# $NewPolicyXml
Write-Host ("The existing AppLocker policy: " + $effectivePolicyXml.OuterXml)
Write-Host ("New AppLocker policy: " + $NewPolicyXml.OuterXml)
SetAppLockerPolicy($NewPolicyXml.OuterXml)
}
catch
{
$e = $_.Exception
Write-Error('Failed to merge AppLocker policy. ' + $e.Message.ToString())
exit 1
}
# Check if the registry value is there and remove it if it is there
if(Get-ItemProperty -Path Registry::"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies" -Name "ManagedInstallerEnabled" -ErrorAction Ignore)
{
Write-Host("ManagedInstallerEnabled should not be present, remove it.")
Remove-ItemProperty -Path Registry::"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies" -Name "ManagedInstallerEnabled"
}
}
else
{
# Intune Management Extension is not set as the managed insatller
Write-Host("Intune Management Extension is not set as a managed installer, no action.")
}
exit 0
# SIG # Begin signature block
# MIInlgYJKoZIhvcNAQcCoIInhzCCJ4MCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBs2CvSla+6nCKP
# L1mstMkcdfVZMNOEOejhYM7JF6EySqCCDXYwggX0MIID3KADAgECAhMzAAADTrU8
# esGEb+srAAAAAANOMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYD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GFtcCBQQ0EgMjAxMAIT
# MwAAAcj5sO5n7eprRgABAAAByDAiBCAkZaw7cM50ZLlFYrFy7EUmUz41HG5kWaRF
# h5Oe3EPilTANBgkqhkiG9w0BAQsFAASCAgBVbnHJQ0xcB8FYuOGKwofF2yLUtjEF
# ztuJMxdCY+d5i5w0fKsiH9AKBc6JJ3ZvkdgUkGgxd/nCKisOzR2WSsLVEIfn8hin
# 1qDg8w6+IPiFGiE0o1fuguaVU0jLO58LGWCbWVuc+QmJB1lbCfqlA0PToSE1ogRE
# tt+dCVAL5m4hfFrjSKzccuT5jULnGRUtK/gFeixW2ekxdasovBKnJlKUkSADBMSA
# JOlgYPIvbv3QYUMuDySTk2VnLXSYz7fS5gCFutk9XEAihUaFVfbkgl86JIZrtLSD
# 0dMph95ATHS76iHHR/FQte+/dTUuoRmDkE/O0fQ7NsfD6rBi6P7m1EdZE3yvCNAf
# GVI2ATfOG0os8cKGlOE4biIIxCxNZrb5ZdBCYqaurmqimMPh5pLqBgzIxoIHXZdv
# Q7Qjh6MyYfq8629ujaDjIs6fWGpiA5/iR7yFQuZo1uStxFxr/lwW97R0QK6Ii1sq
# flwgbdCyslLJPHa2VZflLjpRqd+yrozyDJEGbidfe+xgEm9ywNu2xqXydSgr41UY
# IvLqqY/L00gcm6IU3Gh4wiIcZklLOkrDeNi+KJSjYCFeyyH5+mBfNCymD6x+az6Y
# kVcW3KZB/ypFXWOQXIkrje/kynRGFNigMzKRRuT8eDRcXqDExOJXrieabzGgRDFU
# dFtRs2eKkrQPdg==
# SIG # End signature block
#remmediate
# The template of the AppLocker policy to set Intune as the Managed Installer
[string]$SidecarMiPolicy =
@"
<?xml version="1.0"?>
<AppLockerPolicy Version="1">
<RuleCollection Type="Appx" EnforcementMode="NotConfigured" />
<RuleCollection Type="Dll" EnforcementMode="AuditOnly">
<FilePathRule Id="86f235ad-3f7b-4121-bc95-ea8bde3a5db5" Name="Dummy Rule" Description="" UserOrGroupSid="S-1-1-0" Action="Deny">
<Conditions>
<FilePathCondition Path="%OSDRIVE%\ThisWillBeBlocked.dll" />
</Conditions>
</FilePathRule>
<RuleCollectionExtensions>
<ThresholdExtensions>
<Services EnforcementMode="Enabled" />
</ThresholdExtensions>
<RedstoneExtensions>
<SystemApps Allow="Enabled" />
</RedstoneExtensions>
</RuleCollectionExtensions>
</RuleCollection>
<RuleCollection Type="Exe" EnforcementMode="AuditOnly">
<FilePathRule Id="9420c496-046d-45ab-bd0e-455b2649e41e" Name="Dummy Rule" Description="" UserOrGroupSid="S-1-1-0" Action="Deny">
<Conditions>
<FilePathCondition Path="%OSDRIVE%\ThisWillBeBlocked.exe" />
</Conditions>
</FilePathRule>
<RuleCollectionExtensions>
<ThresholdExtensions>
<Services EnforcementMode="Enabled" />
</ThresholdExtensions>
<RedstoneExtensions>
<SystemApps Allow="Enabled" />
</RedstoneExtensions>
</RuleCollectionExtensions>
</RuleCollection>
<RuleCollection Type="ManagedInstaller" EnforcementMode="AuditOnly">
<FilePublisherRule Id="3cf97403-1b4a-4492-8e70-98436cf78983" Name="MICROSOFT.MANAGEMENT.SERVICES.INTUNEWINDOWSAGENT.EXE version 1.37.200.8 exactly in MICROSOFT INTUNE from O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" Description="1" UserOrGroupSid="S-1-1-0" Action="Allow">
<Conditions>
<FilePublisherCondition PublisherName="O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="*" BinaryName="MICROSOFT.MANAGEMENT.SERVICES.INTUNEWINDOWSAGENT.EXE">
<BinaryVersionRange LowSection="1.37.200.8" HighSection="*" />
</FilePublisherCondition>
</Conditions>
</FilePublisherRule>
</RuleCollection>
<RuleCollection Type="Msi" EnforcementMode="NotConfigured" />
<RuleCollection Type="Script" EnforcementMode="NotConfigured" />
</AppLockerPolicy>
"@
# VerifyNode
# Verfiy the Managed Installer file rule is for Intune, only check the rule Id, the PublisherName and the BinaryName
function VerifyNode($miNode, [string]$ruleId, [string]$PublisherName, [string]$BinaryName)
{
Write-Debug ("Checking node $ruleId and $PublisherName")
$ruleNode = $miNode.ChildNodes | Where-Object{($_.LocalName -eq 'FilePublisherRule') -and ($_.Id -eq $ruleId)}
if(-not $ruleNode)
{
return $false
}
$conditionNode = $ruleNode.ChildNodes | ForEach-Object { $_.ChildNodes } | Where-Object { ($_.LocalName -eq 'FilePublisherCondition') -and ($_.PublisherName -eq $PublisherName) -and ($_.BinaryName -eq $BinaryName) }
if(-not $conditionNode)
{
return $false
}
return $true
}
# Remove-IntuneManagedInstaller
# Remove the Managed Installer policy for Intune if have,
#
# Return
# Bool: indicate if the policy was modified.
# And $policy would be modified if having Managed Installer policy for Intune.
function Remove-IntuneManagedInstaller([xml]$policy)
{
$updated = $false
$miNode = $policy.AppLockerPolicy.ChildNodes | Where-Object{$_.Type -eq 'ManagedInstaller'}
if(-not $miNode)
{
Write-Host('Policy does not contain a managed installer: ' + $policy.OuterXml)
return $updated
}
$currentdRules = $miNode.ChildNodes | Where-Object{ ($_.LocalName -eq 'FilePublisherRule') }
if(-not $currentdRules)
{
Write-Host('Managed installer does not include FilePublisherRule')
return $updated
}
# This the template policy that Intune deployed
[xml]$desiredPolicy = $SidecarMiPolicy
$desiredMiNode = $desiredPolicy.AppLockerPolicy.ChildNodes | Where-Object{$_.Type -eq 'ManagedInstaller'}
$desiredRules = $desiredMiNode.ChildNodes | Where-Object{ ($_.LocalName -eq 'FilePublisherRule') }
$conditionNode = $desiredRules.ChildNodes | ForEach-Object {$_.ChildNodes } | Where-Object { ($_.LocalName -eq 'FilePublisherCondition') }
# iterate the managed installer rules, remove the Intune item if have
foreach($rule in $currentdRules)
{
if(VerifyNode -miNode $miNode -ruleId $rule.Id -PublisherName $conditionNode.PublisherName -BinaryName $conditionNode.BinaryName)
{
Write-Host('Policy includes Intune Management Extension as managed installer, remove it. Rule Id: ' + $rule.Id)
$miNode.RemoveChild($rule) | Out-Null
$updated = $true
}
else {
Write-Host('Policy doesn''t includes Intune Management Extension as managed installer, will not remove it. Rule Id: ' + $rule.Id)
}
}
if($miNode.ChildNodes.Count -eq 0)
{
Write-Host('Delete empty Managed Installer section')
$miNode.ParentNode.RemoveChild($miNode) | Out-Null
}
return $updated
}
function SetAppLockerPolicy([string]$policyXml)
{
$policyFile = "$($env:tmp)\CatCleanIMEOnlyAppLockerPolicy_$(get-date -f yyyyMMddhhmmss).xml"
$policyXml | Out-File $policyFile
Write-Host "Clearing AppLocker policy $policyFile"
Set-AppLockerPolicy -XmlPolicy $policyFile -ErrorAction SilentlyContinue
}
# Execution flow starts here
# Load the current effective AppLocker policy
try
{
[xml]$effectivePolicyXml = Get-AppLockerPolicy -Effective -Xml -ErrorVariable ev -ErrorAction SilentlyContinue
}
catch
{
Write-Error('Get-AppLockerPolicy failed. ' + $_.Exception.Message)
exit 1
}
# Check if it contains MI policy and if the MI policy has rules for Intune Management Extension
try
{
$NewPolicyXml = $effectivePolicyXml.Clone()
$needUpdate = Remove-IntuneManagedInstaller($NewPolicyXml)
}
catch
{
Write-Error('Failed to verify AppLocker policy compliance. ' + $_.Exception.Message)
exit 1
}
if($needUpdate)
{
# Intune Management Extension is set as the managed installer
Write-Host("Intune Management Extension is set as the managed installer, remove it.")
#Remove managed installer for Intune
try
{
# dump the original policy before change
# $effectivePolicyXml
# $NewPolicyXml
Write-Host ("The existing AppLocker policy: " + $effectivePolicyXml.OuterXml)
Write-Host ("New AppLocker policy: " + $NewPolicyXml.OuterXml)
SetAppLockerPolicy($NewPolicyXml.OuterXml)
}
catch
{
$e = $_.Exception
Write-Error('Failed to merge AppLocker policy. ' + $e.Message.ToString())
exit 1
}
# Check if the registry value is there and remove it if it is there
if(Get-ItemProperty -Path Registry::"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies" -Name "ManagedInstallerEnabled" -ErrorAction Ignore)
{
Write-Host("ManagedInstallerEnabled should not be present, remove it.")
Remove-ItemProperty -Path Registry::"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\SideCarPolicies" -Name "ManagedInstallerEnabled"
}
}
else
{
# Intune Management Extension is not set as the managed insatller
Write-Host("Intune Management Extension is not set as a managed installer, no action.")
}
exit 0
# SIG # Begin signature block
# MIInlgYJKoZIhvcNAQcCoIInhzCCJ4MCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBs2CvSla+6nCKP
# L1mstMkcdfVZMNOEOejhYM7JF6EySqCCDXYwggX0MIID3KADAgECAhMzAAADTrU8
# esGEb+srAAAAAANOMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMwMzE2MTg0MzI5WhcNMjQwMzE0MTg0MzI5WjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
# AQDdCKiNI6IBFWuvJUmf6WdOJqZmIwYs5G7AJD5UbcL6tsC+EBPDbr36pFGo1bsU
# p53nRyFYnncoMg8FK0d8jLlw0lgexDDr7gicf2zOBFWqfv/nSLwzJFNP5W03DF/1
# 1oZ12rSFqGlm+O46cRjTDFBpMRCZZGddZlRBjivby0eI1VgTD1TvAdfBYQe82fhm
# WQkYR/lWmAK+vW/1+bO7jH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