Share via


Application Deployment - Detection Method not working (Powershell)

Question

Monday, March 21, 2016 10:11 AM

Hi There,

I trying to detect the version for a application deployment after successful installation in detection method but got this "Application not discovered with script detection and Deployment type detection failed with error 0x80070001." in the AppDiscovery.log

I have no issue running the command on my computer, return the version and no error

(Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\| Where{$_.DisplayName -like '*Pulse*'}|Where{$_.DisplayVersion -Match '5.1.55675'})

Please advise. Thanks.

All replies (6)

Tuesday, March 22, 2016 3:28 AM âś…Answered

Dear Sir,

The script runs well when running manually doesn't mean that ConfigMgr can get the result. You need to 'RETURN' values that ConfigMgr can recognize and then it can report back.

Please see https://technet.microsoft.com/en-au/library/989dfb1d-a003-4200-817d-f917d8ae096b#BKMK_Step4

Best regards

Frank

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]


Monday, March 21, 2016 10:16 AM

If you are using a powershell script, how is your agent configured concerning Powershell Execution Policy? It should be "bypass".  :) 


Monday, March 21, 2016 10:18 AM

Is there a Reason why you don't use a Registry-Type based Detection Method? Based on your script, it looks like you simply want to validate a Version in the Registry.

Simon Dettling | msitproblog.com | @SimonDettling


Wednesday, March 23, 2016 12:44 AM

many things is moving to powershell. just want to try out. =-)


Wednesday, March 23, 2016 12:45 AM

hmm. let me check it out where is that setting. thanks =-)


Saturday, May 19, 2018 5:01 PM

https://social.technet.microsoft.com/Forums/en-US/951b8821-6540-4726-93d4-a65d4316b94c/bypassing-execution-policy-for-sccm-server-for-powershell-detection-method?forum=configmanagerapps