<?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"
	>

<channel>
	<title>Digital Formula</title>
	<atom:link href="http://www.digitalformula.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalformula.net</link>
	<description>www.digitalformula.net</description>
	<pubDate>Wed, 16 Jul 2008 21:17:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Windows XP unattended install keeps asking for Plug and Play monitor driver</title>
		<link>http://www.digitalformula.net/infrastructure/windows-xp-unattended-install-keeps-asking-for-plug-and-play-monitor-driver/</link>
		<comments>http://www.digitalformula.net/infrastructure/windows-xp-unattended-install-keeps-asking-for-plug-and-play-monitor-driver/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 00:57:39 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[monitor]]></category>

		<category><![CDATA[plug and play]]></category>

		<category><![CDATA[plug and play monitor]]></category>

		<category><![CDATA[unattend.txt]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=243</guid>
		<description><![CDATA[As far as I know the majority of businesses using the Windows platform are still using Windows XP and haven&#8217;t made the move to Windows Vista yet.  If this is the case in your environment there&#8217;s a good chance you&#8217;re using some sort of deployment tool to manage desktop/laptop rollouts.  Sometimes, though, you [...]]]></description>
			<content:encoded><![CDATA[<p>As far as I know the majority of businesses using the Windows platform are still using Windows XP and haven&#8217;t made the move to Windows Vista yet.  If this is the case in your environment there&#8217;s a good chance you&#8217;re using some sort of deployment tool to manage desktop/laptop rollouts.  Sometimes, though, you receive a message during the Windows XP unattended install asking for a driver for the &#8216;Plug and Play Monitor&#8217;.  Here&#8217;s why.<span id="more-243"></span></p>
<p>This is caused by a problem with the vendor-provided Video.inf file.  The Microsoft knowledge base article that I&#8217;ll talk about in a minute says &quot;If a driver is signed, but the driver does not include an .inf file that describes child devices, such as monitors, the installation may stop responding.&quot;</p>
<p>The fix is get the hotfix mentioned in Microsoft knowledge base article <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;883667" onclick="javascript:pageTracker._trackPageview ('/outbound/support.microsoft.com');">KB883667</a> and integrate it into your Windows XP source directory.  The hotfix is freely available but you have to ask for it to be emailed to you.</p>
<p>Once you&#8217;ve got the patch it&#8217;s simply a case of integrating the updated files into your Windows XP installation source.  Let&#8217;s assume your Windows XP installation source is located in C:\Source\WindowsXP with the actual files being in C:\Source\WindowsXP\i386 (that will make sense in a minute).  The patch executable WindowsXP-KB883667-x86-enu.exe is located in C:\Source\Hotfixes.</p>
<p>1.  Open a command prompt and navigate to C:\Source\Hotfixes<br />
2.  Run the following command.</p>
<div class="special">WindowsXP-KB883667-x86-enu.exe /integrate:C:\Source\WindowsXP</div>
<p>It&#8217;s important that you don&#8217;t put the i386 part on the end of the specified directory above as the integrated installation will look in C:\Source\WindowsXP for a directory called i386 that contains the required installation files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/windows-xp-unattended-install-keeps-asking-for-plug-and-play-monitor-driver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Error 29506 when installing SQL Server 2005 Management Studio Express on Vista</title>
		<link>http://www.digitalformula.net/databases/error-29506-when-installing-sql-server-2005-management-studio-express-on-vista/</link>
		<comments>http://www.digitalformula.net/databases/error-29506-when-installing-sql-server-2005-management-studio-express-on-vista/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 01:02:54 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Annoyances]]></category>

		<category><![CDATA[Applications]]></category>

		<category><![CDATA[Databases]]></category>

		<category><![CDATA[Databases - MSSQL Server]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Vista]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[29506]]></category>

		<category><![CDATA[microsoft sql server management studio express setup]]></category>

		<category><![CDATA[msi]]></category>

		<category><![CDATA[sql server 2005 management studio express]]></category>

		<category><![CDATA[ssmsee]]></category>

		<category><![CDATA[the error code is 29506]]></category>

		<category><![CDATA[this may indicate a problem with this package]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=241</guid>
		<description><![CDATA[If you need to install SQL Server 2005 Management Studio Express on Windows Vista you might receive an error like the screenshot below.

This is due to the new Vista feature called User Account Control or UAC.  The fix is pretty simple and there are 2 different ways of implementing it.
1. Under &#8216;Accessories&#8217; from &#8216;All [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to install SQL Server 2005 Management Studio Express on Windows Vista you might receive an error like the screenshot below.<span id="more-241"></span></p>
<p><img src="http://www.digitalformula.net/wp-content/uploads/2008/06/ss.jpg" alt="SSMSE installation error on Windows Vista" title="SSMSE installation error on Windows Vista" width="366" height="171" class="alignnone size-full wp-image-242" /></p>
<p>This is due to the new Vista feature called User Account Control or UAC.  The fix is pretty simple and there are 2 different ways of implementing it.</p>
<div class="special">1. Under &#8216;Accessories&#8217; from &#8216;All Programs&#8217;, right-click the Command Prompt shortcut and select &#8216;Run as Administrator&#8217;.  Accept the UAC warning when prompted.<br />
2. From the command prompt change to the directory that holds the SSMSEE installation .MSI file.<br />
3. Enter the command .\SQLServer2005_SSMSEE_x64.msi if you&#8217;re running Vista x64 (64-bit) or .\SQLServer2005_SSMSEE.msi if you&#8217;re running Vista x86 (32-bit)<br />
4. Press enter and complete the installation as normal.</div>
<p>The second method is to disable UAC completely but I wouldn&#8217;t recommend it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/databases/error-29506-when-installing-sql-server-2005-management-studio-express-on-vista/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of SNMP on Windows Server 2003</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-snmp-on-windows-server-2003/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-snmp-on-windows-server-2003/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 05:23:03 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Scripts - MS-DOS]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[answer file]]></category>

		<category><![CDATA[snmp]]></category>

		<category><![CDATA[sysocmgr]]></category>

		<category><![CDATA[unattended install]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=240</guid>
		<description><![CDATA[Continuing with the recent history of unattended installation articles, this post contains instructions on how to install SNMP quickly and quietly from the command line.  SNMP is useful, for example, when you need to tap into the server with monitoring tools like MRTG, Op Manager, IP Sentry etc.
To perform an unattended installation of SNMP [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing with the recent history of unattended installation articles, this post contains instructions on how to install SNMP quickly and quietly from the command line.  SNMP is useful, for example, when you need to tap into the server with monitoring tools like <a href="http://oss.oetiker.ch/mrtg/" onclick="javascript:pageTracker._trackPageview ('/outbound/oss.oetiker.ch');">MRTG</a>, <a href="http://manageengine.adventnet.com/products/opmanager/" onclick="javascript:pageTracker._trackPageview ('/outbound/manageengine.adventnet.com');">Op Manager</a>, <a href="http://www.ipsentry.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.ipsentry.com');">IP Sentry</a> etc.<span id="more-240"></span></p>
<p>To perform an unattended installation of SNMP you need 2 things.  First you need to create an answer file for the installation program (Sysocmgr.exe) to get the configuration from.  Here&#8217;s my sample file.</p>
<div class="special">[NetOptionalComponents]<br />
SNMP=1<br />
[SNMP]<br />
Contact_Name=John Doe<br />
Location=Brisbane, Australia<br />
Service = Physical, Applications, End-to-End<br />
Community_Name=Public<br />
Send_Authentication=Yes<br />
Accept_CommunityName=Public:Read_Only<br />
Any_Host=Yes</div>
<p>Once you&#8217;ve got the answer file sorted, how do you use it?  Easy.  If you save your answer file as C:\Scripts\snmp.inf you run a command like this one (obviously you&#8217;ll need to change the path and file names if you name and save it somewhere/something else).</p>
<div class="special">C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:C:\Scripts\snmp.inf</div>
<p>The above command will run a completely unattended (but not silent!) installation of the SNMP component of Windows.</p>
<p>Please note that unless you&#8217;ve got the Windows installation files as well as the installation files for any service packs available for Sysocmgr.exe to find you may be prompted for their location during the installation.  There are ways around this but I&#8217;ll get to those in another post.</p>
<p>And here is a sample script to do the whole lot with one click.</p>
<div class="special">@echo off<br />
:: Perform an unattended install of SNMP<br />
::<br />
:: Chris Rasmussen<br />
:: June 2008<br />
::<br />
:: Changes:<br />
::<br />
:: June 19 2008 - Created script</p>
<p>:: Install SNMP<br />
cls<br />
echo Installing SNMP &#8230;<br />
echo.<br />
C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:C:\Scripts\snmp.inf</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-snmp-on-windows-server-2003/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Old school DOS command for file clean-up</title>
		<link>http://www.digitalformula.net/infrastructure/old-school-dos-command-for-file-clean-up/</link>
		<comments>http://www.digitalformula.net/infrastructure/old-school-dos-command-for-file-clean-up/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 00:29:13 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Scripts - MS-DOS]]></category>

		<category><![CDATA[cleanup]]></category>

		<category><![CDATA[dos]]></category>

		<category><![CDATA[dos command]]></category>

		<category><![CDATA[dos for command]]></category>

		<category><![CDATA[for]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=237</guid>
		<description><![CDATA[It&#8217;s time for a bit of a step back now - to the days of DOS commands.  Let&#8217;s say you want to delete all files matching a file pattern.  What do you do?  I&#8217;m talking about something slightly more useful and complex than &#8216;del *.*&#8217; &#8230;
With Windows Explorer hanging about nowadays the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time for a bit of a step back now - to the days of DOS commands.  Let&#8217;s say you want to delete all files matching a file pattern.  What do you do?  I&#8217;m talking about something slightly more useful and complex than &#8216;del *.*&#8217; &#8230;<span id="more-237"></span></p>
<p>With Windows Explorer hanging about nowadays the solution might seem pretty simple.  Just do a file search on the drive or folder you want to clean up and delete the files it finds.  Ok, that might work.  What if you want to exclude certain folders?  What if you want to schedule the job?  What if you want to script it?  Luckily DOS provides the &#8216;for&#8217; command that you can use for this.  Consider the following directory structure.</p>
<p><img src="http://www.digitalformula.net/wp-content/uploads/2008/06/folder-structure.jpg" alt="" title="Folder structure - Folders Only" width="429" height="372" class="alignnone size-full wp-image-238" /></p>
<p>The folders above contain the following files.</p>
<p><img src="http://www.digitalformula.net/wp-content/uploads/2008/06/folder-structure-files.jpg" alt="" title="Folder structure - Files &#038; Folders" width="429" height="372" class="alignnone size-full wp-image-239" /></p>
<p>You can see that each folder contains some .TXT files, some .ZIP files and a couple of sub folders.  In this example we want to delete all the .ZIP files (they&#8217;re archives) but we also want to keep a list of the files that were deleted as well as a log file of the commands that were run to delete them.  We also want to replace the files with a new folder that matches the name of the .ZIP file but without the .ZIP extension.  Sure, you could write a PowerShell or VB script to do this but you can&#8217;t get it done with a single line.  With DOS &#8216;for&#8217; commands, however, you can.  Here&#8217;s how.</p>
<div class="special">for /D %d in (device*.*) do for %z in (&#8221;%d\*.zip&#8221;) do @echo mkdir &#8220;%d\%~nz&#8221; >> .\cleanup_commands.txt | mkdir &#8220;%d\%~nz&#8221; | @echo %z >> .\cleanup_files.txt | @echo del &#8220;%z&#8221; >> .\cleanup_commands.txt | del &#8220;%z&#8221;</div>
<p>WTF you might be thinking?  That looks like a load of rubbish.  The first thing to know is that if you want to run the above command from a batch file you need to replace all occurrences of % with %% - do that now if you&#8217;re adding the command to a batch file.  Here&#8217;s what each part means, assuming you&#8217;re running the command from the directory you want to clean up.</p>
<p><strong>for /D %d in (device*.*)</strong> - Go through all sub-directories in the current directory (/D indicates that the command should look at directories only)<br />
<strong>do for %z in (&#8221;%d\*.zip&#8221;)</strong> - For each of the sub-directories found in the command above go through the list of all files with a .ZIP extension<br />
<strong>do @echo mkdir &#8220;%d\%~nz&#8221; >> .\cleanup_commands.txt</strong> - For each of the .ZIP files found echo the command that would create the new directory that matches the name of the .ZIP file *without* the .ZIP extension to a file called cleanup_commands.txt in the currect directory<br />
<strong>| mkdir &#8220;%d\%~nz&#8221;</strong> - For each of the .ZIP files found create a new directory in the appropriate sub-directory that matches the name of the .ZIP file *without* the .ZIP extension<br />
<strong>| @echo %z >> .\cleanup_files.txt</strong> - For each of the .ZIP files found echo the name of the .ZIP file to a file called cleanup_files.txt in the current directory<br />
<strong>| @echo del &#8220;%z&#8221; >> .\cleanup_commands.txt</strong> - For each of the .ZIP files found echo the command that will delete the file to a file called .\cleanup_commands.txt in the current directory<br />
<strong>| del &#8220;%z&#8221;</strong> - Delete the .ZIP file</p>
<p>And now here&#8217;s a more granular explanation of what certain parts of each command mean.</p>
<p><strong>for /D</strong> - For each directory ONLY<br />
<strong>%d</strong> - The variable that will refer to each directory later<br />
<strong>(device*.*)</strong> - Only deal with directories that match the pattern device*.*<br />
<strong>%z</strong> - The variable that will refer to each .ZIP file later<br />
<strong>(&#8221;%d\*.zip&#8221;)</strong> - Only deal with files that match the pattern device*.*\*.zip<br />
<strong>&#8220;%d\%~nz&#8221;</strong> - %~nz means only return the name of the file WITHOUT the file extension</p>
<p>Note - the | (pipe) symbol combines more than 1 command onto a single line in DOS.  The quotes are also important because in the example above the directory names contain spaces.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/old-school-dos-command-for-file-clean-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Post-build Windows unattended installation script</title>
		<link>http://www.digitalformula.net/infrastructure/post-build-windows-unattended-installation-script/</link>
		<comments>http://www.digitalformula.net/infrastructure/post-build-windows-unattended-installation-script/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 00:44:03 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[IIS]]></category>

		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Scripts - MS-DOS]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[.net]]></category>

		<category><![CDATA[.net framework]]></category>

		<category><![CDATA[.net framework 2.0]]></category>

		<category><![CDATA[.net framework 2.0 sp1]]></category>

		<category><![CDATA[answer]]></category>

		<category><![CDATA[answer file]]></category>

		<category><![CDATA[automatic reboot]]></category>

		<category><![CDATA[iis6]]></category>

		<category><![CDATA[post]]></category>

		<category><![CDATA[post-build]]></category>

		<category><![CDATA[unattend]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=236</guid>
		<description><![CDATA[The last few articles on Digital Formula have been about unattended installations of various Windows components and add-ons.  You&#8217;ll get most use out of these articles if you take the steps described in them and make up a post-build script that you can run when Windows has finished installing.
The example in this article is [...]]]></description>
			<content:encoded><![CDATA[<p>The last few articles on <a href="http://www.digitalformula.net/">Digital Formula</a> have been about unattended installations of various Windows components and add-ons.  You&#8217;ll get most use out of these articles if you take the steps described in them and make up a post-build script that you can run when Windows has finished installing.<span id="more-236"></span></p>
<p>The example in this article is for a Windows Server 2003 server that already had a base build of Windows Server 2003 installed along with <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=95ac1610-c232-4644-b828-c55eec605d55&#038;DisplayLang=en" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">Windows Server 2003 Service Pack 2</a>, the most current service pack at the time this article was written (June 2008).  It&#8217;s highly recommended to make sure all the latest critical updates are applied to your system too.  I&#8217;m aiming this article at Windows Server 2003 because it&#8217;s still far more widely used than Windows Server 2008 as of June 2008.  I&#8217;m also assuming you&#8217;ve already downloaded the necessary installation files for the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&#038;displaylang=en" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">.NET Framework 2.0 x86</a>, <a href="http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&#038;displaylang=en" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">.NET Framework 2.0 SP1 x86</a> and <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">Windows Powershell 1.0</a>.  I&#8217;m also assuming you&#8217;ve got access to the Windows Server 2003 installation media if it&#8217;s needed (e.g. for the IIS6 installation).</p>
<p>The sample script below is pretty basic but you can see how combining a couple of unattended installations can speed up the build of a Windows server.  It will do the following things.</p>
<p>- An unattended installation of Microsoft .NET Framework 2.0.<br />
- An unattended installation of Microsoft .NET Framework 2.0 Service Pack 1.<br />
- An unattended installation of Windows PowerShell 1.0.<br />
- An unattended installation of IIS6 (see my article on <a href="http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis6/">how to perform an unattended installation of IIS6</a> for details on how to create your answer file).<br />
- Automatically reboot the server when the above installations have finished.</p>
<p>And now, the script.</p>
<div class="special">@echo off</p>
<p>:: Do some post-build stuff<br />
::<br />
:: Chris Rasmussen<br />
:: June 2008<br />
::<br />
:: Changes:<br />
::</p>
<p>:: Install the .NET Framework 2.0<br />
echo Installing .NET Framework 2.0 &#8230;<br />
echo.<br />
&#8220;C:\Install\dotnetfx.exe&#8221; /q:a /c:&#8221;install.exe /qb!&#8221;</p>
<p>:: Install the .NET Framework 2.0 SP1<br />
echo Installing .NET Framework 2.0 SP1 &#8230;<br />
echo.<br />
&#8220;C:\Install\NetFx20SP1_x86.exe&#8221; /qb /norestart</p>
<p>:: Install Windows PowerShell 1.0<br />
echo Installing Windows PowerShell 1.0 &#8230;<br />
echo.<br />
&#8220;C:\Install\WindowsServer2003-KB926139-x86-ENU.exe&#8221; /passive /norestart<br />
echo.</p>
<p>:: Install IIS6<br />
echo Installing IIS6 &#8230;<br />
echo.<br />
C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:C:\Install\iis6.inf<br />
echo.</p>
<p>:: Reboot the server after 10 seconds with an informative message<br />
echo Done!  Rebooting &#8230;<br />
echo.<br />
shutdown /r /t: 10 /f /c &#8220;Post-build automatic reboot&#8221;</p></div>
<p>I&#8217;ll put another article up soon about doing the same sort of thing but for Windows Vista/Windows Server 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/post-build-windows-unattended-installation-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of IIS7</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis7/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis7/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 11:13:43 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[IIS]]></category>

		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[iis7]]></category>

		<category><![CDATA[pkgmgr]]></category>

		<category><![CDATA[pkgmgr.exe]]></category>

		<category><![CDATA[silent]]></category>

		<category><![CDATA[unattend]]></category>

		<category><![CDATA[unattend xml]]></category>

		<category><![CDATA[unattended xml]]></category>

		<category><![CDATA[Vista]]></category>

		<category><![CDATA[win2k8]]></category>

		<category><![CDATA[windows server 2008]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=228</guid>
		<description><![CDATA[There&#8217;s not a lot of point having an article on this site about how to perform an unattended installation of IIS6 (Windows XP &#38; Windows Server 2003) and ignore IIS7 (Windows Server 2008 &#38; Windows Vista).  So, here&#8217;s the article about how to perform an unattended installation of IIS7.  Ready?
Firstly, you can&#8217;t follow [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s not a lot of point having an article on this site about how to perform an unattended installation of IIS6 (Windows XP &amp; Windows Server 2003) and ignore IIS7 (Windows Server 2008 &amp; Windows Vista).  So, here&#8217;s the article about how to perform an unattended installation of IIS7.  Ready?<span id="more-228"></span></p>
<p>Firstly, you can&#8217;t follow the steps in this article if you&#8217;re trying to do an unattended installation of IIS6 on Windows Server 2003.  Instead, follow my article entitled <a href="http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis6/">How to perform an unattended installation of IIS6</a>.</p>
<p>The unattended installation of IIS7 is similar to an unattended installation of IIS6 in only one major way - you still need an answer file.  However, that&#8217;s really where the similarity ends.  For a start, the answer file is now an XML file, not an INF file.  The old installation program, Sysocmgr.exe, has now been replaced with PkgMgr.exe as well as a couple of other command-line tools like ServerManagerCmd.exe (VERY useful - I&#8217;ll post about it when I can).</p>
<p>There are a couple of things to note when doing unattended installations of IIS7 on Windows Vista and Windows Server 2008.  Firstly, Windows Vista Ultimate, Windows Vista Professional and Windows Server 2008 (Longhorn) have different options available for use in the answer file than Windows Vista Home Premium.  Also, you&#8217;ll need to get the build number of your system before you create the answer file.  To do this, follow the steps below.</p>
<div class="special">1. Click Start and type &quot;explorer.exe&quot; into the Start Search box.<br />
2. When explorer.exe is found, don&#8217;t click it.  If explorer.exe isn&#8217;t found &#8230; well &#8230; I doubt you&#8217;ll be worrying about reading this.  <img src='http://www.digitalformula.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
3. RIGHT-click explorer.exe, select Properties and go to the Details tab.  Note down the details next to Product Version - you&#8217;ll need it shortly.  See below:</p>
<p><img src="http://www.digitalformula.net/wp-content/uploads/2008/06/explorer-exe-properties.jpg" alt="" title="explorer.exe Details (Product Version)" width="367" height="502" class="alignnone size-full wp-image-227" />
</div>
<p>Ok so now that you&#8217;ve got your system&#8217;s build number you can start creating the XML answer file.  There&#8217;s a couple of examples floating around the web that are far better than any custom examples I could ever create so I&#8217;ve made them downloadable below.  The XML answer file immediately below this paragraph will work on Windows Vista Ultimate, Windows Vista Professional, Windows Vista Home Premium and Windows Server 2008 (Longhorn) and will install IIS7 in the default configuration with no user customisations.</p>
<pre>
<div class="special">&lt;?xml version="1.0" ?&gt;
&lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&gt;
	&lt;servicing&gt;
		&lt;package action="configure"&gt;
			&lt;assemblyIdentity
        		name="Microsoft-Windows-Foundation-Package" version="6.0.5308.6"
			language="neutral"
			processorArchitecture="x86"
			publicKeyToken="31bf3856ad364e35"
			versionScope="nonSxS"
			/&gt;

			&lt;selection name="IIS-WebServerRole" state="true"/&gt;
			&lt;selection name="WAS-WindowsActivationService" state="true"/&gt;
			&lt;selection name="WAS-ProcessModel" state="true"/&gt;
			&lt;selection name="WAS-NetFxEnvironment" state="true"/&gt;
			&lt;selection name="WAS-ConfigurationAPI" state="true"/&gt;
		&lt;/package&gt;
	&lt;/servicing&gt;
&lt;/unattend&gt;</div>
</pre>
<p>Before using the file above or any of the files linked below you&#8217;ll need to make 2 changes.</p>
<p>1. Change the assemblyIdentity version to the version you found by getting the properties of explorer.exe earlier in this article.  If you don&#8217;t do this the PkgMgr.exe program will start and then drop immediately back to the command prompt without installing anything.<br />
2. Change the assemblyIdentity processor architecture to match your system.  Possible values are x86, amd64 and ia64.</p>
<p>If you want to install ALL components, choose one of the files from the links below.<br />
&raquo;&nbsp;<a href="http://www.digitalformula.net/wp-content/uploads/2008/06/iis7-unattended-windows-vista-ultimate-professional-windows-server-2008">Windows Vista Ultimate, Windows Vista Professional &amp; Windows Server 2008 (Longhorn)</a><br />
&raquo;&nbsp;<a href="http://www.digitalformula.net/wp-content/uploads/2008/06/iis7-unattended-windows-vista-home-premium.xml">Windows Vista Home Premium</a></p>
<p>And here is my IIS7 unattended answer file.  It is a default IIS7 installation with a few customisations, e.g. ASP.NET etc.<br />
&raquo;&nbsp;<a href="http://www.digitalformula.net/wp-content/uploads/2008/06/iis7-unattended.xml">My IIS7 unattended answer file for Windows Vista Ultimate/Professional/Windows Server 2008</a> (it has a few customisations)</p>
<p>Some articles will tell you the answer file needs to be called &quot;unattend.xml&quot; - it doesn&#8217;t.  You can name it whatever you want (my production one is called iis7-unattended.xml).</p>
<p>Once you&#8217;ve got the answer file sorted you need to actually do the install.  Open a command prompt AS ADMINISTRATOR (that part is important - right click the shortcut and click &quot;Run as administrator&quot;).  If you have UAC enabled confirm that you want to perform the requested action  then run the following command.  Make sure you change the values to match those on your system, i.e. paths and filenames.</p>
<div class="special">start /w C:\Windows\System32\PkgMgr.exe /n:C:\Scripts\iis7-unattended.xml</div>
<p>The installation will take a few minutes depending on your system&#8217;s configuration and performance.  Once the command prompt returns (the /w parameter will cause the window to wait until the installation has finished before you can use it again) you can browse to http://localhost and see the default IIS7 page that should look something like the screenshot below.</p>
<p><img src="http://www.digitalformula.net/wp-content/uploads/2008/06/iis7-default-page.jpg" alt="" title="IIS7 Default Page" width="480" height="345" class="alignnone size-full wp-image-229" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of the .NET Framework 3.0</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-the-net-framework-30/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-the-net-framework-30/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 05:01:58 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[.net framework 3.0]]></category>

		<category><![CDATA[silent]]></category>

		<category><![CDATA[unattended install]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=225</guid>
		<description><![CDATA[For a lot of applications today you&#8217;ll need to install the Microsoft .NET Framework on your Windows systems to get them working.  The Microsoft .NET Framework version 3.0 is installed as part of Windows Server 2008 and Windows Vista but what if you&#8217;re running a previous version of Windows and want to roll out [...]]]></description>
			<content:encoded><![CDATA[<p>For a lot of applications today you&#8217;ll need to install the Microsoft .NET Framework on your Windows systems to get them working.  The Microsoft .NET Framework version 3.0 is installed as part of Windows Server 2008 and Windows Vista but what if you&#8217;re running a previous version of Windows and want to roll out version 3.0 of the .NET Framework?<span id="more-225"></span></p>
<p>Apart from checking that your systems are compatible with the .NET Framework 3.0 here&#8217;s a simple script to perform a completely unattended installation of the Microsoft .NET Framework 3.0.  Note that the commands below will prevent the machine being worked on from restarting automatically after installing the service pack.  The commands also assume you&#8217;ve got your .NET Framework installation files located in C:\InstallationFiles - change the location in the commands below if that&#8217;s not the case (it almost definitely won&#8217;t be!).</p>
<div class="special">:: Install the .NET Framework 3.0<br />
echo Installing .NET Framework 3.0 &#8230;<br />
echo.<br />
&#8220;C:\InstallationFiles\dotnetfx3.exe&#8221; /qb /norestart</div>
<p>At the time of writing this article the Microsoft .NET Framework 3.0 can be downloaded from the links below.  Make sure you click the link in the following article labelled &quot;X86 Redist Package&quot; if you&#8217;re running a 32-bit edition of Windows or &quot;X64 Redist Package&quot; if you&#8217;re running a 64-bit edition of Windows.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=10CC340B-F857-4A14-83F5-25634C3BF043&#038;displaylang=en" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">Microsoft .NET Framework 3.0 Redistributable x86 (dotnetfx3.exe)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-the-net-framework-30/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of SQL Server Management Studio Express</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-management-studio-express/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-management-studio-express/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 04:47:13 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[sql server 2005 express]]></category>

		<category><![CDATA[sql server management studio express]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=224</guid>
		<description><![CDATA[If you&#8217;re a user of SQL Server 2005 Express you might now be wondering how you can manage the database server.  After all, it didn&#8217;t install any management tools for you to play around with.  What&#8217;s up with that?  You&#8217;re about to find out.
The management tool set you&#8217;re missing is called SQL [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a user of SQL Server 2005 Express you might now be wondering how you can manage the database server.  After all, it didn&#8217;t install any management tools for you to play around with.  What&#8217;s up with that?  You&#8217;re about to find out.<span id="more-224"></span></p>
<p>The management tool set you&#8217;re missing is called <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&#038;displaylang=en" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">SQL Server Management Studio Express</a>. Go ahead and download it.</p>
<p>Once the download is finished you&#8217;ll find you&#8217;ve got a file called SQLServer2005_SSMSEE.msi - if you know anything about MSI files you&#8217;ll know that this is going to make an unattended installation a breeze.  For this installation there&#8217;s only 1 step.  Open a command prompt, change to the folder you saved SQLServer2005_SSMSEE.msi into and enter the following command.</p>
<div class="special">msiexec.exe /i SQLServer2005_SSMSEE.msi /qb</div>
<p>When the installation has finished you&#8217;ll find an additional icon in your start menu under Microsoft SQL Server 2005 called SQL Server Management Studio Express.  That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-management-studio-express/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of SQL Server 2005 Express</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-2005-express/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-2005-express/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 04:27:45 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Scripts - MS-DOS]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[silent]]></category>

		<category><![CDATA[sql server 2005 express]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=222</guid>
		<description><![CDATA[To continue on with the theme of unattended installation-related posts lately, what if you want to install SQL Server 2005 Express Edition in unattended mode?  SQL Server 2000 had the ability to save the installation into a file called setup.iss - how nice of Microsoft to remove this feature from SQL Server 2005 &#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>To continue on with the theme of unattended installation-related posts lately, what if you want to install <a href="http://www.microsoft.com/sql/editions/express/default.mspx" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">SQL Server 2005 Express Edition</a> in unattended mode?  SQL Server 2000 had the ability to save the installation into a file called setup.iss - how nice of Microsoft to remove this feature from SQL Server 2005 &#8230; however, let&#8217;s get rolling.<span id="more-222"></span></p>
<p>Creating an unattended installation of <a href="http://www.microsoft.com/sql/editions/express/default.mspx" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">SQL Server 2005 Express</a> can seem like a pretty involved task at first.  It can be involved too, if you want.  For this example I&#8217;m going to perform a basic installation with minimal customisation so you can see the process at work.</p>
<p>Where to start?  As with most unattended installations these days you need to create an answer file that is passed as a parameter to setup.exe &#8230; hmm, what setup.exe?  When you <a href="http://www.microsoft.com/sql/editions/express/default.mspx" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">download SQL Server 2005 Express</a> it&#8217;s a file called SQLEXPR.EXE - no setup.exe in sight.  There is a way to get it though.  Let&#8217;s sidetrack for a minute and see how.</p>
<div class="special">1. Run SQLEXPR.EXE<br />
2. When the first screen appears DON&#8217;T DO ANYTHING!<br />
3. Look in the root of C: drive (C:\) for a recently created folder that you didn&#8217;t make.  Unless you have a virus doing weird stuff this will probably be the temporary folder the SQL Express installation has been extracted into.  It will be a randomly-named folder, e.g. the one I just did was called &quot;2d4f168225a7918ed69f49629587&quot;<br />
4. Copy the contents of this folder to another folder on your system.  Note that there will be a file called &quot;$shtdwn$.req&quot; in there that you can&#8217;t copy - that&#8217;s fine, you don&#8217;t need it.<br />
5. Once you&#8217;ve got a copy of all the files in the temporary folder (excluding $shtdwn$.req!) you can safely quit the installation program.  No changes have been made at this point.</div>
<p>Now that you&#8217;ve got a nicely extracted copy of the installation files you can carry on.  The above steps were necessary for what&#8217;s coming up.</p>
<p>Look in the folder you copied the installation files to and locate a file called &quot;template.ini&#038;quot.  Copy it somewhere and open it in your favourite text editor.  Personally I use <a href="http://www.microsoft.com/express/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">Microsoft Visual Studio Express Edition</a> - it&#8217;s free and works perfectly well as a text editor as well a cut-down version of Microsoft&#8217;s flagship development environment, <a href="http://msdn.microsoft.com/en-au/vstudio/products/default.aspx" onclick="javascript:pageTracker._trackPageview ('/outbound/msdn.microsoft.com');">Visual Studio</a>.  Nice for cranking out a bit of code too &#8230; if you don&#8217;t plan to sell it.</p>
<p>The template.ini is actually VERY well commented - nice one Microsoft.  This file is in the same format as the template.ini that comes with the full versions of SQL Server and contains a whole load of options that you don&#8217;t want to and simply can&#8217;t use with SQL Server Express.  If you want to, have a read through the file and see what&#8217;s possible - here&#8217;s where you can make the installation pretty involved if you want to.</p>
<p>For our purposes though the installation is going to be pretty basic.  The contents of the complete file are available for download at the bottom of this article (do that later).  Make all the changes you think are necessary and save the file as C:\Scripts\sql-2005-express.ini.</p>
<p>Once you have your answer file all nicely setup and ready to use you&#8217;ll need to know how to use it.  A bit of a warning here first.  Without specifying all the upgrade options in the answer file I had problems running the unattended installation on a system that already had the SQL Server Native Client - it kept spewing errors about retrying the installation using a valid copy of sqlncli.msi.  Either specify the upgrade options or run the installation on a system that&#8217;s never had SQL Server installed or has already had EVERYTHING SQL-related removed.</p>
<p>From a command prompt (or Start &gt; Run if you&#8217;re into that) run the following command.  Remember to change the file and path names to the ones that match your system.</p>
<div class="special">start /wait setup.exe /qb /settings C:\Scripts\sql-2005-express.ini</div>
<p>If you&#8217;ve done everything right this will start the installation process and you&#8217;ll end up with a SQL Server 2005 default instance called MSSQLSERVER running on your system.  Easy!</p>
<p><a href="http://www.digitalformula.net/wp-content/uploads/2008/06/sql-2005-express.ini">Click here to download Complete sql-2005-express.ini file used in this article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-sql-server-2005-express/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to perform an unattended installation of IIS6</title>
		<link>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis6/</link>
		<comments>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis6/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 03:00:12 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[IIS]]></category>

		<category><![CDATA[Infrastructure]]></category>

		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[Scripts - MS-DOS]]></category>

		<category><![CDATA[Unattended]]></category>

		<category><![CDATA[iis6]]></category>

		<category><![CDATA[silent]]></category>

		<category><![CDATA[unattended install]]></category>

		<category><![CDATA[windows server 2003]]></category>

		<guid isPermaLink="false">http://www.digitalformula.net/?p=220</guid>
		<description><![CDATA[At some stage you will want to install IIS6 on a server that doesn&#8217;t already have it.  Let&#8217;s assume for a minute that you&#8217;re the administrator of a network with servers that require a fairly standard installation of IIS6 - why not create a script that does it all with one click?  Read [...]]]></description>
			<content:encoded><![CDATA[<p>At some stage you will want to install IIS6 on a server that doesn&#8217;t already have it.  Let&#8217;s assume for a minute that you&#8217;re the administrator of a network with servers that require a fairly standard installation of IIS6 - why not create a script that does it all with one click?  Read on &#8230;<span id="more-220"></span></p>
<p>I&#8217;m going to assume you&#8217;ve already got the .NET Framework 2.0 already installed.  If you haven&#8217;t please read my article about <a href="http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-the-net-framework-20/">how to perform an unattended installation of the Microsoft .NET Framework 2.0</a>.</p>
<p>To perform an unattended installation of IIS6 you need 2 things.  First you need to create an answer file for the installation program (Sysocmgr.exe) to get the IIS configuration from.  Here is a link to a Microsoft document entitled &quot;<a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/efefcb53-b86e-4cac-9b4b-fcf5f1145aa9.mspx?mfr=true" onclick="javascript:pageTracker._trackPageview ('/outbound/www.microsoft.com');">Creating an Answer File (IIS6)</a>&quot; but I&#8217;d recommend reading on anyway.</p>
<p>Why am I writing my own document about this?  Simple - there are spelling mistakes and technically incorrect bits of info all over the Microsoft site (doesn&#8217;t Microsoft check their own technical documentation?) - unfortunately the Microsoft document linked above is one of the ones containing a typo.  Their document lists one of the options as follows.</p>
<div class="special">iis_inetmer = on/off</div>
<p>That is WRONG.  The correct wording is:</p>
<div class="special">iis_inetmgr = on/off</div>
<p>Anyway, here&#8217;s a sample answer file for an IIS6 installation.</p>
<div class="special">[Components]<br />
aspnet=on<br />
complusnetwork=on<br />
dtcnetwork=off<br />
bitsserverextensionsisapi=off<br />
bitsserverextensionsmanager=off<br />
iis_common=on<br />
iis_ftp=off<br />
fp_extensions=off<br />
iis_inetmgr=on<br />
iis_nntp=off<br />
iis_smtp=off<br />
iis_asp=off<br />
iis_internetdataconnector=off<br />
sakit_web=off<br />
tswebclient=off<br />
iis_serversideincludes=off<br />
iis_webdav=off<br />
iis_www=on<br />
appsrv_console=on<br />
inetprint=off</p>
<p>[InternetServer]<br />
PathWWWRoot = C:\Inetpub\Wwwroot</p></div>
<p>It&#8217;s an answer file for a basic installation containing the WWW Service, ASP.NET, the IIS common files &#038; COM+ Network (both those are required for the WWW Service) and a couple of other useful things like the administration tools.  It does not include NNTP or SMTP but it&#8217;s easy to see how to enable those.  The installation location is the default of C:\Inetpub\Wwwroot.</p>
<p>Once you&#8217;ve got the answer file sorted, how do you use it?  Easy.  If you save your answer file as C:\Scripts\iis6.inf you run a command like this one (obviously you&#8217;ll need to change the path and file names if you name and save it somewhere/something else).</p>
<div class="special">C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:C:\Scripts\iis6.inf</div>
<p>The above command will run a completely unattended (but not silent!) installation of IIS6.</p>
<p>Please note that unless you&#8217;ve got the Windows installation files as well as the installation files for any service packs available for Sysocmgr.exe to find you may be prompted for their location during the installation.</p>
<p>And here is a sample script to do the whole lot, as I said, with one click.  The script below will also un-register and re-register the .NET Framework with IIS - you may need to do this depending on what order you install IIS/.NET Framework.</p>
<div class="special">@echo off<br />
:: Perform an unattended install of IIS6<br />
::<br />
:: Chris Rasmussen<br />
:: June 2008<br />
::<br />
:: Changes:<br />
::<br />
:: June 11 2008 - Created script</p>
<p>:: Install IIS6<br />
:: Components:<br />
:: - ASP.NET<br />
:: - Com+ Network (required for WWW Service)<br />
:: - IIS Common Files (required for WWW Service)<br />
:: - IIS Manager<br />
:: - WWW Service<br />
:: - Application Server Console</p>
<p>cls<br />
echo Installing IIS6 &#8230;<br />
echo.<br />
C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:C:\Scripts\iis6.inf<br />
echo Configuring ASP.NET and IIS &#8230;<br />
echo.<br />
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -u<br />
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalformula.net/infrastructure/how-to-perform-an-unattended-installation-of-iis6/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
