<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Team Foundation Server : SharePoint</title><link>http://blogs.msdn.com/lakhminder/archive/tags/SharePoint/default.aspx</link><description>Tags: SharePoint</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>TFS 2008 &amp; Scripting the WSS 3.0 Configuration</title><link>http://blogs.msdn.com/lakhminder/archive/2008/10/07/tfs-2008-scripting-the-wss-3-0-configuration.aspx</link><pubDate>Tue, 07 Oct 2008 04:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8980692</guid><dc:creator>Lakhminder</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/lakhminder/comments/8980692.aspx</comments><wfw:commentRss>http://blogs.msdn.com/lakhminder/commentrss.aspx?PostID=8980692</wfw:commentRss><wfw:comment>http://blogs.msdn.com/lakhminder/rsscomments.aspx?PostID=8980692</wfw:comment><description>&lt;P&gt;For any body who wants to script the Products &amp;amp; Technologies Wizard &amp;amp; the extending of default web site in IIS with WSS 3.0 the below script would be the answer.&lt;/P&gt;
&lt;P&gt;Thanks Siva for the being the inspiration behind this. :)&lt;/P&gt;
&lt;P&gt;Copy the below script in a text file &amp;amp; save it with a .bat extension. Run the .bat in a command prompt window to complete the operation. The PCW log would be created at the path c:\PCWPrimary.txt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;====================================================================&lt;/P&gt;
&lt;P&gt;@echo off&lt;/P&gt;
&lt;P&gt;Rem Set ServerName to the SQL Server Instance&lt;BR&gt;Set ServerName=SQLBOXNAME&lt;/P&gt;
&lt;P&gt;Rem Do not Change this&lt;BR&gt;Set ConfigDBName=WSS_Config&lt;/P&gt;
&lt;P&gt;Rem Set SetupAccount to the TFS Setup Account&lt;BR&gt;Set SetupAccount=Domain\TFSSetup&lt;/P&gt;
&lt;P&gt;Rem Set Serviceaccount to the TFS Service Account&lt;BR&gt;Set ServiceAccount=Domain\TFSService&lt;/P&gt;
&lt;P&gt;Rem Set ServicePassword to the password of the TFSService Account&lt;BR&gt;Set &lt;A href="mailto:ServicePassword=P@ssw0rd" mce_href="mailto:ServicePassword=P@ssw0rd"&gt;ServicePassword=P@ssw0rd&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Rem Do not change this&lt;BR&gt;Set AdminDBName=WSS_AdminContent&lt;/P&gt;
&lt;P&gt;Rem Set WSSDIRPATH to the bin folder in the install location of WSS 3.0&lt;BR&gt;Set WSSDIRPATH="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"&lt;/P&gt;
&lt;P&gt;Rem Set WSS Admin's email&lt;BR&gt;Set &lt;A href="mailto:AdminEmail=user@domain.com" mce_href="mailto:AdminEmail=user@domain.com"&gt;AdminEmail=user@domain.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Rem Do not Change this&lt;BR&gt;Set ContentDBName=WSS_Content&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@echo on&lt;/P&gt;
&lt;P&gt;@Echo&amp;nbsp; ---- Dumping the PCW log at c:\PCWPrimary.txt ----&lt;/P&gt;
&lt;P&gt;@echo off&lt;/P&gt;
&lt;P&gt;Pause&lt;/P&gt;
&lt;P&gt;CLS&lt;/P&gt;
&lt;P&gt;cd %WSSDIRPATH%&lt;/P&gt;
&lt;P&gt;Cls&lt;/P&gt;
&lt;P&gt;@echo on&lt;/P&gt;
&lt;P&gt;Rem Run Psconfig to create config &amp;amp; admincontent dbs &amp;amp; to provision the Central Admin Site&lt;/P&gt;
&lt;P&gt;psconfig -cmd configdb -create -server %ServerName% -database %ConfigDBName% -user %ServiceAccount% -password %ServicePassword% -admincontentdatabase %AdminDBName% -cmd helpcollections -installall -cmd secureresources -cmd installfeatures -cmd adminvs -provision -port 17012 -windowsauthprovider onlyusentlm -cmd applicationcontent -install &amp;gt; "c:\PCWPrimary.txt"&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rem Extend the default web site&lt;/P&gt;
&lt;P&gt;STSADM.EXE -o extendvs -url &lt;A href="http://%ServerName%:80" mce_href="http://%ServerName%:80"&gt;http://%ServerName%:80&lt;/A&gt; -ownerlogin %SetupAccount% -owneremail %AdminEmail% -exclusivelyusentlm -databaseserver&amp;nbsp; %ServerName% -databasename %ContentDBName% -donotcreatesite -description "Default Web Site"&lt;/P&gt;
&lt;P&gt;IISReset&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Rem Create the root site collection&lt;/P&gt;
&lt;P&gt;stsadm -o createsite -url &lt;A href="http://%ServerName%" mce_href="http://%ServerName%"&gt;http://%ServerName%&lt;/A&gt; -ownerlogin %SetupAccount% -owneremail %AdminEmail% -sitetemplate STS&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;@echo All Operations completed succesfully..&lt;/P&gt;
&lt;P&gt;@echo Please check C:\PCWPrimary.txt for details..&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;================================================================================&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8980692" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/lakhminder/archive/tags/TFS/default.aspx">TFS</category><category domain="http://blogs.msdn.com/lakhminder/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://blogs.msdn.com/lakhminder/archive/tags/SharePoint/default.aspx">SharePoint</category></item></channel></rss>