Understanding WMI Scripting explains to Windows and Exchange Administrators how they can use the Windows Management Instrumentation (WMI) scriptable technology available in these products to ease their day-to-day management tasks. Under Windows. NET and Exchange 2000 (SP2), Microsoft is making solid enhancements in WMI. This will dramatically extend the scripting and manageability capabilities of Windows and Exchange. Illustrated with more than three hundred samples, the book links practical problems encountered by administrators to applicable scriptable solutions. Lissoir focuses not on MI programming aspects for developers but on how administrators can use what is available in Windows and Exchange for their admin work. WMI is a very important topic under Windows. NET and Exchange 2000 (SP2), so this book provides real added value to Windows/Exchange administrators. Although Exchange relies on Windows, no other book combines coverage of Windows and Exchange. ·Fine tune management of Windows servers·Achieve better system management and customize critical operations·Access hundreds of usable scripts in book and downloadable from web
Inhaltsverzeichnis
1;Front Cover;1 2;Understanding WMI Scripting;4 3;Copyright Page;5 4;Contents;8 5;Foreword;14 6;Preface;16 7;Acknowledgments;20 8;List of Figures;26 9;List of Samples;32 10;List of Tables;40 11;Chapter 1. Windows Script Host;44 11.1;1.1 Objective;44 11.2;1.2 Some scripting history;44 11.3;1.3 What is Windows Script Host?;48 11.4;1.4 The run-time parameters;52 11.5;1.5 Windows Script Host Object Model;54 11.6;1.6 Features coming from the WSH COM components;66 11.7;1.7 Features coming from the use of XML in WSH;91 11.8;1.8 Controlling the WSH script execution;122 11.9;1.9 Encrypting WSH script code;153 11.10;1.10 Debugging WSH scripts;157 11.11;1.11 Summary;159 11.12;1.12 Useful Internet URLs;160 12;Chapter 2. Starting with WMI;162 12.1;2.1 Objective;162 12.2;2.2 What is the DMTF?;162 12.3;2.3 What is WBEM?;165 12.4;2.4 What is CIM?;166 12.5;2.5 What is a MOF file?;187 12.6;2.6 What is xmlCIM?;194 12.7;2.7 The supported platforms;194 12.8;2.8 The Microsoft CIM implementation: WMI;196 12.9;2.9 Let's be more practical;228 12.10;2.10 Summary;248 12.11;2.11 Useful Internet URLs;249 13;Chapter 3.The WMI Query Language;250 13.1;3.1 Objective;250 13.2;3.2 The WMI query language;250 13.3;3.3 Extended WQL;308 13.4;3.4 Summary;309 14;Chapter 4. Scripting with WMI;310 14.1;4.1 Objective;310 14.2;4.2 The WMI object path;311 14.3;4.3 The WMI moniker;312 14.4;4.4 Exploring the WMI scripting API;329 14.5;4.5 Browsing the namespaces in the CIM repository;398 14.6;4.6 A script to explore the CIM repository;407 14.7;4.7 Summary;422 15;Chapter 5.Advanced WMI Scripting Techniques;424 15.1;5. I Objective;424 15.2;5.2 Working with CIM instances asynchronously;424 15.3;5.3 Error handling with WMI scripting;449 15.4;5.4 WMI DateTime Helper;473 15.5;5.5 WMI extension for ADSI;480 15.6;5.6 Representing WMI data in XML;490 15.7;5.7 Detecting changes with the Refresher object;495 15.8;5.8 Summary;503 16;Chapter 6. The WMI Events Scripting;504 16.1;6.1 Objective ;504 16.2;6.2 Event notification;5
04 16.3;6.3 Using the permanent event consumers;534 16.4;6.4 The permanent consumer registrations in the CIM repository;551 16.5;6.5 Scripting temporary event consumers;553 16.6;6.6 Going further with event scripting;567 16.7;6.7 Summary;597 16.8;6.8 What's next?;597 16.9;6.9 Useful Internet URLs;598 17;Index;600