Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret Ben Pearce Premier Field Engineer Microsoft SVR387.

Similar presentations


Presentation on theme: "1 Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret Ben Pearce Premier Field Engineer Microsoft SVR387."— Presentation transcript:

1 1 Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret Ben Pearce Premier Field Engineer Microsoft SVR387

2 2 Objectives Learn how to easily administer remote computers Understand the basic concepts of WMI Understand how to use WMI with PowerShell Learn how to create scripts that use WMI to remotely administer computers

3 3 Agenda PowerShell Essentials Introducing WMI PowerShell + WMI Demo – Administering Windows Demo – Administering Servers in Bulk Demo – How do I know what objects to use Demo – Administering Hyper-V Demo – Administering Failover Clustering

4 4 PowerShell Essentials What?What? Interactive Shell New Scripting Language Why?Why? Feature Complete Set of Commands Consistent Method of Administration RevolutionaryRevolutionary

5 5 Objects “An object is a collection of parts and how to use them” PartsPropertiesPartsProperties Front Wheel Back Wheel PedalsPedals SaddleSaddle FrameFrame How to use Methods Methods PedalPedal Steer Left Steer Right Apply Front Brake Apply Rear Brake PartsParts How to use

6 6 Objects Service Name PartsPropertiesPartsProperties StateState DescriptionDescription Stop()Stop() How to use Methods Methods Start()Start() Pause()Pause() WindowsServiceWindowsService

7 7 Arrays Data structure that holds other objects Each object in its own compartment Access compartments using [] $Processes = Get-Process $Processes[0].name $Processes[4].name ObjectObject ObjectObjectObjectObject ObjectObject ObjectObject

8 8 PowerShell Cmdlets Basic building blocks of PowerShell Always of the form verb-noun Today we are principally concerned with Gives us access to the WMI Get-Service Stop-Service Get-Eventlog Get-WMIObject

9 9 Computer Management Standards DMTF DMTF – Distributed Management Task Force Tasked with creating a model that manages computer systems DMTF DMTF – Distributed Management Task Force Tasked with creating a model that manages computer systems WBEM WBEM – Web Based Enterprise Management Technology agnostic method of remotely administering enterprise computer systems WBEM WBEM – Web Based Enterprise Management Technology agnostic method of remotely administering enterprise computer systems CIM CIM – Common Information Model An object model that represents the software and hardware components of a computer system CIM CIM – Common Information Model An object model that represents the software and hardware components of a computer system

10 10 What Is WMI? WMI WMI – Windows Management Instrumentation Microsoft’s implementation of WBEM and CIM A method of remotely administering Microsoft software WMI WMI – Windows Management Instrumentation Microsoft’s implementation of WBEM and CIM A method of remotely administering Microsoft software

11 11 WMI Architecture CIMV2 Namespace Virtualization Namespace ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass PowerShellPowerShell

12 12 Get-WMIObject Basic Parameters Namespace – Specifies the WMI repository where a class is located Class – Specifies the name of a WMI class to be retrieved List – Displays all classes in a given namespace ComputerName – Specifies the computer to connect to Credential – Specifies credentials to use to connect to host Get-WMIObject

13 13 Administering Windows Demo Location http://blogs.technet.com/benp

14 14 Administering Servers In Bulk Demo Location http://blogs.technet.com/benp

15 15 How Do I Know Which Classes To Use? Demo Location http://blogs.technet.com/benp

16 16 Administering Hyper-V Demo Location http://blogs.technet.com/benp

17 17 Administering Failover Clustering Demo Location http://blogs.technet.com/benp

18 18 Conclusion Learnt how to easily administer computers remotely Understand the basic concepts of WMI Understand how to use WMI with PowerShell Learnt how to create scripts that use WMI to remotely administer computers

19 www.microsoft.com/teched Tech·TalksTech·Ed Bloggers Live SimulcastsVirtual Labs http://microsoft.com/technet Evaluation licenses, pre-released products, and MORE! Resources for IT Professionals

20 20 www.microsoft.com/windowsserver2008 Want To Know More About Windows Server 2008? Come to the Blue TLC area (SVR) and see more about the Microsoft Windows Server product family Product and Feature Demo Booth’s Inspiration Happens {here] hourly demo’s Inspiration Happens {here] hourly demo’s Ask the Experts Ask the Experts Daily Chalktalks & Theatre sessions Daily Chalktalks & Theatre sessions Evals and Giveaway ’s Evals and Giveaway ’s Want To Know More About Windows Server 2008? Come to the Blue TLC area (SVR) and see more about the Microsoft Windows Server product family Product and Feature Demo Booth’s Inspiration Happens {here] hourly demo’s Inspiration Happens {here] hourly demo’s Ask the Experts Ask the Experts Daily Chalktalks & Theatre sessions Daily Chalktalks & Theatre sessions Evals and Giveaway ’s Evals and Giveaway ’s

21 1 Year Subscription! Complete an evaluation on CommNet and enter to win!

22 22

23 23 © 2008 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.

24


Download ppt "1 Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret Ben Pearce Premier Field Engineer Microsoft SVR387."

Similar presentations


Ads by Google