jump to navigation

Export & share MDT Applications (New Tool) November 6, 2009

Posted by keithga in Uncategorized.
trackback

New for MDT 2010

Presented here is the MDT Application Export Tool (MDTAppExport.exe). This tool will export the settings for a selected Application in MDT 2010 into a Powershell *.ps1 script file. This portable powershell script file can be used to import the Application settings into another instance of MDT 2010.

One of the coolest new features of MDT 2010 is the new Powershell Programming interface. This interface makes it possible for 3rd party programs to Read, Manipulate, and Create settings in your MDT 2010 environment.

Still, Powershell is a relatively new programming language. And many IT Pros may still be unfamiliar with it. Which makes this tool so cool, you can create powershell scripts without knowing powershell.

Advantages

Exporting to Powershell provides a good way to share Application metadata between MDT 2010 Shares:

  • Upgrade your existing MDT 2008 Deployment Share to MDT 2010, and extract out all of your applications for archival.
  • Move individual applications between test and production environments without copying other items still in test.
  • Use Powershell scripts as a way to document/store the settings for each application in your environment.
  • Share your solutions to difficult/complex application installations to IT Community Forums (please don’t share software files you don’t have the rights to redistribute :^) ).

Notes

While running the Application Script Export Tool Wizard, Simply select one of the Deployment Shares already present in the Microsoft Deployment Toolkit 2010 Workbench. Then Select the Applications you wish to export, and the Target location they should be exported to.

Most applications should export without trouble 97-98% of the time. However it is generally a good idea to review the settings created by the tool to ensure that everything is correct.

This script will create one Powershell *.ps1 script file for each item selected in the wizard. If an Application has dependencies defined in the MDT 2010 Workbench, then the dependencies will also be included in the same *.ps1 file.

All Source Files imported into the Deployment Workbench when the Application was created will be copied to the Target Location.

Limitations

  • You must have MDT 2010 installed on the same machine this tool is running on.
  • You must have your Deployment Share visible in the MDT 2010 Deployment workbench.
  • This tool will create one *.ps1 for each application Selected, and all dependent applications will be imported to the same *.ps1 file.
  • If you have hidden and or non-enabled applications defined, they will also be Displayed in the Application Script Export Tool Wizard.
  • This tool will create scripts with the –hidden and –enabled settings as defined in the workbench.
  • This tool will *not* export the Language Field. Language Field is not used in ZTIApplications.wsf
  • If you are exporting Sources, the files must be located in the Deployment Share, meaning that you can’t have a %ResourceRoot% at a different location from the %DeployRoot%.
  • If there were any errors in copying the Sources to the Target, there should be an
    “# ERROR – <something>”
    line present in the source.
  • Please ensure that all application items imported into MDT are placed in their own directory. Installing more than one Application Item from the same directory may result in duplicate files in the MDT system.

Links

MDTApplicationExport.zip

Further

This tool has tremendous potential. Beyond just coping application settings between MDT 2010 Servers.

We are already using this tool here at Xtreme Consulting Services to create “repositories” of applications that can be used to quickly build out MDT 2010 deployments for our customers. A fullly functional MDT 2010 Litetouch Deployment System setup on site in Hours, not Days, or Weeks.

It could also be the start of a public repository of Applications for MDT Administrators. Although I have not yet figured out a great hosting site for this kind of community/forum. Have some ideas, drop me a line.

Update: 11/13/09 – I updated the tool to generate scripts that support Powershell v1.0 better, and to fix a problem with applications with spaces in the shortname.

Keith

Keith Garner is a Deployment Specialist with Xtreme Consulting Group

Comments»

No comments yet — be the first.