11
WELCOME TO TECH | IMMERSION Windows PowerShell and WMI Stuff Presenter: Don Jones

PowerShell and WMI

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: PowerShell and WMI

WELCOME TO TECH | IMMERSION

Windows PowerShell and WMI StuffPresenter: Don Jones

Page 2: PowerShell and WMI

This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it

within your own organization however you like.

For more information on our company, including information on private classes and upcoming conference appearances, please

visit our Web site, www.ConcentratedTech.com.

For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg

This work is copyright ©Concentrated Technology, LLC

Page 3: PowerShell and WMI

Reaching the Enterprise From Your Chair by Using PowerShell and WMI

o What the heck is WMI – and why is it so ugly?

o PowerShell and WMI: A Match Made in Redmond

o Tricks and Trips for Wrangling WMIo Building an Inventory Tool that Uses WMI

Page 4: PowerShell and WMI

A Bit About Me

o Windows PowerShell MVP

o Blogger, WindowsITPro.com

o @concentrateddono Linkedin.com/in/

concentrateddon

o Learn Windows PowerShell in a Month of Lunches

o Windows PowerShell v2.0: TFM

o “Lunches” is available here for a special discount that includes its companion DVD!

Page 5: PowerShell and WMI

Oh, and Buy My Book

o Learn Windows PowerShell in a Month of Lunches

o Get an autographed copy AND the companion video DVD shipped to you for $85.

o Cash or credit.

o Or at least check out MoreLunches.com – free articles, free videos, and lots more resources.

o Public class this October at Interface!

Page 6: PowerShell and WMI

WMI: The Good, the Bad, the Ugly

o What was WMI meant to solve?o How is WMI organized?o How do you explore WMI?o Where is WMI documented?

Page 7: PowerShell and WMI

WMI and PowerShell

o It’s all in Get-WmiObjecto (and Invoke-WmiMethod, sometimes, or

ForEach when that doesn’t work)o Let’s look at…

– List– Filter– Class

o And how about the output?

Page 8: PowerShell and WMI

Tips for Wrangling WMI

o Google, Google, Google. Or Bing.o Pipe objects to Format-List *o Pipe objects to Get-Membero Ask for help (from people, not Help)o The __SERVER property

Page 9: PowerShell and WMI

Building a Tool

o Let’s make WMI useful and build a self-contained advanced function that utilizes WMI to retrieve multiple pieces of inventory information– OS version info– Disk info– BIOS information– Processor architecture

Page 10: PowerShell and WMI

Thank you.

Page 11: PowerShell and WMI

This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it

within your own organization however you like.

For more information on our company, including information on private classes and upcoming conference appearances, please

visit our Web site, www.ConcentratedTech.com.

For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg

This work is copyright ©Concentrated Technology, LLC