{"id":894,"date":"2009-02-05T15:50:03","date_gmt":"2009-02-05T20:50:03","guid":{"rendered":"http:\/\/alsplace.aldenbaker.com\/alsplace\/opsys\/os-windows-server\/894\/installing-a-simple-web-server-on-windows-server-2008-from-a-script\/"},"modified":"2009-02-05T15:52:25","modified_gmt":"2009-02-05T20:52:25","slug":"installing-a-simple-web-server-on-windows-server-2008-from-a-script","status":"publish","type":"post","link":"http:\/\/alsplace.info\/?p=894","title":{"rendered":"Installing a simple Web server on Windows Server 2008 from a script"},"content":{"rendered":"\n<!-- ALL ADSENSE ADS DISABLED -->\n<div align=\"justify\">\n<ul class=\"postData\">\n<li><strong>Date<\/strong>: September 23rd, 2008<\/li>\n<li><strong>Author<\/strong>: Rick Vanover<\/li>\n<\/ul><\/div>\n<p> <!-- \/contentData --> <\/p>\n<p class=\"entry\" align=\"justify\"><em>While there are more advanced Web server configurations, many products require the IIS Web engine as a prerequisite. Here&rsquo;s how to install a simple IIS Web server through a scripted role.<\/em><\/p>\n<p class=\"entry\" align=\"justify\"><em>&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-<\/em><\/p>\n<p class=\"entry\" align=\"justify\">You can usually add features through the Windows Server 2008 Server Manager snap-in via a script. In the case of IIS 7.0, there are many options available for the <a href=\"http:\/\/www.coastalrock.com\/\">cialis 20 mg cost<\/a>  feature install.<\/p>\n<p class=\"entry\" align=\"justify\">One way to ensure a consistent configuration for applications that require IIS (e.g., SQL Server) is to use a scripted installation. For IIS, the package manager can install the features locally. To install a basic IIS configuration, run the following script:<\/p>\n<div class=\"entry\" align=\"justify\">\n<blockquote><p>start \/w pkgmgr \/iu:IIS-WebServerRole;IIS-WebServerManagementTools; IIS-ManagementService;IIS-Metabase;WAS-WindowsActivationService; WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI<\/p><\/blockquote><\/div>\n<p class=\"entry\" align=\"justify\">The command provides little interaction and, by default, does not provide feedback of any type if an incorrect parameter is passed after the <em>\/iu<\/em> parameter. <strong>Figure A<\/strong> shows IIS being added via the script.<\/p>\n<p class=\"entry\" align=\"justify\"><strong>Figure A<\/strong><\/p>\n<p class=\"entry\" align=\"justify\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/i.techrepublic.com.com\/gallery\/220013-500-102.jpg\" border=\"0\" alt=\"Figure A\" title=\"Figure A\" width=\"500\" height=\"102\" \/><\/p>\n<p class=\"entry\" align=\"justify\">Once the scripted task completes after a minute or so, and the Window Server 2008 Server Manager snap-in performs its next refresh, the Web server is listed as a role on the system and is running. <strong>Figure B<\/strong> shows an updated Server Manager snap-in with this basic IIS role.<\/p>\n<p class=\"entry\" align=\"justify\"><strong>Figure B<\/strong><\/p>\n<p class=\"entry\" align=\"justify\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/i.techrepublic.com.com\/gallery\/220014-500-474.jpg\" border=\"0\" alt=\"Figure B\" title=\"Figure B\" width=\"500\" height=\"474\" \/><\/p>\n<p class=\"entry\" align=\"justify\">Using this scripted install of IIS is a good way to ensure consistent server build configurations, and other Windows features can be automated through the package manager (pkgmgr). The package manager can also uninstall packages, which may be helpful for temporarily enabling a feature for a specified amount of time and for removing the feature from a scheduled task to ensure its decommissioning.<\/p>\n<p class=\"entry\" align=\"justify\">For more information on the package manager, read the TechNet article <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc749465.aspx\" target=\"_blank\"><font color=\"#003399\">Package Manager Command-Line Options<\/font><\/a>.<\/p>\n<!-- Social Bookmarks BEGIN -->\n<div class=\"social_bookmark\">\n<a title=\"Click me to see the sites.\" href=\"#\" onclick=\"$$('div.d894').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;\"><strong><em>Bookmark to:<\/em><\/strong><\/a>\n<br \/>\n<div class=\"d894\" style=\"overflow:hidden\">\n<br \/>\n<br \/>\n<a style=\"font-size:90%;text-align: right; \" title=\"Click me to hide the sites.\" href=\"#\" onclick=\"$$('div.d894').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;\">Hide Sites<\/a>\n<\/div>\n<\/div>\n<!-- Social Bookmarks END -->\n<script type=\"text\/javascript\">$$('div.d894').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); <\/script>","protected":false},"excerpt":{"rendered":"<p>Date: September 23rd, 2008 Author: Rick Vanover While there are more advanced Web server configurations, many products require the IIS Web engine as a prerequisite. Here&rsquo;s how to install a simple IIS Web server through a scripted role. &mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;- You can usually add features through the Windows Server 2008 Server Manager snap-in via a script. [&hellip;]<\/p>\n<!-- Social Bookmarks BEGIN -->\n<div class=\"social_bookmark\">\n<a title=\"Click me to see the sites.\" href=\"#\" onclick=\"$$('div.d894').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;\"><strong><em>Bookmark to:<\/em><\/strong><\/a>\n<br \/>\n<div class=\"d894\" style=\"overflow:hidden\">\n<br \/>\n<br \/>\n<a style=\"font-size:90%;text-align: right; \" title=\"Click me to hide the sites.\" href=\"#\" onclick=\"$$('div.d894').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;\">Hide Sites<\/a>\n<\/div>\n<\/div>\n<!-- Social Bookmarks END -->\n<script type=\"text\/javascript\">$$('div.d894').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); <\/script>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[52],"tags":[],"_links":{"self":[{"href":"http:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts\/894"}],"collection":[{"href":"http:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=894"}],"version-history":[{"count":0,"href":"http:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts\/894\/revisions"}],"wp:attachment":[{"href":"http:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}