/build/static/layout/Breadcrumb_cap_w.png

Using External WIM Files in the K2000

Summary: 

There may be times, especially in new instllations, when you would like to use your existing WIM files from the K2000.  Here we will discuss how to utilize the K2000 to deploy existing WIM files without uploading the images through K2000 Deployment Menu. You can utilize the K2000 to store the images or you can use existing server storage to access WIM files.

Authors Note:   There are some similar articles from @SMal.tmcc that also go over this function:

K2000 version 3.4:   http://www.itninja.com/blog/view/wim-storage-freeing-up-space-on-your-k2000-if-you-are-using-wim-s

K2000 version 3.5:   http://www.itninja.com/blog/view/do-you-want-to-store-your-wim-s-externally-with-k2000-v3-5-like-we-did-with-3-4

K2000 version 3.6:   http://www.itninja.com/blog/view/wim-storage-freeing-up-space-on-your-k2000-if-you-are-using-wims-k2000-version-3-6

K2000 version 3.7:   http://www.itninja.com/blog/view/wim-storage-k2000-version-3-7-freeing-up-space-on-your-k2000-if-you-are-using-wims-and-speed-up-deployment-using-network-windows-shares

Other articles:

http://www.itninja.com/blog/view/capturing-wim-s-to-locations-other-than-the-kbox-externally-capturing

http://www.itninja.com/blog/view/capturing-windows-10-wim-s-to-locations-other-than-the-kbox-externally-capturing-using-dism

=================

In order to do this, you must have imported tasks from the K2000 Streaming WIM Toolkit from here:

K2000 Streaming WIM Toolkit


KACE Streaming WIM Toolkit

 

The KACE Streaming WIM Toolkit provides components that allow WIM files to be streamed to the endpoints instead of copying and extracting from the local drive.  This can be useful for environments where disk space is low.  Typical WIM deployments require that the WIM file be copied to the local drive first, then the WIM file is extracted to the partition locally.  To do this however, the endpoint will require over 50% free space available.  Systems with small disk drives and large images will need to utilize this method.  The streaming toolkit will bypass that requirement and extract the WIM file directly to the system.  This can make deployments a bit faster, but the downside is that the streaming WIM deployments cannot utilize multicast.


Using the Streaming Image Templates

While the KACE Streaming WIM Toolkit (KSWIM for short) has a few uses and in this case we are going to use the system image deployment template.  With a standard WIM deployment, the image is injected during the “Deploy System Image” component of the installation plan.  When streaming a WIM you need to use the streaming template that “fakes out” the system into thinking it is applying an image.  The image will actually get unpacked and installed to the hard drive as a post-installation task (mid level – K2000 Boot environment).  Using this method we will alter the post installation task we use to deploy a WIM from a location other than the default image location on the KACE appliance. 

Note:

In order to stream a WIM from another source, the KBE must have access to the WIM file.  This can be done with a simple drive mapping if you have the WIM on an external server.  Alternatively you can place a WIM file in the PETEMP directory on the KACE server if needed.

 


Importing Tasks into K2000

Download the KSWIM from ITNinja here:

http://www.itninja.com/blog/view/kace-streaming-wim-toolkit-kswim

Follow the included instructions to import the tasks into your K2000.  Once imported you will notice templates for streaming images in your post-installation tasks section of the K2000 library.

In this paper we will focus on a simple single partition image but the tasks and image deployments can be easily modified to accommodate multiple partition images.


Understanding the KSWIM tasks

 

Once you have imported the tasks into your K2000, go into the System Images and edit the single partition template and DUPLICATE the task at the bottom of the screen.  DO NOT edit the template so you can use it later if needed.


5keGKK.png

 

 

Once duplicated, setup the new System Image make sure it has the correct partitioning tasks.  We will add the image deployment in a task later on.  If using the driver feed, ensure that this option is checked as it is off by default.  Remove the existing “Apply WIM Stream C Partition” task from the mid-level tasks.

 

CjJbO2.png

 

Locations of WIM files

Next we need to either map a network drive as a post-install (Mid-Level) task if you are storing WIM files external to the K2000.  Create a post install BAT script task that looks like this (modify with your server IP and share, username and password:

AiLeGL.png


This should be the first mid-level task run in your system image sequence if you are going to use an external source for the WIM file.  Copy your WIM file(s) to this share on your server.

Alternatively, we can store WIMs on the K2000 in the PETEMP directory.  Open \\<yourK2>\PETEMP and create an Images directory.  Copy your WIM file(s) into this directory as shown here:

rBTSU3.png


Inserting into an Image Deployment

Once we have the WIM file(s) stored on our external source (or PETEMP folder), we need to make a task to apply the WIM file to the hard drive.  Create a mid-level BAT script task again and use the following command:

Dism /apply-image /imagefile:T:\Images\Win10x64.wim /index:1 /ApplyDir:C:\

In this example we are calling the Win10x64.wim file which is stored in the Images directory on PETEMP.  PETEMP is always mounted as the T: drive in KBE environments.

 

If you are using an external source, then specify the drive you mapped in the mapping task you created.  Using the previous example drive mapping, it might look like this:

Dism /apply-image /imagefile:W:\Win10x64.wim /index:1 /ApplyDir:C:\

 

Note:

If you are using multiple WIM files, specify all commands in the batch file using a single command per each WIM file you need to install.

 

Dism /apply-image /imagefile:T:\Images\Win10x64-CDrive.wim /index:1 /ApplyDir:C:\

 

Dism /apply-image /imagefile:T:\Images\Win10x64-DDrive.wim /index:1 /ApplyDir:D:\

 

 

Modifying the KSWIM template

Once you have the Post Install tasks created, we need to insert them back into our System Image deployment.  A complete install might look like this:

 R3LjJO.png


Running the Deployment

Running the deployment is now like any other image deployment.  You can schedule the image to be deployed or run the deployment from the KBE deployment menu.

ld4Bv3.png

 

Note:

Since the WIM deployment is not a traditional WIM file deployment, the main downside to this method is that the deployment cannot take advantage of multicast deployments.


Conclusion

This document has outlined how to utilize WIM files that you may already be using in conjunction with the K2000 deployment appliance without having to deploy the WIM and then recapture the image in the K2000 appliance.


This document can also be accessed in PDF form here:

Using External WIM files with K2000


Comments

This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ