ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
WMI-Computer System Hardware Classes(2)
Benson
WMI-Computer System Hardware Classes
¡ï WMI, Windows Management Instrumentation
¡ï Based on Windows Management Specification
¡ï Infrastructure for managing data and operations on Windows operating
systems
¡ï Write WMI scripts or applications to automate administrative tasks
on remote computers.
WMI-Computer System Hardware Classes
(Ò») Install WMI
(¶þ) import wmi
(Èý) Computer System Hardware Classes
(ËÄ) Cooling Device
(Îå) Input Device
(Áù) Mass Storage
(Æß) Motherboard, Controller, and Port
(°Ë) Networking Device
(¾Å) Power
(Ê®) Printing
(ʮһ) Telephony
(Ê®¶þ) Video and Monitor
WMI-Computer System Hardware Classes
(°Ë) Networking Device
¡ïThe Networking Devices subcategory groups classes that represent the
network interface controller, its configurations, and its settings.
Description
Class
Networking Device
Win32_NetworkAdapter
Represents a network adapter on a
computer system running Windows.
Win32_NetworkAdapterConfiguration
Represents the attributes and
behaviors of a network adapter. The
class is not guaranteed to be
supported after the ratificationof the
Distributed Management Task Force
(DMTF) CIM network specification.
Win32_NetworkAdapterSetting
Relates a network adapter and its
configurationsettings.
WMI-Computer System Hardware Classes
[Win32_NetworkAdapter]
WMI-Computer System Hardware Classes
[Win32_NetworkAdapterConfiguration]
WMI-Computer System Hardware Classes
[Win32_NetworkAdapterSetting]
WMI-Computer System Hardware Classes
(¾Å) Power
¡ïThe Power subcategory groups classes that represent power supplies,
batteries, and events related to these devices.
Description
Class
Power
Win32_Battery
Represents a battery
connected to the
computer system.
Win32_Curre
ntProbe
Represents the
properties of a
current monitoring
sensor (ammeter).
Win32_Portab
leBattery
Represents the
properties of a
portable battery, such
as one used for a
notebook computer.
Win32_PowerMa
nagementEvent
Represents power
management events
resulting from power
state changes.
Win32_VoltagePro
be
Represents the
properties of a
voltage sensor
(electronic
voltmeter).
WMI-Computer System Hardware Classes
[Win32_Battery]
[Win32_CurrentProbe]
WMI-Computer System Hardware Classes
[Win32_PortableBattery]
[Win32_PowerManagementEvent]
WMI-Computer System Hardware Classes
[Win32_VoltageProbe]
WMI-Computer System Hardware Classes
(Ê®) Printing
¡ïThe Printing subcategory groups classes that represent printers,
printer configurations, and print jobs.
Description
Class
Printing(1)
Win32_Driver
ForDevice
Relates a printer to a
printer driver.
Win32_
Printer
Represents a device
connected to a
computer system
running Windows that
is capable of
reproducinga visual
image on a medium.
Win32_Printer
Configuration
Defines the
configurationfor a
printer device.
Win32_Printe
rController
Relates a printer and
the local device to
which the printer is
connected.
Win32_Printer
Driver
Represents the drivers
for
a Win32_Printer insta
nce.
...
...
WMI-Computer System Hardware Classes
Description
Class
Printing(2)
...
...
Win32_PrinterDriv
erDll
Relates a local
printer and its
driver file (not the
driver itself).
Win32_PrinterSet
ting
Relates a printer
and its
configuration
settings.
Win32_PrintJ
ob
Represents a print
job generated by a
Windows-based
application.
Win32_TCPIPPrinter
Port
Represents a
TCP/IP service
access point.
WMI-Computer System Hardware Classes
[Win32_DriverForDevice]
WMI-Computer System Hardware Classes
[Win32_Printer]
WMI-Computer System Hardware Classes
WMI-Computer System Hardware Classes
[Win32_PrinterConfiguration]
WMI-Computer System Hardware Classes
[Win32_PrinterController]
[Win32_PrinterDriver]
WMI-Computer System Hardware Classes
[Win32_PrinterDriverDll]
[Win32_PrinterSetting]
WMI-Computer System Hardware Classes
[Win32_PrintJob]
WMI-Computer System Hardware Classes
[Win32_TCPIPPrinterPort]
WMI-Computer System Hardware Classes
(ʮһ) Telephony
¡ïThe Telephony subcategory groups classes that represent "plain old
telephone" modem devices and their associated serial connections.
Description
Class
Telephony
Win32_POTSModem
Represents the services and
characteristics of a Plain Old
Telephone Service (POTS)
modem on a computer
system running Windows.
Win32_POTSModemToSerialPort
Relates a modem and the
serial port the modem uses.
WMI-Computer System Hardware Classes
[Win32_POTSModem]
[Win32_POTSModemToSerialPort]
WMI-Computer System Hardware Classes
(Ê®¶þ) Video and Monitor
¡ïThe Video and Monitors subcategory groups classes that represent
monitors, video cards, and their associated settings.
Description
Class
Video and
Monitor
Win32_DesktopMonitor
Represents the type of monitor
or display device attached to the
computer system.
Win32_DisplayCont
rollerConfiguration
Represents the video adapter
configurationinformation of a
computer system running
Windows. This class is obsolete.
In place of this class, use the
properties in
the Win32_VideoController, Wi
n32_DesktopMonitor,
and CIM_VideoControllerResolut
ion classes.
Win32_VideoController
Represents the capabilities and
management capacity of the
video controller on a computer
system running Windows.
Win32_VideoSettings
Relates a video controller and
video settings that can be
applied to it.
WMI-Computer System Hardware Classes
[Win32_DesktopMonitor]
WMI-Computer System Hardware Classes
[Win32_DisplayControllerConfiguration]
WMI-Computer System Hardware Classes
[Win32_VideoController]
WMI-Computer System Hardware Classes
[Win32_VideoSettings]
WMI-Computer System Hardware Classes
Reference:
https://docs.microsoft.com/zh-tw/windows/desktop/WmiSdk/wmi-start-page
https://docs.microsoft.com/en-us/previous-versions//aa394084(v=vs.85)

More Related Content

Wmi computer system hardware classes(2) - v01

  • 1. WMI-Computer System Hardware Classes(2) Benson
  • 2. WMI-Computer System Hardware Classes ¡ï WMI, Windows Management Instrumentation ¡ï Based on Windows Management Specification ¡ï Infrastructure for managing data and operations on Windows operating systems ¡ï Write WMI scripts or applications to automate administrative tasks on remote computers.
  • 3. WMI-Computer System Hardware Classes (Ò») Install WMI (¶þ) import wmi (Èý) Computer System Hardware Classes (ËÄ) Cooling Device (Îå) Input Device (Áù) Mass Storage (Æß) Motherboard, Controller, and Port (°Ë) Networking Device (¾Å) Power (Ê®) Printing (ʮһ) Telephony (Ê®¶þ) Video and Monitor
  • 4. WMI-Computer System Hardware Classes (°Ë) Networking Device ¡ïThe Networking Devices subcategory groups classes that represent the network interface controller, its configurations, and its settings. Description Class Networking Device Win32_NetworkAdapter Represents a network adapter on a computer system running Windows. Win32_NetworkAdapterConfiguration Represents the attributes and behaviors of a network adapter. The class is not guaranteed to be supported after the ratificationof the Distributed Management Task Force (DMTF) CIM network specification. Win32_NetworkAdapterSetting Relates a network adapter and its configurationsettings.
  • 5. WMI-Computer System Hardware Classes [Win32_NetworkAdapter]
  • 6. WMI-Computer System Hardware Classes [Win32_NetworkAdapterConfiguration]
  • 7. WMI-Computer System Hardware Classes [Win32_NetworkAdapterSetting]
  • 8. WMI-Computer System Hardware Classes (¾Å) Power ¡ïThe Power subcategory groups classes that represent power supplies, batteries, and events related to these devices. Description Class Power Win32_Battery Represents a battery connected to the computer system. Win32_Curre ntProbe Represents the properties of a current monitoring sensor (ammeter). Win32_Portab leBattery Represents the properties of a portable battery, such as one used for a notebook computer. Win32_PowerMa nagementEvent Represents power management events resulting from power state changes. Win32_VoltagePro be Represents the properties of a voltage sensor (electronic voltmeter).
  • 9. WMI-Computer System Hardware Classes [Win32_Battery] [Win32_CurrentProbe]
  • 10. WMI-Computer System Hardware Classes [Win32_PortableBattery] [Win32_PowerManagementEvent]
  • 11. WMI-Computer System Hardware Classes [Win32_VoltageProbe]
  • 12. WMI-Computer System Hardware Classes (Ê®) Printing ¡ïThe Printing subcategory groups classes that represent printers, printer configurations, and print jobs. Description Class Printing(1) Win32_Driver ForDevice Relates a printer to a printer driver. Win32_ Printer Represents a device connected to a computer system running Windows that is capable of reproducinga visual image on a medium. Win32_Printer Configuration Defines the configurationfor a printer device. Win32_Printe rController Relates a printer and the local device to which the printer is connected. Win32_Printer Driver Represents the drivers for a Win32_Printer insta nce. ... ...
  • 13. WMI-Computer System Hardware Classes Description Class Printing(2) ... ... Win32_PrinterDriv erDll Relates a local printer and its driver file (not the driver itself). Win32_PrinterSet ting Relates a printer and its configuration settings. Win32_PrintJ ob Represents a print job generated by a Windows-based application. Win32_TCPIPPrinter Port Represents a TCP/IP service access point.
  • 14. WMI-Computer System Hardware Classes [Win32_DriverForDevice]
  • 15. WMI-Computer System Hardware Classes [Win32_Printer]
  • 17. WMI-Computer System Hardware Classes [Win32_PrinterConfiguration]
  • 18. WMI-Computer System Hardware Classes [Win32_PrinterController] [Win32_PrinterDriver]
  • 19. WMI-Computer System Hardware Classes [Win32_PrinterDriverDll] [Win32_PrinterSetting]
  • 20. WMI-Computer System Hardware Classes [Win32_PrintJob]
  • 21. WMI-Computer System Hardware Classes [Win32_TCPIPPrinterPort]
  • 22. WMI-Computer System Hardware Classes (ʮһ) Telephony ¡ïThe Telephony subcategory groups classes that represent "plain old telephone" modem devices and their associated serial connections. Description Class Telephony Win32_POTSModem Represents the services and characteristics of a Plain Old Telephone Service (POTS) modem on a computer system running Windows. Win32_POTSModemToSerialPort Relates a modem and the serial port the modem uses.
  • 23. WMI-Computer System Hardware Classes [Win32_POTSModem] [Win32_POTSModemToSerialPort]
  • 24. WMI-Computer System Hardware Classes (Ê®¶þ) Video and Monitor ¡ïThe Video and Monitors subcategory groups classes that represent monitors, video cards, and their associated settings. Description Class Video and Monitor Win32_DesktopMonitor Represents the type of monitor or display device attached to the computer system. Win32_DisplayCont rollerConfiguration Represents the video adapter configurationinformation of a computer system running Windows. This class is obsolete. In place of this class, use the properties in the Win32_VideoController, Wi n32_DesktopMonitor, and CIM_VideoControllerResolut ion classes. Win32_VideoController Represents the capabilities and management capacity of the video controller on a computer system running Windows. Win32_VideoSettings Relates a video controller and video settings that can be applied to it.
  • 25. WMI-Computer System Hardware Classes [Win32_DesktopMonitor]
  • 26. WMI-Computer System Hardware Classes [Win32_DisplayControllerConfiguration]
  • 27. WMI-Computer System Hardware Classes [Win32_VideoController]
  • 28. WMI-Computer System Hardware Classes [Win32_VideoSettings]
  • 29. WMI-Computer System Hardware Classes Reference: https://docs.microsoft.com/zh-tw/windows/desktop/WmiSdk/wmi-start-page https://docs.microsoft.com/en-us/previous-versions//aa394084(v=vs.85)