Install OS language during OSD (the easy way!) Part 1–Inject Language files

I know this can be done using MDT (Install Language Packs Offline), and even though I love the MDT integration features, I personally find it easier to do this from a run command line step during the WinPE part of my TS.

First Thing you need to do is create a Package containing the Language pack files.. The different language packs should be placed in folders corresponding to the actual language code, like this for Danish and Swedish.


Once the package is created (and placed on a DP), its time to add a couple of lines to the OS deployment TS:

1. Open your TS, and just after the “Apply Operating System”  Step, add a “Run Command Line” step with the following syntax: (to install Danish language pack)

DISM.exe /image:%OSDTargetSystemDrive%\ /ScratchDir:%OSDTargetSystemDrive%\windows\TEMP /Add-Package /PackagePath:da-DK\

– Notice that the drive letter of the disk where the OS I installed has been replaced with the variable OSDTargetSystemDrive. Its necessary to use the variable, as we can’t be sure which drive letter WinPE assigns to the primary partition. In the same way, the SchratchDir has been set to point to windows\TEMP. If this part is left out, DISM will attempt to unpack the language CAB to the X drive, which is in RAM, resulting in failure do to insufficient space.


That’s it. Just remember to reference the language Package you created! In part 2 I will explain how to easily set the default UI language!

By | 2011-09-21T09:34:35+00:00 September 21st, 2011|OS Deployment|8 Comments

About the Author:

Michael Petersen
Twitter: @OSDeployLinkedin: Michael PetersenMicrosoft Community Contributor


  1. Martin Drewniak Møller October 17, 2011 at 10:49 - Reply

    Looking forward to part II 🙂

    • Michael Petersen October 17, 2011 at 15:05 - Reply

      yes, I’m sorry i haven’t done that yet… To much else to do I guess.. will try an create part II and III this week!

      • spazzzen December 22, 2014 at 21:21 - Reply

        Any chance there is still a part 2 coming/

  2. Attila January 6, 2013 at 16:06 - Reply

    Dear Michael,

    Looking forward to part II

    BR Attila Aspirany

  3. john February 27, 2013 at 16:01 - Reply

    where is part 2?

  4. Mike August 5, 2013 at 16:13 - Reply

    Was part 2 ever done?

  5. Murthy May 22, 2017 at 15:59 - Reply

    Is this same process for Window10? Are above command lines are working?

  6. Steven Holder June 15, 2017 at 10:34 - Reply

    So how do we set the default UI language ?

Leave A Comment