Hi,
I'm trying to write a Powershell-script to deploy software in SCCM 2012.
Everything works fine but the Add-CMDeploymtenType, there I got this error:
Creating Deployment Type Microsoft - Office - 2010 (1.0) - X64
WARNING: The parameter 'AutoIdentifyFromInstallationFile' has been deprecated from this parameter set and may be removed in a future release.
WARNING: Unexpected site version '-1' was detected. Defaulting to latest Application Management SDK API set. This may introduce cmdlet incompatibilities.
Add-CMDeploymentType : Specified cast is not valid.
This is my command:
Add-CMDeploymentType-ApplicationName $AppVName -DeploymentTypeName $DeploymentTypeName -AppV5xInstaller-InstallationFileLocation $InstallFileLocation -AutoIdentifyFromInstallationFile-ForceForUnknownPublisher $true -AddRequirement $oDTRule
Note: I updated the Powershell to version 4.0 on Windows 2012 R2 and updated the lateste SCCM CMDlets due to an issue (which I also posted in the forum).
Please advise.
J.
Jan Hoedt
Jan Hoedt