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

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
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.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Building Social Games for Windows 8 with Windows Azure Name Title Microsoft Corporation.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
 Paul Vick Principal Architect Microsoft Corporation  Lucian Wischik Software Engineer Microsoft Corporation.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sr. Dir. – Systems Architecture Inlet Technologies.
Requirements Gathering Architectural Design DevelopmentUAT Visual Design Production Polish Concept Ideation Interaction Design.

IoCompleteRequest (Irp);... p = NULL; …f(p);
Ctrl-K, X Ctrl-K, S
Windows, PowerShell, And WMI Unveiling Microsoft's Best Kept Secret
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Title of Presentation 7/24/2019 8:53 PM
What’s New in Visual Studio 2012 for Web Developers
Presentation transcript:

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

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 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 PowerShell Essentials What?What? Interactive Shell New Scripting Language Why?Why? Feature Complete Set of Commands Consistent Method of Administration RevolutionaryRevolutionary

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 Objects Service Name PartsPropertiesPartsProperties StateState DescriptionDescription Stop()Stop() How to use Methods Methods Start()Start() Pause()Pause() WindowsServiceWindowsService

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 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 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 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 WMI Architecture CIMV2 Namespace Virtualization Namespace ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass ClassClass PowerShellPowerShell

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 Administering Windows Demo Location

14 Administering Servers In Bulk Demo Location

15 How Do I Know Which Classes To Use? Demo Location

16 Administering Hyper-V Demo Location

17 Administering Failover Clustering Demo Location

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

Tech·TalksTech·Ed Bloggers Live SimulcastsVirtual Labs Evaluation licenses, pre-released products, and MORE! Resources for IT Professionals

20 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

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

22

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.