And I have no idea why. If I run both of these manually they work fine but in
SCCM I keep getting this error.
Setting Discovery Error 0x87d00329 Application requirement evaluation or
detection failed
I have checked the DCMAgent.log, CIAgent.log, and DCMReporting.log and not
finding anything that relates to this error.
All I am trying to do is detect if a reg key exists or not, and if not to run
the remediate script.
Discovery script:
$tb = Get-Item -Path
"HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\"
$tb.GetValue("Start_NotifyNewApps")
If($tb.GetValue("Start_NotifyNewApps") -eq $null)
{
write-host "Non-Compliant"
}
else
{
write-host "Compliant"
}
Remediation script:
New-ItemProperty
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' -Name
Start_NotifyNewApps -Value 0 -PropertyType DWord -Force
This electronic mail transmission may contain confidential information intended
only for the use of the individual(s) identified as addressee(s). If you are
not the intended recipient, you are hereby notified that any disclosure,
copying, distribution or the taking of any action in reliance on the contents
of this electronic mail transmission is strictly prohibited. If you have
received this transmission in error, please notify me by telephone immediately.