Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

VBScript SCCM 2007: SWbemObjectEx: Generic failure in Program Creation

$
0
0

Hi Techies,

I have a vbscript which publish packages in SCCM 2007 (win 2003). It often works fine with all the package, program, advertisement and collection creation and settings. I dont know why sometimes its raising the Generic Failure error in the "objProgram.Put_" line.

Im unable to find the real problem with this error. The script part for creating program is almost like the same as the scripts available in net. Its also posted here. Is there any way to investigate deeper into the generic failure error? or is there any limitations to the parameters we are passing for creating a program. Such as char limitation in program name / cmdline like that?. Please help?

 

Set objProgram = objSCCM.Get("SMS_Program").SpawnInstance_()
 objProgram.ProgramName = "Install AdobeFlashPlayer"
 objProgram.PackageID = strPID 'will have the package ID
 objProgram.Comment = "nothing"
 objProgram.CommandLine = "Wscript.exe Install.vbs adobeflash INSTALL SCCM" 'install.vbs will pick the msi from adobeflash folder and uses "install" and "sccm" as parameters
 objProgram.DiskSpaceReq = "50 MB"
 objProgram.Duration = "120"
 objProgram.ProgramFlags = 15
 objProgram.Put_


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>