28
Welcome SRV-300

Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Embed Size (px)

DESCRIPTION

This session will explore how Windows Powershell v2.0 can automate administrative tasks to manage critical web infrastructure systems in the data center. The session will include topics on how to monitor and manage Windows Server 2008 systems. We will discuss how to use Windows Powershell cmdlets and WMI to retrieve local and remote information and execute tasks that can be performed on a daily basis. Then we will focus on how Windows Powershell can make it easier for IT Professionals to manage Active Directory to administer network accounts and publish shared folders. Next, we will explore how Windows Powershell Snap-in for IIS can be used to efficiently manage web servers in a web farm to decrease administrative overhead. Then we will show you how Windows Powershell snap-in included in SQL Server 2008 can make it easier for IT Professionals to administer backend databases.

Citation preview

Page 1: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Welcome

SRV-300

Page 2: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Managing Web Infrastructure Systems with Windows PowerShell™ 2.0Level 300

Page 3: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

What Will We cover?

Managing Windows Server 2008® by Using Windows PowerShellManaging Windows Server 2008 Web Server by Using Windows PowerShellUsing Windows PowerShell to Administer Microsoft ® SQL Server® 2008 Systems

Page 4: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Agenda

Reviewing Management Solutions Using Windows PowerShellManaging Windows ServerManaging Internet Information Services (IIS) 7.0Managing SQL Server

Page 5: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Challenges Managing Server Systems

Database Servers

WebServers

WindowsServerSystems

Page 6: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Solutions

Windows PowerShell

IIS 7.0 Windows PowerShell Provider

SQL Server Windows PowerShell Provider

Helps Reduce IT Costs

Page 7: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Agenda

Reviewing Management Solutions by Using Windows PowerShellManaging Windows ServerManaging Internet Information Services (IIS) 7.0Managing SQL Server

Page 8: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Managing Windows Server with Cmdlets

PS> get-service –name Win*

Verb NounName

ArgumentString

Command Parameter

Page 9: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Remote Management and Windows Management Instrumentation (WMI)

PS> get-wmiobject -computer SEA-WEB-01 Win32_Service –filter “Name=‘W3SVC’”

Verb NounName

ArgumentString

Command Parameters

NameArgument

String

Page 10: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Managing Active Directory®

Search For and Add UsersSearch For and Publish Shared Folders

Page 11: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Demonstration Environment

Internal Network192.168.16.0

SEA-DC-01Windows Server 2008

192.168.16.1

SEA-WEB-01Windows Server 2008

192.168.16.2

Page 12: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Demo

Managing Windows Server

Check for Hotfixes on Windows ServerUse WMI to Manage Servers RemotelySearch Active Directory for Accounts

Demo

Page 13: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Agenda

Reviewing Management Solutions by Using Windows PowerShellManaging Windows ServerManaging Internet Information Services (IIS) 7.0Managing SQL Server

Page 14: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Windows PowerShell Simplifies IIS Administration

Working with Web SitesManaging ConfigurationManaging Virtual Directories, Applications, Application PoolsWorking with Run-time Data

Page 15: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Deploy Application to a Web Farm

SEA-IIS7-01 SEA-IIS7-02 SEA-IIS7-03

Page 16: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Using WMI with Windows PowerShell

Stop Web Site by Using WMI

Remove Web Site by Using WMI

Page 17: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Demo

Managing Internet Information Services

Manage Web SitesAdd Virtual Directories and Application PoolsAdd FTP Site

Demo

Page 18: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Agenda

Reviewing Management Solutions by Using Windows PowerShellManaging Windows ServerManaging Internet Information Services (IIS) 7.0Managing SQL Server

Page 19: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Windows PowerShell Snap-in for SQL Server

Includes Two Windows PowerShellsnap-insSQL Server Management Objects to Manage DatabasesRetrieves Database State Information

Page 20: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Interacting with WMI

Start SQL Server Service by Using WMI

Stop SQL Server Service by Using WMI

Page 21: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Advanced SQL Server Management

Use Invoke-Sqlcmd to Run Transact-SQL Statements

Using Invoke-PolicyEvaluation

Page 22: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Demo

Managing SQL Server

Initialize SQL Server PowerShell EnvironmentWork with SQL Server Management ObjectsStop and Start Services by Using WMI

Demo

Page 23: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Session Summary

Managing Windows Server 2008 by Using Windows PowerShellManaging Windows Server 2008 Web Server by Using Windows PowerShellUsing Windows PowerShell to Administer SQL Server 2008 Systems

Page 24: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Where to Find More Information?

Visit TechNet at technet.microsoft.com

Also check out TechNet Edge

edge.technet.com

Or just visit http://go.microsoft.com/?

linkid=9659394

for additional information on this session.

Page 25: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

For the more titles, visithttp://go.microsoft.com/?linkid=9659394

Supporting Publications

Page 26: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Course ID Title

50025A Windows PowerShell for Administrators

6434 Automating Windows Server 2008 Administration with Windows PowerShell

For more training information http://go.microsoft.com/?linkid=9659394

Training Resources

Page 27: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90

Microsoft TechNet Plus

TechNet Plus is an essential premium web-enabled and live support resource that provides IT Professionals with fast and easy access to Microsoft experts, software and technical information, enhancing IT productivity, control and planning.

Evaluate & Learn Plan & Deploy Support & Maintain

Use the TechNet Library to plan for deployment using the Knowledge Base, resource kits, and technical training

Use exclusive tools like System Center Capacity Planner to accurately plan for and deploy Exchange Server and System Center Operations Manager

2 complimentary Professional Support incidents for use 24/7 (20% discount on additional incidents)

Access over 100 managed newsgroups and get next business day response--guaranteed

Use the TechNet Library to maintain your IT environment with security updates, service packs and utilities

Get all these resources and more with a TechNet Plus subscription.For more information visit: technet.microsoft.com/subscriptions

Evaluate full versions of all Microsoft commercial software for evaluation—without time limits. This includes all client, server and Office applications.

Try out all the latest betas before public release

Keep your skills current with quarterly training resources including select Microsoft E-Learning courses

Page 28: Managing Web Infrastructure Systems With Windows Power Shell™ 2.0 90