Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Powershell oneliner to deploy application, howto integrate detection script?

$
0
0

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


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>