Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

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\/\/

Published Monday, August 25, 2008 5:55 PM by MoW
Filed under: ,

Comments

No Comments
Anonymous comments are disabled