Hi,
I have this command which doesn't work. I remember it worked fine before, we did upgraded to SCCM 2012 R2 SP1, any idea what could be wrong? Please advise.
Add-CMDeploymentType -ApplicationName $ApplicationName -LogonRequirementType WhereOrNotUserLoggedOn -MsiInstaller -DeploymentTypeName $StandardProgramName -AdministratorComment $Description -InstallationProgram 'OurCustomScript' -UninstallProgram 'OurCustomScript' -ContentLocation $PackagePath -DetectDeploymentTypeByCustomScript -ScriptType Powershell -ScriptContent "Dummy" -RunScriptAs32bitProcessOn64bitClient $False -ManualSpecifyDeploymentType -InstallationBehaviorType InstallForSystem -InstallationProgramVisibility $RunType -AddRequirement $oDTRule -verbose
Add-CMDeploymentType : Value cannot be null.
Parameter name: contentFile
At line:1 char:1
+ Add-CMDeploymentType -ApplicationName $ApplicationName -LogonRequirementType ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Confi...mentTypeCommand:AddDeploymentTypeCommand) [Add-CMDeploymentType], InvalidOperationException
+ FullyQualifiedErrorId : ValidationError,Microsoft.ConfigurationManagement.Cmdlets.AppMan.Commands.AddDeploymentTypeC