How to fix the 80040154 error from MDT 2013 (ADK 22H2)

Mr_Pwned 0 Reputation points
2023-03-20T09:02:03.35+00:00

Hello,

I experiencing some issues from MDT 2013, i migrate the preparation of storage (format.. build.. partitionning) to powershell scripting for more reliability and flexibility.
All the process are OK but im stuck at the SMS Task Variable declaration phase.
After build, i define the OSDDiskIndex var for the next MDT process and i've got an error when i build the Microsoft.SMS.TSEnvironment COMObject..
I've got these error :
New-Object : Retrieving the com class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the followinf error : 80040154 Classe not registered

I precise the task sequence was running (im not out of the sequence)

Some info :
I run ADK 22h2 on MDT 2013
Windows 11 tasks
WinPE 64 bits

To be honest i've tried a lot of manipulation found on forum (disable 64 bits file redirection... registering the TSCore.DLL...) and i desesperate .. :(

Somebody have a tips of a miraculous solution ?

Thanks you in advance for your time.

Jérémy

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Microsoft Security | Intune | Configuration Manager | Deployment
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CherryZhang-MSFT 6,496 Reputation points
    2023-03-21T04:09:41.04+00:00

    Hi @Mr_Pwned

    i migrate the preparation of storage (format.. build.. partitionning) to powershell scripting for more reliability and flexibility.

    1, You have removed these steps from task sequence and replaced them with scripts, right? Could you please share the details for our reference?  Please help make sure these scripts can be executed successfully when without the task sequence.

    2, If you restore these steps without using the script, can the task sequence execute succeed?

    3, Please help upload a full Smsts.log and the task sequence screenshot for our reference.

    Looking forward to your reply.

    Best regards,
    Cherry


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.