Skip to content

adding deployment type with global condition to a application fails with the between using powershell

Featured Replies

I'm in the process of automating reader so that it downloads and creates the application in SCCM

We use a global condition to get the version of reader out of the registry.

I have two deployment types,  One installs the full reader and the second just installs the patch.

On the second deployment type we use the requirement Between operand with the values of "17.011.130000" "17.011.130080"   that way it will only install the patch 

it fails on the between operand.   If I use greaterthan or others it works fine.

   Any help????

Here is the error message.

 

Add-CMScriptDeploymentType : ConfigMgr Error Object:
instance of SMS_ExtendedStatus
{
    Description = "There is a failure while generating lantern documents for this configuration item";
    ErrorCode = 1078462256;
    File = "..\\sspconfigurationitem.cpp";
    Line = 2164;
    Operation = "PutInstance";
    ParameterInfo = "";
    ProviderName = "ExtnProv";
    StatusCode = 2147749889;
};
At C:\Reader\Add-Depend.ps1:155 char:1
+ Add-CMScriptDeploymentType  -SourceUpdateProductCode "$ReaderGUID" -A ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.Confi...mentTypeCommand:AddScriptDeploymentTypeCommand) [Add-CMScriptDeploymentType], WqlQueryException
    + FullyQualifiedErrorId : UnhandledException,Microsoft.ConfigurationManagement.Cmdlets.AppMan.Commands.AddScriptDeploymentTypeCommand
 

 

Sounds way to complicated for me. We are using just a registry value detection with the "greater than or equal to" operator, which works just fine. It's probably easier to automate too.

 

 

readerDR.JPG

  • Author

We have more than one version reader installed in our environment.   The second deployment type is just the patch.   This patch is for Reader 17.011.130000 so I don't want this patch to be deployed to 18.000???     That's we use the between.

Well, i get that. But i think it's easier to create a patch application for every Reader Version. Then set the original Reader deployment as dependency for the patch application. The screenshot is just an example. You got to replace the ID and version with your values.

There is no need for a gobal condition requirement.

  • 10 months later...

I am getting the same error but I am just trying to create 2 Script deployment types for a single application. The first one creates fine but the second one gets this error. How can you create 2. I am using Add-CMScriptDeploymentType for both

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.