<?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; Batch Script</title>
	<atom:link href="http://blog.brianleejackson.com/tag/batch-script/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>Run only scripts that you trust. Disable Powershell Message</title>
		<link>http://blog.brianleejackson.com/run-only-scripts-that-you-trust-disable-powershell-message</link>
		<comments>http://blog.brianleejackson.com/run-only-scripts-that-you-trust-disable-powershell-message#comments</comments>
		<pubDate>Tue, 27 Oct 2009 04:05:23 +0000</pubDate>
		<dc:creator>Brian Jackson</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista SP1]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows 7 Beta]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=722</guid>
		<description><![CDATA[If you are like me you have probably run into the following error when trying to run powershell scripts. This becomes very annoying and tedious if you are running different scripts on a regular basis. &#8220;Security Warning &#8211; Run only scripts that you trust. While scripts from the Internet can be useful, this script can [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me you have probably run into the following error when trying to run powershell scripts.  This becomes very annoying and tedious if you are running different scripts on a regular basis.</p>
<blockquote><p>&#8220;Security Warning &#8211; Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your computer. Do you want to run &#8211;.ps1? [D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is &#8220;D&#8221;):</p></blockquote>
<h2>Step #1</h2>
<p>The first thing you need to do is launch Windows Powershell.</p>
<h2>Step #2</h2>
<p>Then enter the following commands:</p>
<blockquote><p>get-executionpolicy</p></blockquote>
<blockquote><p>set-executionpolicy bypass</p></blockquote>
<div id="attachment_728" class="wp-caption alignnone" style="width: 509px"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/10/powershell1.png" alt="Powershell Trust Scripts" title="Powershell Trust Scripts" width="499" height="89" class="size-full wp-image-728" /><p class="wp-caption-text">Powershell Trust Scripts</p></div>
<p>Now launch your script and enjoy not seeing that annoying message come up.</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=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message%20-%20http%3A%2F%2Fblog.brianleejackson.com%2Frun-only-scripts-that-you-trust-disable-powershell-message" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message&amp;t=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message&amp;title=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message&amp;bodytext=If%20you%20are%20like%20me%20you%20have%20probably%20run%20into%20the%20following%20error%20when%20trying%20to%20run%20powershell%20scripts.%20%20This%20becomes%20very%20annoying%20and%20tedious%20if%20you%20are%20running%20different%20scripts%20on%20a%20regular%20basis.%0D%0A%0D%0A%22Security%20Warning%20-%20Run%20only%20scripts%20that%20you" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message&amp;title=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message&amp;notes=If%20you%20are%20like%20me%20you%20have%20probably%20run%20into%20the%20following%20error%20when%20trying%20to%20run%20powershell%20scripts.%20%20This%20becomes%20very%20annoying%20and%20tedious%20if%20you%20are%20running%20different%20scripts%20on%20a%20regular%20basis.%0D%0A%0D%0A%22Security%20Warning%20-%20Run%20only%20scripts%20that%20you" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message&amp;title=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message" 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%2Frun-only-scripts-that-you-trust-disable-powershell-message&amp;title=Run%20only%20scripts%20that%20you%20trust.%20Disable%20Powershell%20Message&amp;annotation=If%20you%20are%20like%20me%20you%20have%20probably%20run%20into%20the%20following%20error%20when%20trying%20to%20run%20powershell%20scripts.%20%20This%20becomes%20very%20annoying%20and%20tedious%20if%20you%20are%20running%20different%20scripts%20on%20a%20regular%20basis.%0D%0A%0D%0A%22Security%20Warning%20-%20Run%20only%20scripts%20that%20you" 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/run-only-scripts-that-you-trust-disable-powershell-message/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Capture and Deploy Image (.wim) Without Sysprep</title>
		<link>http://blog.brianleejackson.com/how-to-capture-and-deploy-image-wim-without-sysprep</link>
		<comments>http://blog.brianleejackson.com/how-to-capture-and-deploy-image-wim-without-sysprep#comments</comments>
		<pubDate>Sun, 09 Aug 2009 01:24:35 +0000</pubDate>
		<dc:creator>Brian Jackson</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WinPE 3.0]]></category>
		<category><![CDATA[.bat]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[GimageX]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows 7 Beta]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=498</guid>
		<description><![CDATA[If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Vista or Windows 7 when not first running sysprep. The problem is that if you try to re-deploy an image of [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Vista or Windows 7 when not first running sysprep. The problem is that if you try to re-deploy an image of a nonsysprepped image of Vista or 7 that the BootMGR will be broken. Follow the steps below to fix this problem.<br />
<div id="attachment_499" class="wp-caption alignnone" style="width: 160px"><a href="http://www.microsoft.com"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/08/without_sysprep.jpg" alt="Microsoft Windows 7 Icon" title="Microsoft Windows 7 Icon" width="150" class="size-full wp-image-499" /></a><p class="wp-caption-text">Microsoft Windows 7 Icon</p></div></p>
<h2>Step #1</h2>
<p>I am assuming you have captured your image already and are ready for deployment. Go ahead and boot up your image deployment software (WinPE 2.0 or WinPE 3.0).</p>
<h2>Step #2</h2>
<p>In my other articles I describe how to use DiskPart and also avoiding the hidden partition before deploying a new image. I suggest reading them.</p>
<h2>Step #3</h2>
<p>After you have deployed your non-sysprepped image you need to run the following commands: (I have a batch file I use to do this).</p>
<blockquote><p>bcdedit /set {default} device partition=c:<br />
bcdedit /set {default} osdevice partition=c:<br />
bcdedit /set {bootmgr} device partition=c:</p></blockquote>
<h2>Step #4</h2>
<p>This will fix the BOOTMGR problem when deploying a non-syprepped image in Vista or 7. Enjoy!</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=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep%20-%20http%3A%2F%2Fblog.brianleejackson.com%2Fhow-to-capture-and-deploy-image-wim-without-sysprep" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep&amp;t=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep&amp;title=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep&amp;bodytext=If%20you%20are%20using%20WinPE%202.0%20or%20WinPE%203.0%20to%20capture%20your%20PC%20images%20%28.wim%20files%29%20and%20deploy%20them%20you%20have%20probably%20run%20into%20a%20little%20problem%20when%20trying%20to%20deploy%20an%20image%20of%20Vista%20or%20Windows%207%20when%20not%20first%20running%20sysprep.%20The%20problem%20is%20that%20if%20you" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep&amp;title=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep&amp;notes=If%20you%20are%20using%20WinPE%202.0%20or%20WinPE%203.0%20to%20capture%20your%20PC%20images%20%28.wim%20files%29%20and%20deploy%20them%20you%20have%20probably%20run%20into%20a%20little%20problem%20when%20trying%20to%20deploy%20an%20image%20of%20Vista%20or%20Windows%207%20when%20not%20first%20running%20sysprep.%20The%20problem%20is%20that%20if%20you" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep&amp;title=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep" 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%2Fhow-to-capture-and-deploy-image-wim-without-sysprep&amp;title=How%20to%20Capture%20and%20Deploy%20Image%20%28.wim%29%20Without%20Sysprep&amp;annotation=If%20you%20are%20using%20WinPE%202.0%20or%20WinPE%203.0%20to%20capture%20your%20PC%20images%20%28.wim%20files%29%20and%20deploy%20them%20you%20have%20probably%20run%20into%20a%20little%20problem%20when%20trying%20to%20deploy%20an%20image%20of%20Vista%20or%20Windows%207%20when%20not%20first%20running%20sysprep.%20The%20problem%20is%20that%20if%20you" 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/how-to-capture-and-deploy-image-wim-without-sysprep/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<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>Java 1.6.0.12 .msi package for distribution</title>
		<link>http://blog.brianleejackson.com/java-16012-msi-package-for-distribution</link>
		<comments>http://blog.brianleejackson.com/java-16012-msi-package-for-distribution#comments</comments>
		<pubDate>Fri, 20 Feb 2009 01:34:19 +0000</pubDate>
		<dc:creator>Brian Jackson</dc:creator>
				<category><![CDATA[MSI Packages]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[.bat]]></category>
		<category><![CDATA[.msi]]></category>
		<category><![CDATA[AdminStudio 9.0]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=122</guid>
		<description><![CDATA[Last msi package I tested today was Java. They also offer the msi package on their website. First you need to download their &#8220;offline installation&#8221; executable here. Then run the executable but don&#8217;t go through any additional prompts. Navigate to LocalAppData folder (the user&#8217;s Application Data folder). The location of the LocalAppData folder differs for [...]]]></description>
			<content:encoded><![CDATA[<p>Last msi package I tested today was Java.  They also offer the msi package on their website.  First you need to download their &#8220;offline installation&#8221; executable <a href="http://javadl.sun.com/webapps/download/AutoDL?BundleId=27983">here</a>.  Then run the executable but don&#8217;t go through any additional prompts. Navigate to LocalAppData folder (the user&#8217;s Application Data folder). The location of the LocalAppData folder differs for each Windows platform.</p>
<p>    * Windows Vista: C:\Users\<User>\AppData\LocalLow\Sun\Java\jre1.6.0_12<br />
    * Windows XP: C:\Documents and Settings\<User>\Local Settings\Application Data<br />
    * Windows 2000 C:\Documents and Settings\<User>\Application Data</p>
<p>Copy the contents out of that folder to where you are keeping your msi distribution packages.  The folder should look like the picture below without the install.bat which is my batch file.<br />
<div id="attachment_125" class="wp-caption alignnone" style="width: 395px"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/02/capture1.jpg" alt="Java Directory Contents" title="Java Directory Contents" width="385" height="160" class="size-full wp-image-125" /><p class="wp-caption-text">Java Directory Contents</p></div></p>
<p>Here is the command I used for a quiet install for multiple users:</p>
<p><code>msiexec /i "jre1.6.0_12.msi" SETMULTIUSER=1 /qb"</code></p>
<p>Works fine for multiple users under windows 2000, XP, and Vista.  More MSI package instructions coming tomorrow along with some tutorials on ImageX/Sysprep for Vista.</p>
<div id="attachment_131" class="wp-caption alignnone" style="width: 373px"><img src="http://blog.brianleejackson.com/wp-content/uploads/2009/02/javalogo.png" alt="Java 1.6 Logo" title="Java 1.6 Logo" width="363" height="299" class="size-full wp-image-131" /><p class="wp-caption-text">Java 1.6 Logo</p></div>

<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=Java%201.6.0.12%20.msi%20package%20for%20distribution%20-%20http%3A%2F%2Fblog.brianleejackson.com%2Fjava-16012-msi-package-for-distribution" 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%2Fjava-16012-msi-package-for-distribution&amp;t=Java%201.6.0.12%20.msi%20package%20for%20distribution" 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%2Fjava-16012-msi-package-for-distribution&amp;title=Java%201.6.0.12%20.msi%20package%20for%20distribution&amp;bodytext=Last%20msi%20package%20I%20tested%20today%20was%20Java.%20%20They%20also%20offer%20the%20msi%20package%20on%20their%20website.%20%20First%20you%20need%20to%20download%20their%20%22offline%20installation%22%20executable%20here.%20%20Then%20run%20the%20executable%20but%20don%27t%20go%20through%20any%20additional%20prompts.%20Navigate%20to%20L" 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%2Fjava-16012-msi-package-for-distribution&amp;title=Java%201.6.0.12%20.msi%20package%20for%20distribution&amp;notes=Last%20msi%20package%20I%20tested%20today%20was%20Java.%20%20They%20also%20offer%20the%20msi%20package%20on%20their%20website.%20%20First%20you%20need%20to%20download%20their%20%22offline%20installation%22%20executable%20here.%20%20Then%20run%20the%20executable%20but%20don%27t%20go%20through%20any%20additional%20prompts.%20Navigate%20to%20L" 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%2Fjava-16012-msi-package-for-distribution" 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%2Fjava-16012-msi-package-for-distribution&amp;title=Java%201.6.0.12%20.msi%20package%20for%20distribution" 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%2Fjava-16012-msi-package-for-distribution&amp;title=Java%201.6.0.12%20.msi%20package%20for%20distribution&amp;annotation=Last%20msi%20package%20I%20tested%20today%20was%20Java.%20%20They%20also%20offer%20the%20msi%20package%20on%20their%20website.%20%20First%20you%20need%20to%20download%20their%20%22offline%20installation%22%20executable%20here.%20%20Then%20run%20the%20executable%20but%20don%27t%20go%20through%20any%20additional%20prompts.%20Navigate%20to%20L" 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/java-16012-msi-package-for-distribution/feed</wfw:commentRss>
		<slash:comments>5</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>
