Hi,
I'd like to integrate a detection script in a powershell Add-CMDeploymentType.
This is the detection script "if (Get-WmiObject -Query "Select * from WIN32_QuickFixEngineering where HotFixID = 'KB2506143'"){write-host "Installed"}"
So what I have now (first new-cmapplication
Add-CMDeploymentType -ApplicationName "Application1" -DeploymentTypeName "DeploymentTypeName" -MsiInstaller -ContentLocation "\\ourshare\folder" -InstallationProgram "install" -ForceForUnknownPublisher $true -InstallationBehaviorType InstallForSystem -ScriptType Powershell -DetectDeploymentTypeByCustomScript
Can I intergrate my detection method here without pointing to a ps1?
Please advise.
J.
Jan Hoedt