Microsoft Windows Scripting with WMI Self-Paced Learning Guide

by
Edition: 1st
Format: Paperback
Pub. Date: 2005-10-26
Publisher(s): Microsoft Press
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $47.24

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Go beyond simple queries and get the inside track on how to write system administration scripts with Windows Management Instrumentation (WMI)straight from a Microsoft scripting expert. With labs and lessons you complete at your own pace, this definitive tutorial helps you build your scripting expertise and provides the professional guidance you need to automate Windows administrative tasks.Teach yourself how to write and run scripts to: Configure WMIwithout editing the registry Audit and inventory software on local or remote desktops and servers Manage system components, including keyboards, motherboards, disk drives, and printers Monitor and report on real-time changes in system performance and respond to critical events Configure network components Test security access rights and make changes to one or multiple systemsAnd learn how to: Test, diagnose, and resolve errors with WMI Back-up and restore the registry PLUSGet more than 900 script samples that you can use to help simply the management of your system resourcesCD-ROM features: More than 900 sample scripts to adapt for your own work Time-saving scripting toolsincluding Script-o-Matic 2.0 and WMIcheck Fully searchable eBook

Author Biography

Ed Wilson is a well-known scripting expert who delivers popular scripting workshops to Microsoft customers and employees worldwide. He's written several books on Windows scripting, including Windows PowerShell 2.0 Best Practices, Microsoft Windows PowerShell Step By Step, and Microsoft VBScript Step by Step. Ed is a senior consultant at Microsoft Corporation and writes Hey, Scripting Guy!, one of the most popular TechNet blogs.

Table of Contents

Acknowledgmentsp. xix
About This Bookp. xxi
Getting Started with WMI
Introducing WMIp. 3
Before You Beginp. 3
Defining WMIp. 4
Querying and Starting a Servicep. 6
Capturing the Return Codep. 8
Using WMI as a Toolp. 9
Implementing Microsoft WBEMp. 10
Describing Objects Using the CIMp. 11
Implementing Programming Interfacesp. 19
Using the WMI Architecturep. 20
Using Managed Objects and Providersp. 20
WMI Infrastructurep. 21
Summaryp. 24
Quiz Yourselfp. 24
On Your Ownp. 24
Configuring WMIp. 29
Before You Beginp. 29
Understanding the WMI Control Snap-inp. 30
Configuring Loggingp. 30
Backing Up the WMI Repositoryp. 32
Restoring the WMI Repositoryp. 33
Changing the Target of Operationsp. 35
Understanding Registry Settingsp. 36
Using the CIM Object Managerp. 39
Implementing Providersp. 41
Automatically Recovering Providersp. 42
Exploring WMI Settings with WMIp. 45
Summaryp. 46
Quiz Yourselfp. 46
On Your Ownp. 47
WMI Queries and Events
Using Basic WMI Queriesp. 55
Before You Beginp. 55
Understanding WQLp. 56
Using the Monikerp. 56
Using the Defaultsp. 58
Understanding Data Queriesp. 59
Using the Select Statementp. 60
Where Is the Where Clause?p. 62
Understanding Event Queriesp. 68
Understanding Schema Queriesp. 71
Summaryp. 76
Quiz Yourselfp. 76
On Your Ownp. 77
Using Advanced WMI Queriesp. 81
Before You Beginp. 81
Using_Classp. 82
Using ISAp. 82
Scripting API Objectsp. 83
Using the associators of Commandp. 83
Using the references of Commandp. 85
Using the ExecQuery Methodp. 88
Using the Get Methodp. 89
Introducing New Objects in Windows XP and Windows Server 2003p. 96
Summaryp. 98
Quiz Yourselfp. 98
On Your Ownp. 99
Using WMI Eventsp. 103
Before You Beginp. 103
Using SWbemEventSourcep. 104
Working with SWbemServicesp. 106
Understanding Event Consumersp. 109
Using SMTPEventConsumerp. 113
Understanding the New Event Consumersp. 114
Working with Different Types of Eventsp. 115
Summaryp. 117
Quiz Yourselfp. 117
On Your Ownp. 118
Connect Server and Additional Privileges
Using the SWbemLocator Methodsp. 123
Before You Beginp. 123
Using the Locator Objectp. 124
Using ConnectServer in Different Waysp. 125
Summaryp. 133
Quiz Yourselfp. 134
On Your Ownp. 134
Requesting Additional Privileges for WMIp. 139
Before You Beginp. 139
Understanding Privilegesp. 140
Obtaining a Collection of Privilegesp. 141
Representing a Single Privilegep. 142
Adding Additional Privilegesp. 143
Using Privilegesp. 147
Summaryp. 150
Quiz Yourselfp. 151
On Your Ownp. 151
Classes
Understanding WMI Classesp. 157
Before You Beginp. 157
Using the System Classesp. 157
Understanding the CIM Classesp. 163
Summaryp. 167
Quiz Yourselfp. 168
On Your Ownp. 168
Using Win32 WMI Classesp. 173
Before You Beginp. 173
Working with Applicationsp. 174
Understanding WMI Service Managementp. 181
Summaryp. 183
Quiz Yourselfp. 183
On Your Ownp. 184
Using System Hardware Classesp. 189
Before You Beginp. 189
Using Cooling Device Classesp. 189
Examining the Input Device Classesp. 192
Mass Storage Classesp. 194
Motherboard, Controller, and Port Classesp. 198
Networking Device Classesp. 199
Power Classesp. 204
Printing Classesp. 207
Telephony Classesp. 211
Video and Monitor Classesp. 212
Summaryp. 215
Quiz Yourselfp. 216
On Your Ownp. 216
Using Operating System Classesp. 221
Before You Beginp. 221
Using the COM-Related Classesp. 221
Examining the Desktopp. 222
Listing the Drivers on a Systemp. 223
Exploring the File Systemp. 224
Understanding Job Objectsp. 226
Working with Memory Devices and Page Filesp. 228
Using the Multimedia Audiovisual Classp. 229
Working with Networkingp. 230
Using Operating System Eventsp. 231
Examining Operating System Settingsp. 232
Employing the Process Classesp. 232
Working with the Registryp. 234
Leveraging the Scheduler Job Classesp. 235
Using the Security Classesp. 238
Using the Service Classesp. 241
Working with Sharesp. 243
Starting with the Start Menup. 244
Monitoring Storagep. 245
Understanding User Classesp. 246
Leveraging the Windows NT Event Logp. 247
Easing Windows Product Activationp. 249
Summaryp. 250
Quiz Yourselfp. 250
On Your Ownp. 251
Using the Performance Counter Classesp. 255
Before You Beginp. 255
Using Formatted Performance Counter Classesp. 256
Refreshing the Datap. 258
Using Raw Performance Counter Classesp. 263
Summaryp. 265
Quiz Yourselfp. 265
On Your Ownp. 266
Security and Troubleshooting
Understanding WMI Securityp. 273
Before You Beginp. 273
Using WMI Namespace Securityp. 274
Modifying Security on WMI Namespacesp. 274
Scripting WMI Namespace Securityp. 277
Working with Share Permissionsp. 281
Summaryp. 285
Quiz Yourselfp. 286
On Your Ownp. 286
Troubleshooting WMIp. 291
Before You Beginp. 291
Identifying the Problemp. 291
Testing the Local WMI Servicep. 292
Testing Remote WMI Servicep. 296
Testing the Scripting Interfacep. 297
Obtaining Diagnostic Informationp. 298
General WMI Troubleshooting Stepsp. 303
Summaryp. 304
Quiz Yourselfp. 304
On Your Ownp. 305
Appendixes
Scripting API Methods and Propertiesp. 313
WMI Security Constantsp. 317
WMI Security Privileges and Operationsp. 319
Computer System Hardware Classesp. 321
Operating System Classesp. 329
Performance Monitor Classesp. 345
About the Authorp. 373
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.