<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tags 'Other' and 'PowerShell'</title><link>http://blogs.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Other,PowerShell&amp;orTags=0</link><description>Search results matching tags 'Other' and 'PowerShell'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Setup IIS on Server Core – Windows Server 2008 R2</title><link>http://blogs.iis.net/ruslany/archive/2009/02/26/setup-iis-on-server-core-windows-server-2008-r2.aspx</link><pubDate>Fri, 27 Feb 2009 01:20:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2970008</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>ruslany</cs:applicationKey><description>&lt;p&gt;With the addition of .NET Framework to Server Core in Windows Server 2008 R2 the Server Core installation option became even more appealing for those who want to use a very low footprint server for hosting their applications. Availability of .NET framework provides the following great benefits:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;ASP.NET support&lt;/strong&gt; – you can now use Server Core to host your ASP.NET applications.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IIS Remote Management&lt;/strong&gt; – Server Core does not provide any user interface other than command line. But if you prefer to use IIS Manager UI to administer IIS, you can now use IIS Remote Manager to connect to IIS on Server Core and perform all the management tasks from within familiar UI of IIS Manager.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PowerShell&lt;/strong&gt; – Windows Server 2008 R2 includes IIS PowerShell snapin, which is also available on Server Core.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This post describes how to setup and configure IIS on Server Core in Windows Server 2008 R2. Specifically the following tasks are described:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using oclist and ocsetup commands&lt;/li&gt;
&lt;li&gt;Basic Installation of IIS&lt;/li&gt;
&lt;li&gt;Installing ASP.NET&lt;/li&gt;
&lt;li&gt;Installing PowerShell and IIS snap-in&lt;/li&gt;
&lt;li&gt;Enabling IIS Remote Management&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span id="more-260"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;Using oclist and ocsetup commands&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;oclist&lt;/strong&gt; command can be used to list the available and installed roles and services on the server. The output of the command looks similar to below:&lt;/p&gt;
&lt;p&gt;&lt;img class="alignnone size-medium wp-image-261" style="border: 0px;" title="oclist" src="http://ruslany.net/wp-content/uploads/2009/02/oclist-500x245.png" alt="oclist command output" width="500" height="245" /&gt;&lt;/p&gt;
&lt;p&gt;It is important to understand how &lt;strong&gt;oclist&lt;/strong&gt; renders component dependencies. For example, in the above screenshot the oclist output shows that IIS-FTPExtensibility is dependent on IIS-FTPSvc, so in order to install IIS-FTPExtensibility it is first necessary to install IIS-FTPSvc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ocsetup&lt;/strong&gt; command can be used to install and uninstall individual roles and services.&lt;/p&gt;
&lt;h3&gt;Basic Installation of IIS&lt;/h3&gt;
&lt;p&gt;To perform basic and default installation of IIS on Server Core run the following command:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
start /w ocsetup IIS-WebServerRole
&lt;/pre&gt;
&lt;p&gt;After the command has run you can run &lt;strong&gt;oclist | more&lt;/strong&gt; and check which IIS components have been installed.&lt;/p&gt;
&lt;h3&gt;Installing ASP.NET&lt;/h3&gt;
&lt;p&gt;To install ASP.NET on Server Core run the following commands in exact same order as listed below:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
start /w ocsetup WAS-NetFxEnvironment
start /w ocsetup IIS-ISAPIExtensions
start /w ocsetup IIS-ISAPIFilter
start /w ocsetup IIS-NetFxExtensibility
start /w ocsetup IIS-ASPNET
&lt;/pre&gt;
&lt;h3&gt;Installing PowerShell and IIS snap-in&lt;/h3&gt;
&lt;p&gt;First, install the PowerShell by running the command as below:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
start /w ocsetup MicrosoftWindowsPowerShell
&lt;/pre&gt;
&lt;p&gt;Next, launch the PowerShell by running this command:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
\windows\system32\WindowsPowerShell\v1.0\powershell.exe
&lt;/pre&gt;
&lt;p&gt;After running this command you should see a PowerShell prompt. Type the following to import IIS snapin:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
import-module WebAdministration
&lt;/pre&gt;
&lt;p&gt;After that you can get the list of available IIS cmdlets by typing&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
get-command –pssnapin WebAdministration
&lt;/pre&gt;
&lt;p&gt;Refer to the article &lt;a title="Managing IIS with IIS 7.0 PowerShell Snap-in" href="http://learn.iis.net/page.aspx/447/managing-iis-with-the-iis-70-powershell-snap-in/"&gt;Managing IIS with IIS 7.0 PowerShell Snap-in&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h3&gt;Enabling IIS Remote Management&lt;/h3&gt;
&lt;p&gt;First install the IIS management service by executing this command:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
start /w ocsetup IIS-ManagementService
&lt;/pre&gt;
&lt;p&gt;Then enable remote management by running this command:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WebManagement\Server ^
/v EnableRemoteManagement /t REG_DWORD /d 1
&lt;/pre&gt;
&lt;p&gt;And finally start the management service:&lt;/p&gt;
&lt;pre name="code" class="dos"&gt;
net start wmsvc
&lt;/pre&gt;
&lt;p&gt;Now you can connect to the IIS on the Server Core from a remote machine by using &lt;a title="IIS Remote Manager" href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;g=6&amp;amp;i=1626" target="_blank"&gt;IIS Remote Manager&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Acknowledgement&lt;/strong&gt;: thanks to Saad Ladki and &lt;a title="Thomas Deml blog" href="http://blogs.iis.net/thomad/"&gt;Thomas Deml &lt;/a&gt;from IIS team for explaining to me all these steps.&lt;/em&gt;&lt;/p&gt;
</description></item></channel></rss>