Wonder if any one can help with this?
I have setup a SCCM Baseline to check if a file exists and Return $true if detected on any physical drive.
Powershell
$drive=[System.IO.DriveInfo]::getdrives()|where{$_.DriveType-eq"Fixed"}foreach($ain$drive){($check)=Get-ChildItem$a.name-recurse-filter"filename*.extention"-ErrorActionSilentlyContinueif($check){Return$true}}
and on the Baseline Compliance Rules I have "The value returned by the specified script: Equals" "True" and checked "Report noncompliance if this setting instance is not found"
So when running on a computer that has the file it reports back as Detected and the Current Value as Detected, but on computers that dont have the file they report back as Detected and current Value as NULL :S
now I was supsecting that if not detected it should not display as...