IIS Manager has built in remote administration capabilities Terminal Services or Admin web site not required Clients are IIS Manager from XP, 2003, Vista.

Slides:



Advertisements
Similar presentations
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Advertisements

Faith Allington Program Manager Microsoft Corporation WSV322.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Лектор: Борислава Палева. Agenda What’s new in IIS7? IIS7 for IT Pros Demos –Explore new tools –Tracing enhancements –View live requests.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Module 5: Creating and Configuring Group Policy
Faith Allington Program Manager Microsoft Corporation Session Code: WSV304.
Ken Schaefer Systems Engineer Avanade MVP – Windows Server (IIS) SVR320.
Lap around IIS7 Ashish Jaiman ISV AE Microsoft Confidential.
Managing PHP and PHP Applications on Windows Drew Robbins Developer Evangelist Microsoft Corporation.
Proven Scale MySpace - 23 Billion Page* Views/Month Microsoft.com - 10k Req/sec & 300K Connections Match.com 30 million page view daily Proven Security.
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
Eben de Wit Developer Advisor Microsoft
IIS7 for Developers Leon Langleyben Chief Architect SRL Group
Windows 7 Training. Windows ® 7 Compatibility Installer Detection.
IIS 7: The Next Generation Web Application Server Platform Michael Volodarsky Program Manager Web Platform and Tools Team Microsoft Corporation.
Configuring PHP on IIS7 Making your application rock on IIS7 Taking advantage of the Windows platform Q&A at Open Space.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Understanding Active Directory
Understanding Active Directory
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Using The WDK For Windows Logo And Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
 Vijay Sen Senior Program Manager Microsoft Corporation ES14.
IIS 7: The Administrator’s Guide Alexis Eller Program Manager Microsoft Corporation.
Saad Ladki Program Manager Microsoft Corporation WUX403.
IIS, Tools And Extensibility Madhur Joshi Development Lead Phone:
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Virtual techdays INDIA │ august 2010 IIS 7/7.5 Tips & Tricks Jaskirat Singh │ Technical Lead [IIS|Asp.Net team], Microsoft.
Purpose Intended Audience and Presenter Contents Proposed Presentation Length Intended audience is all distributor partners and VARs Content may be customized.
Purpose Intended Audience and Presenter Contents Proposed Presentation Length Intended audience is all distributor partners and VARs Content may be customized.
AppCMD Quick Reference Guide for IIS 7 installed on Win2k8 Servers.
This is the main presentation on Remote administration Centralized Configuration Command line and scripted admin tool Do not review the configuration.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Using the WDK for Windows Logo and Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
Datacenter X Datacenter Y ….com Contoso.com Exchange Labs ACME.com Ops NK App user Finance HR Sales Purchase Fabrikam Enterprises.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Windows Azure Migrating Applications and Workloads Speaker Title Organization.
Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

customer.
LegendCorp What is System Center Virtual Machine Manager (SCVMM)? SCVMM at a glance Features and Benefits Components / Topology /
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
This is the main tracing and diagnostics presentation. Very important that this be practical and useful information. IT Pro audience is very.
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
Ellis Paul Technical Solution Specialist – System Center Microsoft UK Operations Manager Overview.
Anil Revuru. Simple.NET Library Encoding Library with Multiple Contexts Protects from XSS attacks.
IIS Manager Details Delegated Administration Configuration System.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Microsoft ® Lync™ Server 2010 Setup and Deployment Module 04 Microsoft Corporation.

Building More Powerful ASP.NET Applications with IIS7 Michael Volodarsky COM303 Program Manager Microsoft Corporation.
Why Invest in FTP? Shipping Out-of-Band What FTP 7 Provides What FTP 7 Doesn't Provide Demonstrations Other FTP 7 Improvements.
Arizona SharePoint Professionals Group.
Visual Studio 2010 and .NET Framework 4 Training Workshop
11/11/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
IIS 7 Administration IIS Manager Delegated Administration
IIS 7: The Administrator’s Guide
Service Template Creation from the Ground Up
Service Template Creation from the Ground Up
Microsoft Dynamics.
Azure AD Simon May Technical Evangelist.
Microsoft Virtual Academy
Presentation transcript:

IIS Manager has built in remote administration capabilities Terminal Services or Admin web site not required Clients are IIS Manager from XP, 2003, Vista and Longhorn Custom addins are downloaded to remote Uses the WMSVC service (Windows Service) Requires Management Service be installed in Server Manager

Enable in the IIS Manager Turned off by Default Essentially a web application running on a standalone server Runs as Local Service (NT Service\WMSVC) If using UNC content, you need to run as identity with UNC access Startup is set to Manual Change to automatic to enable on reboot sc config WMSVC start= auto Enforces HTTPS

Type of User (Windows or IIS Manager) Connections Can be bound to a specific IP Configurable port for listening Set to 8172 by default When connecting specify port using : (e.g. myserver:5050) Logging can be turned on/off and log directory can be modified Certificate for SSL is preinstalled IP and Domain restrictions Ability to restrict connections to specific IP address/domains Ability to block specific IP address/domains

Logs all HTTP connections to the WMSvc service Logs stored at: :\inetpub\logs\wmsvc Useful for auditing W3SVC log file format Service errors visible in event viewer (eventvwr.exe)

Exposes a series of “handlers” that process the client requests. Ping.axd – Used to monitor the state Download.axd – Used to download assemblies to client Login.axd – Used to perform the initial handshake with the UI Service.axd – Used to process the actual client requests Monitors itself by doing a GET request (ping.axd) every 5 minutes

Administrators: Control entire web server remotely Non-administrators: Identity stored as Windows Users or “IIS Manager Users” Control of sites/applications Developers Site owners Application owners Administrator decides what the user can view/change with Feature Delegation

Only Administrator can connect to server node Can see all settings and connect to other nodes Does not need explicit permissions If Remote Administration is enabled, a server administrator can log in. Non-admins can connect to sites and apps Explicit permission required Content can be ACL’d for greater security

Created in the IIS Manager Only used by WMSVC and Admin UI Not used by any other IIS components DOES NOT map to Windows users Stored in administration.config by default Uses an IIS Authentication Provider Authentication provider be replaced by custom authentication provider, e.g. One which stored authentication info on SQL Server. Only used for site/application connections

Creating IIS Manager Users Site/Application Permissions Authorizing Access Connecting to Sites

Remote users can only edit delegated features Changes are written to web.config Most features shown by default Non-delegated features can be hidden from remote user Allows creation of custom UI for remote users

ConnectionUsers who can connectConfiguration Scope (Where config changes go) ServerWindows AdministratorsapplicationHost.config SiteWindows Administrators Windows Users IIS Manager Users web.config ApplicationWindows Administrators Windows Users IIS Manager Users web.config

1. Configure master server Replication and synchronization are challenging, requiring custom code XML Metabase.XML XML Metabase.XML XML Metabase.XML 2. Replicate config 3. Change configuration XML 4. Re-replicate config

Designed for web farm scenario from the start Multiple servers to share a single configuration file UNC share is created for master config When configured, servers direct config requests to share location A local or domain user is specified as identify for remote access

Export Settings using IIS Manager Shared Config feature Create identical local user [Configuser] on all web servers (or use a domain account) Assign user the right “Log on as a batch job” Create a share for config files Share permissions are [Configuser] Change ACLS are [Configuser] Read Place config files in UNC path Edit redirection.config

XML AppHost.config Staging New Config Version 2 Version 1 Easily manage multiple configuration versions for staging and rollback

Designed to work in homogeneous farm Must properly stage and replicate Adding new components to IIS Extending IIS7 configuration Shared configuration solves one of several web farm issues Replication tool to be released near RTM MOM pack for web server monitoring

When You Xcopy applicationHost.config Export the machine keys for encryption Ensure server configuration is identical Custom modules exist on all servers When You Use Code to Enable Shared Configuration Export the machine keys Copy configuration files to a share Edit redirection.config to enable When You Install Global Filters, Modules or IIS Components Remove a server from the farm to test Add any local dependencies BEFORE you change the shared config!

var config = WScript.CreateObject("Microsoft.ApplicationHost.WritableAdminMan ager"); config.CommitPath = "MACHINE/REDIRECTION"; var section = config.GetAdminSection("configurationRedirection", "MACHINE/REDIRECTION"); section.Properties.Item("enabled").Value = true; section.Properties.Item("path").Value = "\\\\somemachine\\share\\folder"; section.Properties.Item("userName").Value = "user"; section.Properties.Item( "password" ).Value = “pass"; config.CommitChanges();

ADSI: IIS 6 Compatibility APPCMD: General purpose command line utility WMI: Improved for Longhorn and IIS7. Microsoft.Web.Administration – Managed API to control state and configuration Powershell: Use with Microsoft.Web.Administraiton and WMI

Create Site Create Virtual Directory Create Application NOT CONSISTENT Set oIIS = GetObject("winmgmts:root\MicrosoftIISv2") ' Create binding for new site Set oBinding = oIIS.Get("ServerBinding").SpawnInstance_ oBinding.IP = "" oBinding.Port = "80" oBinding.Hostname = " ' Create site and extract site name from return value Set oService = oIIS.Get("IIsWebService.Name='W3SVC'") strSiteName = oService. CreateNewSite ("NewSite", array(oBinding), "C:\inetpub\wwwroot") Set objPath = CreateObject("WbemScripting.SWbemObjectPath") objPath.Path = strSiteName strSitePath = objPath.Keys.Item("") Set oSite = oIIS.Get("IIsWebServer.Name='" & strSitePath & "'") oSite.Start ' Create the vdir for our application Set oVDirSetting = oIIS.Get("IIsWebVirtualDirSetting"). SpawnInstance_ oVDirSetting.Name = strSitePath & "/ROOT/bar" oVDirSetting.Path = "C:\inetpub\bar" oVDirSetting.Put_ ' Make the VDir an application Set oVDir = oIIS.Get("IIsWebVirtualDir.Name='" & strSitePath & "/ROOT/bar'") oVDir. AppCreate2

Set oService = GetObject("winmgmts:root\WebAdministration") ' Create binding for site Set oBinding = oService.Get("BindingElement").SpawnInstance_ oBinding.BindingInformation = "*:80: oBinding.Protocol = "http" ' Create site oService.Get("Site").Create _ "NewSite", array(oBinding), "C:\inetpub\wwwroot" ' Create application oService.Get("Application").Create _ "/foo", "NewSite", "C:\inetpub\wwwroot\foo" Static Create methods CONSISTENT

ServerManager iisManager = new ServerManager(); foreach(WorkerProcess w3wp in iisManager.WorkerProcesses ) { Console.WriteLine("W3WP ({0})", w3wp.ProcessId); foreach(Request request in w3wp.GetRequests (0)) { Console.WriteLine("{0} - {1},{2},{3}", request.Url, request.ClientIPAddr, request.TimeElapsed, request.TimeInState); } }

With powershell…..

Provides compatibility for: scripts command line tools native calls into ABO Not installed by default Install IIS 6 Compatibility Can only do what IIS6 could do… Can’t read/write new IIS properties Application Pools: managedPipelineMode, managedRuntimeVersion Request Filtering Failed Request Tracing Can’t read/write ASP.NET properties Can’t read/write web.config files Can’t access new runtime data, e.g. worker processes, executing requests applicationHost.config IISADMIN ABOMapper IIS6 ADSI Script

Remote Administration Built in remote administration Access is scoped to roles and delegation Use HTTPS to connect to remote servers Choice of client operating systems Shared Configuration for web farms Automated administration tasks with WMI: for enterprise wide management APPCMD: local, general purpose Microsoft.Web.Administration: integrate into deployment and management programs ADSI: IIS6 compat

© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Will cause all application pools to recycle: changes to default settings for all application pools changes to the list Will cause one application pool to recycle: application pool settings Use only RSA machine-encryption (default), replicate RSA machine key Gotcha's: Machine specific data, like IP addresses or drive letters Servers must have same set of modules installed (reference to non-existent module in causes 503's) Assemblies in GAC, certificates, COM+ and other local items

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.