PowerShell Load-MdtConfigManager Function
This is a small but handy function I use for loading the Microsoft Deployment Toolit Configmanager.dll without having to know where MDT is installed.
I had this function handy since BDD2007 but as with the name change to MDT also the name of the registry key has changed it did look in the wrong location for the installation directory, hence this update.
Function Load-MdtConfigManager {
$MdtInstallDir = (gp "HKLM:\software\microsoft\deployment 4").Install_Dir
[Reflection.Assembly]::LoadFile( "$MdtInstallDir" + "Bin\Microsoft.BDD.ConfigManager.dll")
}
Enjoy,
Greetings /\/\o\/\/