As part of the MDT installation process, you need to run the “Configure ConfgMgr Integration” wizard to add the MDT components into the ConfigMgr console and database. But what if you want to automate that process? Fortunately, that’s pretty easy to do using PowerShell, as the integration process really just copies some files around.
See below for the attached PowerShell script, which performs the following tasks:
So there’s not much to it. Note that the wizard does a couple of additional tasks that aren’t covered by this script:
Make sure you run this script from an elevated PowerShell session, and also make sure that PowerShell scripting has been enabled using something like “set-executionpolicy bypass”.