Some Useful Scripts


In the first book, Understanding WMI Scripting, we have seen what WMI is and how to script on top of the WMI scripting API. Some of the scripts developed throughout this first book are available in the appendix of this second book for information completeness. Therefore, if some scripting techniques are referring to these script samples, the full listing is available for reference in the appendix. However, for more detailed explanations, I recommend that you refer to the first book, Understanding WMI Scripting (ISBN 1555582664). For those of you having strong WMI experience and who didn't read the first book, here is the list of the reused scripts with their respective purpose:

  • Sample 4.6, "Retrieving all instances of the Win32_Service class with their properties" called InstancesOfObjectClassWithAPI.wsf.

  • Sample 4.14, "Setting one read/write property of a Win32_Registry class instance directly" called SetWin32_RegistrySizeWithAPI (Direct Properties).wsf.

  • Sample 4.15, "Setting one read/write property of a Win32_Registry class instance indirectly" called SetWin32_RegistrySizeWithAPI (Indirect Properties).wsf.

  • Sample 4.30, "A generic routine to display the SWbemPropertySet object" called DisplaylnstanceProperties.vbs.

  • Sample 4.31, "Browsing the namespaces to find class definitions" called BrowseNameSpaceForClassWithAPI.wsf.

  • Sample 4.32, "A Windows Script File self-documenting the CIM repository classes in an Excel sheet" called LoadCIMinXL.wsf.

  • Sample 6.14, "A generic script for synchronous event notification" called GenericEventSyncConsumer.wsf.

  • Sample 6.17, "A generic script for asynchronous event notification" called GenericEventAsyncConsumer.wsf.

  • Samples 6.18 through 6.21, "Monitoring, managing, and alerting script for the Windows services" called ServiceMonitor.wsf.

For reference, you will find the listing of these scripts in the appendix.




Leveraging WMI Scripting
Leveraging WMI Scripting: Using Windows Management Instrumentation to Solve Windows Management Problems (HP Technologies)
ISBN: 1555582990
EAN: 2147483647
Year: 2003
Pages: 82
Authors: Alain Lissoir

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net