<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog.BrianLeeJackson.com &#187; xcopy</title>
	<atom:link href="http://blog.brianleejackson.com/tag/xcopy/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.brianleejackson.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 Jun 2010 17:05:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Deployment Image Servicing and Management (DISM) &#8211; WinPE 3.0 Boot Environment</title>
		<link>http://blog.brianleejackson.com/deployment-image-servicing-and-management-dism-winpe-3-0-boot-environment</link>
		<comments>http://blog.brianleejackson.com/deployment-image-servicing-and-management-dism-winpe-3-0-boot-environment#comments</comments>
		<pubDate>Sat, 20 Jun 2009 05:08:38 +0000</pubDate>
		<dc:creator>Brian Jackson</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WinPE 3.0]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[GimageX]]></category>
		<category><![CDATA[ImageX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[xcopy]]></category>

		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=224</guid>
		<description><![CDATA[I recently compiled a new library of commands since the upgrade from WinPE 2.0 to WinPE 3.0. With Windows 7 coming along they released a new way to create bootable USB sticks using Deployment Image Servicing and Management (DISM.exe). You might be asking yourself, what could I use this for? We are using it at [...]]]></description>
			<content:encoded><![CDATA[<p>I recently compiled a new library of commands since the upgrade from WinPE 2.0 to WinPE 3.0.  With Windows 7 coming along they released a new way to create bootable USB sticks using Deployment Image Servicing and Management (DISM.exe).  You might be asking yourself, what could I use this for?  We are using it at my work to re-image computers, capture backup images, mount images, etc.  There are many other uses for it but I will not get into that here.  I have literally done this procedure a couple hundred times.  In a future article I will show you how to write a simple batch script to automate this process.  But it helps to understand what is going on with each command in case you have trouble.  Batch scripts never work 100% of the time.</p>
<p><strong>You will need the following to proceed:</strong><br />
<del datetime="2009-08-27T06:19:00+00:00">Windows® Automated Installation Kit (AIK) for Windows® 7 RC (<a href="http://www.microsoft.com/downloads/details.aspx?familyid=60A07E71-0ACB-453A-8035-D30EAD27EF72&#038;displaylang=en">Download from Microsoft</a>) : 05.01.09</del></p>
<li> Windows® Automated Installation Kit (AIK) for Windows® 7 RC (<a href="http://www.microsoft.com/downloads/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34&#038;displaylang=en">Download from Microsoft</a>) : <strong>08.06.09</strong></li>
<li>Bootable Flash drive (500MB or larger)</li>
<p>Once you have installed WAIK then you will need to browse to your start menu and click on &#8220;Deployment Tools Command Prompt&#8221;.  I have provided a picture below.<br />
<div id="attachment_232" class="wp-caption alignnone" style="width: 413px"><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=60a07e71-0acb-453a-8035-d30ead27ef72"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/06/dism.png" alt="DISM" title="Deployment Tools Command Prompt" width="403" height="99" class="size-full wp-image-232" /></a><p class="wp-caption-text">DISM</p></div></p>
<p>Once you have launched DTCP you will need to follow through the commands I have compiled below.  The first one I have provided a screenshot.</p>
<h2>DISM &#8211; Step #1 &#8211; Prep/Cleanup</h2>
<blockquote><p>DISM /Cleanup-Wim</p></blockquote>
<p>The DISM cleanup command simply cleans up any previous wims/mounts you have been working with.  If you do this a lot, you will need to use this command otherwise you will start receiving errors from previous wims possibly still left on the system.</p>
<div id="attachment_237" class="wp-caption alignnone" style="width: 519px"><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=60a07e71-0acb-453a-8035-d30ead27ef72"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/06/dism21.png" alt="DISM Step #1" title="Deployment Tools Command Prompt - Step #1" width="509" height="166" class="size-full wp-image-237" /></a><p class="wp-caption-text">DISM Step #1</p></div>
<h2>DISM &#8211; Step #2 &#8211; Copy WinPE 3.0 to your local C Drive</h2>
<blockquote><p>copype.cmd x86 c:\winpe_x86<br />
copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim </p></blockquote>
<p>This creates a winpe_x86 folder on your C: drive and then copies the contents of the WinPE folder from the WAIK installation to your folder.</p>
<h2>DISM &#8211; Step #3 &#8211; Mounting .Wim File on your local C Drive</h2>
<blockquote><p>Dism /Mount-Wim /WimFile:C:\winpe_x86\winpe.wim /index:1 /MountDir:C:\winpe_x86\mount </p></blockquote>
<p>This command mounts the wim file that was copied over in step #2 so that you can browse the system32 folder and insert your custom scripts, etc.</p>
<h2>DISM &#8211; Step #4 &#8211; Adding Packages to your WIM</h2>
<blockquote><p>Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:&#8221;C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab&#8221;<br />
Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:&#8221;C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\en-us\winpe-wmi_en-us.cab&#8221;</p></blockquote>
<p>There are many packages you can add to your WINPE boot environment, these are two I always add to mine.</p>
<h2>DISM &#8211; Step #5 &#8211; Adding Drivers to WinPE</h2>
<blockquote><p>DISM /image:c:\winpe_x86\mount /Add-Driver /driver:C:\YOUR_FOLDER_OF_INF_DRIVERS\ /recurse</p></blockquote>
<p>A nice addition to DISM over the previous peimg command in WINPE 2.0 is the ability to add drivers with the /recurse command.  The /recurse command now allows us to simply have all of our drivers in their own directory and tell DISM to scan the root folder and everything beneath it.  The number of sub directories won&#8217;t matter.  I have a huge library of drivers, for example, you will want to have the network and vga drivers for anything that you boot up to in the WinPE environment.  By adding the network driver to your WinPE boot environment, it allows you to access network shares for capturing and deploying .wim images.  </p>
<h2>DISM &#8211; Step #6 &#8211; Adding Custom Scripts, Batch Files, Etc.</h2>
<blockquote><p>xcopy /e /y &#8220;C:\YOUR_FOLDER_OF_SCRIPTS&#8221; C:\winpe_x86\mount\Windows\System32\</p></blockquote>
<p>Without adding anything to your WinPE boot environment you will simply be left with a  command prompt window when booting to it on a computer.  I have added over 15 different batch scripts with different functions. <a href="http://blog.brianleejackson.com/winpe-3-0-boot-environment-scripts"> Click here</a> to download my WinPE discs.  One thing I highly suggest adding is GImageX.  <a href="http://www.autoitscript.com/gimagex/">GImageX</a> is a very small GUI program that you can add to be able to capture, deploy, and mount images within the WinPE boot environment.  I have provided a picture of GImageX GUI below.</p>
<div id="attachment_258" class="wp-caption alignnone" style="width: 549px"><a href="http://www.autoitscript.com/gimagex/"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/06/gimagex.png" alt="For WinPE 3.0 Boot Environment - Mount, Deploy, Capture Images" title="GImageX GUI - For WinPE 3.0 Boot Environment" width="539" height="463" class="size-full wp-image-258" /></a><p class="wp-caption-text">For WinPE 3.0 Boot Environment - Mount, Deploy, Capture Images</p></div>
<h2>DISM &#8211; Step #7 &#8211; Unmounting your finished .WIM</h2>
<blockquote><p>Dism /Unmount-Wim /MountDir:C:\winpe_x86\mount\ /Commit</p></blockquote>
<p>This commits the final changes to your .WIM file and anything you added to it.  It is very important to unmount your .WIM file when you have finished.</p>
<h2>DISM &#8211; Step #8 &#8211; Copies your .WIM to Boot ISO</h2>
<blockquote><p>copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim /Y</p></blockquote>
<h2>DISM &#8211; Step #9 &#8211; Creates bootable .ISO of WinPE 3.0</h2>
<blockquote><p>oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso</p></blockquote>
<p>Now, if you are wanting to use a flash stick you will need to format a flash stick in a certain way, and then simply copy the contents of the c:\winpe_x86\ISO\ to your flash drive.  And thats it!  Stick it in a computer, restart, and boot to it.  The .ISO made in step #9 can simply be burned to a CD with Nero or other program capable of making bootable CD and then you can boot to it in the same way.</p>
<h2>DISM &#8211; Step #10 &#8211; Optional Backup</h2>
<blockquote><p>xcopy /e /y &#8220;C:\winpe_x86&#8243; E:\BACKUP_FOLDER_FOR_LATEST_BOOT_BUILD\ </p></blockquote>
<p>This step is optional, but I always like to keep a backup for the future.  Also, if you ever need to create another bootable flash stick or CD you can simply go to your backup and grab the files.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://twitter.com/home?status=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment%20-%20http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment" title="Twitter"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment&amp;t=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment" title="Facebook"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment&amp;title=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment&amp;bodytext=I%20recently%20compiled%20a%20new%20library%20of%20commands%20since%20the%20upgrade%20from%20WinPE%202.0%20to%20WinPE%203.0.%20%20With%20Windows%207%20coming%20along%20they%20released%20a%20new%20way%20to%20create%20bootable%20USB%20sticks%20using%20Deployment%20Image%20Servicing%20and%20Management%20%28DISM.exe%29.%20%20You%20might%20be%20" title="Digg"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment&amp;title=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment&amp;notes=I%20recently%20compiled%20a%20new%20library%20of%20commands%20since%20the%20upgrade%20from%20WinPE%202.0%20to%20WinPE%203.0.%20%20With%20Windows%207%20coming%20along%20they%20released%20a%20new%20way%20to%20create%20bootable%20USB%20sticks%20using%20Deployment%20Image%20Servicing%20and%20Management%20%28DISM.exe%29.%20%20You%20might%20be%20" title="del.icio.us"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment" title="Technorati"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment&amp;title=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment" title="StumbleUpon"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.brianleejackson.com%2Fdeployment-image-servicing-and-management-dism-winpe-3-0-boot-environment&amp;title=Deployment%20Image%20Servicing%20and%20Management%20%28DISM%29%20-%20WinPE%203.0%20Boot%20Environment&amp;annotation=I%20recently%20compiled%20a%20new%20library%20of%20commands%20since%20the%20upgrade%20from%20WinPE%202.0%20to%20WinPE%203.0.%20%20With%20Windows%207%20coming%20along%20they%20released%20a%20new%20way%20to%20create%20bootable%20USB%20sticks%20using%20Deployment%20Image%20Servicing%20and%20Management%20%28DISM.exe%29.%20%20You%20might%20be%20" title="Google Bookmarks"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.brianleejackson.com/deployment-image-servicing-and-management-dism-winpe-3-0-boot-environment/feed</wfw:commentRss>
		<slash:comments>112</slash:comments>
		</item>
		<item>
		<title>Batch Script &#8211; Backup folder over network</title>
		<link>http://blog.brianleejackson.com/batch-script-backup-folder-over-network</link>
		<comments>http://blog.brianleejackson.com/batch-script-backup-folder-over-network#comments</comments>
		<pubDate>Mon, 19 Jan 2009 21:16:17 +0000</pubDate>
		<dc:creator>Brian Jackson</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[.bat]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[xcopy]]></category>

		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=33</guid>
		<description><![CDATA[Here is a batch script I use to make a backup of my laptop. I have it backing up multiple folders, but here is example of backing up a laptop folder (My Thunderbird Profile) to a networked computer share. Will work both ways. for /f &#8220;tokens=2-4 delims=/ &#8221; %%g in (&#8216;date /t&#8217;) do ( set [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a batch script I use to make a backup of my laptop. I have it backing up multiple folders, but here is example of backing up a laptop folder (My Thunderbird Profile) to a networked computer share. Will work both ways.</p>
<blockquote><p>for /f &#8220;tokens=2-4 delims=/ &#8221; %%g in (&#8216;date /t&#8217;) do (<br />
set mm=%%g<br />
set dd=%%h<br />
set yy=%%i<br />
)</p>
<p>if exist &#8220;\\IPADDESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%&#8221; (<br />
rd /S /Q &#8220;\\IPADDRESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%&#8221;<br />
)</p>
<p>xcopy &#8220;C:\Users\Administrator\AppData\Roaming\Thunderbird\Profiles&#8221;<br />
&#8220;\\IPADDRESS\c$\Users\Administrator\Documents\My Laptop Backups\%mm%-%dd%-%yy%&#8221; /s /i</p></blockquote>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://twitter.com/home?status=Batch%20Script%20-%20Backup%20folder%20over%20network%20-%20http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network" title="Twitter"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network&amp;t=Batch%20Script%20-%20Backup%20folder%20over%20network" title="Facebook"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network&amp;title=Batch%20Script%20-%20Backup%20folder%20over%20network&amp;bodytext=Here%20is%20a%20batch%20script%20I%20use%20to%20make%20a%20backup%20of%20my%20laptop.%20I%20have%20it%20backing%20up%20multiple%20folders%2C%20but%20here%20is%20example%20of%20backing%20up%20a%20laptop%20folder%20%28My%20Thunderbird%20Profile%29%20to%20a%20networked%20computer%20share.%20Will%20work%20both%20ways.%0D%0A%0D%0Afor%20%2Ff%20%22tokens%3D2-4%20de" title="Digg"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network&amp;title=Batch%20Script%20-%20Backup%20folder%20over%20network&amp;notes=Here%20is%20a%20batch%20script%20I%20use%20to%20make%20a%20backup%20of%20my%20laptop.%20I%20have%20it%20backing%20up%20multiple%20folders%2C%20but%20here%20is%20example%20of%20backing%20up%20a%20laptop%20folder%20%28My%20Thunderbird%20Profile%29%20to%20a%20networked%20computer%20share.%20Will%20work%20both%20ways.%0D%0A%0D%0Afor%20%2Ff%20%22tokens%3D2-4%20de" title="del.icio.us"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network" title="Technorati"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network&amp;title=Batch%20Script%20-%20Backup%20folder%20over%20network" title="StumbleUpon"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.brianleejackson.com%2Fbatch-script-backup-folder-over-network&amp;title=Batch%20Script%20-%20Backup%20folder%20over%20network&amp;annotation=Here%20is%20a%20batch%20script%20I%20use%20to%20make%20a%20backup%20of%20my%20laptop.%20I%20have%20it%20backing%20up%20multiple%20folders%2C%20but%20here%20is%20example%20of%20backing%20up%20a%20laptop%20folder%20%28My%20Thunderbird%20Profile%29%20to%20a%20networked%20computer%20share.%20Will%20work%20both%20ways.%0D%0A%0D%0Afor%20%2Ff%20%22tokens%3D2-4%20de" title="Google Bookmarks"><img src="http://blog.brianleejackson.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.brianleejackson.com/batch-script-backup-folder-over-network/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
