Windows PowerShell 3.0 Step by Step - Cdn.oreilly.com - O'Reilly
Windows PowerShell 3.0 Step by Step - Cdn.oreilly.com - O'Reilly
Windows PowerShell 3.0 Step by Step - Cdn.oreilly.com - O'Reilly
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 11 Querying WMI 307<br />
Alternate ways to connect to WMI ................................307<br />
Selective data from all instances .............................316<br />
Selecting multiple properties ................................316<br />
Choosing specific instances .................................319<br />
Utilizing an operator .......................................321<br />
Where is the where? ........................................325<br />
Shortening the syntax ......................................325<br />
Working with software: step-<strong>by</strong>-step exercises ......................327<br />
Chapter 11 quick reference ......................................335<br />
Chapter 12 Remoting WMI 337<br />
Using WMI against remote systems ...............................337<br />
Supplying alternate credentials for the remote connection ......338<br />
Using <strong>Windows</strong> <strong>PowerShell</strong> remoting to run WMI. . . . . . . . . . . . . .341<br />
Using CIM classes to query WMI classes ......................343<br />
Working with remote results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .344<br />
Reducing data via <strong>Windows</strong> <strong>PowerShell</strong> parameters ............347<br />
Running WMI jobs ..............................................350<br />
Using <strong>Windows</strong> <strong>PowerShell</strong> remoting and WMI:<br />
<strong>Step</strong>-<strong>by</strong>-step exercises ........................................352<br />
Chapter 12 quick reference ......................................354<br />
Chapter 13 Calling WMI Methods on WMI Classes 355<br />
Using WMI cmdlets to execute instance methods ...................355<br />
Using the terminate method directly .........................357<br />
Using the Invoke-WmiMethod cmdlet ........................358<br />
Using the [wmi] type accelerator ............................360<br />
Using WMI to work with static methods ............................361<br />
Executing instance methods: step-<strong>by</strong>-step exercises .................364<br />
Chapter 13 quick reference ......................................366<br />
Contents xiii