Cannot get global condition with powershell script to work during OSD application installation

Hi guys,

Apologies for the long therad title.

Lets take things in reverse:

I have an application that i wish to deploy during OSD. The application needs one deployment type for OSD, and one deployment type for regular installations. I've created two deployment types, and placed the one for OSD as highest priority to be selected first.

On the OSD deployment type, as a requirement, i've set a custom Global Condition in order to evaluate if the TS manager is running on the computer (which would then indicate a OSD deployment).

The custom Global Condition is created as a script with boolean data type. The script is powershell, and consists of one line to return 'true' if TSManager process is running: [bool] (Get-Process TSmanager ea 0)

I've tested this by the command console during OSD, and the script works fine. The boolean value should then be returned to configmgr, and the requirement for my OSD deployment type to be selected for installation.

During the task sequence, i also make sure to enable the execution of unsigned PowerShell scripts using the command powershell.exe -Command "Set-ExecutionPolicy Unrestricted" This command also works, and i've verified this from the command prompt during OSD using the Get-ExecutionPolicy powershell command.

However, when my application is to be evaluated the task sequence fails with the generic error 0x80004005. I can't seemto find which logs that will help me troubleshoot the problem. 

I've made sure to enable powershell support for my boot image.

Can someone help shed some light on what i'm doing wrong?

Thanks.



January 17th, 2014 3:50pm

You dont need powershell support in the boot inage. Applications are installed in the target OS only.

Smsts.log and app*.log should help.

Free Windows Admin Tool Kit Click here and download it now
January 17th, 2014 5:15pm

Hi Torsten,

Thanks for replying. These are from the logfiles AppIntentEval.log and AppDiscovery.log. Can you help determining whats wrong?

AppIntentEval.log

No dependencies for DeploymentType ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f3544f25-4363-4f77-910c-4b1b9f35bb3d/2. AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
No dependencies for DeploymentType ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8/5. AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
Evaluating Application policies for Machine AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
Rejecting ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/RequiredApplication_3b71ebf0-030d-4048-9080-9517c58feaca/11 due to evaluation error AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f3544f25-4363-4f77-910c-4b1b9f35bb3d/2 :- Current State = NotInstalled, Applicability = Applicable, ResolvedState = None, ConfigureState = NotNeeded, Title = Microsoft Skype 6.11 v1.0 AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8/5 :- Current State = Error, Applicability = Unknown, ResolvedState = None, ConfigureState = NotNeeded, Title = OSD - Skype 6.11 - Windows Installer (*.msi file) AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/Application_3b71ebf0-030d-4048-9080-9517c58feaca/11 :- Current State = Error, Applicability = Unknown, ResolvedState = None, ConfigureState = NotNeeded, Title = Microsoft Skype 6.11 v1.0 AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)
ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/RequiredApplication_3b71ebf0-030d-4048-9080-9517c58feaca/11 :- Current State = Error, Applicability = Unknown, ResolvedState = None, ConfigureState = NotNeeded, Title = ApplicationIntentPolicy AppIntentEval 17-01-2014 10:52:36 2476 (0x09AC)

AppDiscovery.log

Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8" AND Revision = 5)" AppDiscovery 17-01-2014 10:52:36 2956 (0x0B8C)
    Performing detection of app deployment type OSD - Skype 6.11 - Windows Installer (*.msi file)(ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8, revision 5) for system. AppDiscovery 17-01-2014 10:52:36 2956 (0x0B8C)
+++ Application not discovered. [AppDT Id: ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8, Revision: 5] AppDiscovery 17-01-2014 10:52:36 2956 (0x0B8C)
+++ Did not detect app deployment type OSD - Skype 6.11 - Windows Installer (*.msi file)(ScopeId_97FE3983-15C0-4E22-9739-D92640516E83/DeploymentType_f6874ff2-bc85-4089-8d09-162f2698eda8, revision 5) for system. AppDiscovery 17-01-2014 10:52:36 2956 (0x0B8C)

It looks like the last log complains that there is no deployment type for 'System'. Both deployment types are targeted for system under 'installation behaviour'.

January 17th, 2014 5:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics