programming4us
 
Windows
 

Windows Server 2012 : Scalable and elastic web platform (part 7) - Generating Windows PowerShell scripts using IIS Configuration Editor

3/15/2014 2:07:27 AM

8. Generating Windows PowerShell scripts using IIS Configuration Editor

Although IIS Manager lets you configure many aspects of IIS, there are a number of configuration settings that are not exposed in the user interface. To configure these settings, you need to drill down and edit configuration files like ApplicationHost.config, the root configuration file that includes detailed definitions of all sites, applications, virtual directories, and application pools on the server, as well as global defaults for all web server settings. These configuration files are schematized XML files, and you can either edit them in Notepad (yikes!) or use the Configuration Editor, one of the management features in IIS Manager.

image with no caption

New in IIS 8 is the capability of using the Configuration Editor to generate a Windows PowerShell script for any configuration changes that you make to your server using the Configuration Editor. This capability can be particularly useful for cloud hosting providers who need to automate the configuration of large numbers of web servers because you can use such a generated script as a template for creating a finished script that can perform the task that you need to automate.

Let’s see how this works. The section Application Initialization, discussed how you can globally configure application pools on your server so that web applications on the server are initialized before the first request comes in to access them. To enable Application Initialization globally like this, you can edit the ApplicationHost.config file so that the following line in the <applicationPools> section:

<add name=".NET v4.5" managedRuntimeVersion="v4.0" />

changes to this:

<add name=".NET v4.5" startMode="AlwaysRunning" managedRuntimeVersion="v4.0" />

To do this using IIS Manager, open the Configuration Editor and select applicationPools in the system.applicationHost/applicationPools section as shown here:

image with no caption

Then you expand applicationPoolDefaults and change startMode from OnDemand to AlwaysRunning:

image with no caption

Once you’ve applied this change, you can click Generate Script in the Actions pane. Doing this opens the Script Dialog dialog box, and on the PowerShell tab is a PowerShell script that you can customize to automate this configuration change on other servers in your farm:

image with no caption
 
Others
 
- Windows Server 2012 : Scalable and elastic web platform (part 6) - FTP Logon Attempt Restrictions
- Windows Server 2012 : Scalable and elastic web platform (part 5) - Application Initialization,Dynamic IP Address Restrictions
- Windows Server 2012 : Scalable and elastic web platform (part 4) - IIS CPU throttling
- Windows Server 2012 : Scalable and elastic web platform (part 3) - Centralized SSL certificate support
- Windows Server 2012 : Scalable and elastic web platform (part 2) - Server Name Indication
- Windows Server 2012 : Scalable and elastic web platform (part 1) - NUMA-aware scalability
- Setting Up Windows 8 Family Safety (part 7) - Viewing Family Safety Online Reports
- Setting Up Windows 8 Family Safety (part 6) - Viewing Family Safety Activity Reports
- Setting Up Windows 8 Family Safety (part 5) - Blocking and allowing Apps
- Setting Up Windows 8 Family Safety (part 4) - Controlling Windows Store and game play
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8
- How To Get Microsoft Office 2013 Trial Product Key From Microsoft
- Complete List Of Windows 8 Keyboard Shortcuts [Hotkeys]
- How To Bypass Torrent Connection Blocking By Your ISP