Task sequence error. ActiveX component can't create object: 'Microsoft.SMS.TSEnvironment'
Hello, Could you please help me with this problem, Task Seuqence fails when it tries to execute a vbs script with the following code: '' Line in the VBS Script: set env = CreateObject("Microsoft.SMS.TSEnvironment") The error that script engine produces is: Microsoft VBScript runtime error: ActiveX component can't create object: 'Microsoft.SMS.TSEnvironment' ------------------------- The errorr recorder by SCCM is as follows: Source: SMS Client Component: Task Sequence Engine Description: The task sequence execution engine failed executing the action (Set Computer Name) in the group (Initialization) with the error code 2147942561 Action output: 800700a1 (e:\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,102) RecursiveCreatePath(sPath.substr(0, nPos), psa), HRESULT=800700a1 (e:\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,102) RecursiveCreatePath( sNormalizedPath, psa ), HRESULT=800700a1 (e:\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,157) DownloadContentLocally(pszSource, sSourceDirectory, dwFlags, hUserToken, pszUserName, pszUserPassword), HRESULT=800700a1 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,3130) TS::Utility::ResolveSource(pszPkgID, sPath, 0, hUserToken, sUserName.empty() ? NULL : sUserName.c_str(), sUserName.empty() ? NULL : sUserPassword.c_str()), HRESULT=800700a1 (e:\nts_sms_fre\sms\client\osdeployment\installsoftware\runcommandline.cpp,395) cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=800700a1 (e:\nts_sms_fre\sms\client\osdeployment\installsoftware\main.cpp,385) Failed to resolve the source for SMS PKGID=PMG000C1, hr=0x800700a1 Install Software failed to run command line, hr=0x800700a1. The operating system reported error 2147942561: The specified path is invalid. Properties: GUID:0897bfe3-931c-4104-a8e2-1ce3c9690873 Unknown Machine : 1 MAC Addresses : 00:16:17:AB:E7:41 SMBIOS ID : FC9FA4E0-6B14-E73D-B007-062B644C3D40 Thanks in advance Tom
November 18th, 2010 8:28am

1. Microsoft VBScript runtime error: ActiveX component can't create object: 'Microsoft.SMS.TSEnvironment', you can only run this during the task sequence so running the vbs in for example windows manually will generate that error 2. verify that this package is on the dp - Failed to resolve the source for SMS PKGID=PMG000C1 , hr=0x800700a1 My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 8:32am

Thank you for your reply. 1. You can then disregard my 1st error message I posted earlier: ActiveX component can't create object: 'Microsoft.SMS.TSEnvironment' I run the script manually from the console window of WinPE. I thought I would be able to capture some more information. Now I understand that it doesn't help. 2. However, my second error unfortunately remains unresolved at this stage. On the other hand, because the step, Rename Computer, is not critical so I enabled the option [v] Continue on error to let the TS continue to run At this stage the job, Rename Computer, can remain unresolved. 3. Unfortunately, the next step in my Task Sequence also fails. Format and Partition Disk : This job is configured in the following way: Properties tab: Disk numer: 0 Disk type: Standard(MBR) Volume: 100% of remaining space on disk. NTFS file system Options tab: [ ] Disable this step [ ] Continue on error Codition: This group/step will run if the following conditions are met: - If Any the condition are true: - If All the conditions are true: Task Sequence Variable SMSTSDownloadOnDemand equals "TRUE" Task Sequence Variable SMSTSinWInPE equals "TRUE" - If All the conditions are true: Task Sequence Variable SMSTSinWInPE equals "TRUE" Task Sequance Variable SMSTSMediaType equals "FullMedia" As I'm not sure which part of this error message will be most meaning full so I copied the whole one. The task sequence execution engine failed executing the action (Format and Partition Disk) in the group (Initialization) with the error code 2147942413 Action output: ==============================[ OSDDiskPart.exe ]============================== Command line: "osddiskpart.exe" Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL' 1 == ::swscanf(sSize.c_str(), L"%I64u", &rcbDisk), HRESULT=8007000d (e:\nts_sms_fre\sms\framework\tscore\diskutils.cpp,1381) CDisk::GetDiskSize(oDisk.getIndex(), cbDiskSize), HRESULT=8007000d (e:\nts_sms_fre\sms\client\osdeployment\osddiskpart\main.cpp,691) LoadDiskConfiguration(oDisk), HRESULT=8007000d (e:\nts_sms_fre\sms\client\osdeployment\osddiskpart\main.cpp,1412) Error invalid disk size Invalid configuration specified. Please ensure that the task sequence is properly configured. OSDDiskPart.exe failed: 0x8007000d. The operating system reported error 2147942413: The data is invalid. Properties: Package ID : PMG00116 Advertisement ID : PMG2026F Client SMS Unique ID : GUID:0897bfe3-931c-4104-a8e2-1ce3c9690873 Unknown Machine : 1 MAC Addresses : 00:16:17:AB:E7:41 SMBIOS ID : FC9FA4E0-6B14-E73D-B007-062B644C3D40 Please, advise.
November 18th, 2010 2:27pm

are you using a standard task sequence or a heavily customised one ? what hardware are you applying the os to ? and what os is this exactly ? have you added any storage drivers to your boot wim ? My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 4:32pm

Thanks again for reply are you using a standard task sequence or a heavily customised one ? Yes, I must admit that it is heavily customised. However, after exporting it to an XML file the file size is about 200KB. On the other hand the first steps are pretty standard. Set Diskpart BIOS Compatibility Mode Set Computer Name Format and Partition Disk Use Toolkit Package Check Pre-reqs -> cscript "%deployroot%\scripts\ztiprereq.vbs" Gather -> (*) Gather local data and process rules: Rules file: CustomSettings.ini Apply Operating System Image what hardware are you applying the os to ? As to hardware, I cannot specify exact make/model as the computer has been taken from the site office back to the branch office where IT people will look into it. and what os is this exactly ? Microsoft Windows XP (x86). have you added any storage drivers to your boot wim ? I haven't added any storage drivers to the .wim file I added only about 10 network drivers.
November 19th, 2010 7:44am

have a read of this (yes i know it's windows 7 but it'll give you some pointers), you are seeing error #1 http://blogs.technet.com/b/configurationmgr/archive/2009/12/17/how-to-properly-set-up-a-task-sequence-to-deploy-windows-7-images-captured-via-an-sccm-2007-capture-cd.aspx My step by step SCCM Guides I'm on Twitter > ncbrady
Free Windows Admin Tool Kit Click here and download it now
November 19th, 2010 1:05pm

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

Other recent topics Other recent topics