Windows Operating System Internals Assignments OS12
© 2005 David A. Solomon and Mark Russinovich
Assignment 12.1:
Explain to your instructor the architecture of Windows Management
Instrumentation. Explain the concepts of “managed objects”, “providers”, “WMI infrastructure”, and “WMI consumers”.
Assignment 12.2:
Explain to your instructor the WMI mechanisms used by the following script:
strComputer = ”fin” # target computer’s name
Set wbemServices = GetObject("winmgmts:\\" & strComputer) Set wbemObjectSet = wbemServices.InstancesOf(
"Win32_LogicalMemoryConfiguration") For Each wbemObject In wbemObjectSet
WScript.Echo "Total Physical Memory (kb): " &
wbemObject.TotalPhysicalMemory Next
Assignment 12.3:
Explain to your instructor:
What is the registry
How is it structured
When is the registry read and written
Assignment 12.4:
Look up the MSDN documentation for RegQueryValueEx(). Explain to your
instructor how this function can be used to access performance counter information obtained through performance data providers and made visible in the registry.
December 2005 by David A. Solomon and Mark Russinovich with Andreas Polze 1