Aim
To write a python script which fetches some hardware information of remote hosts (windows only) and I am using wmi library to connect to the remote host hardware information :
GPU Serial Number
Operating system version
GPU model Name
processor name
My environment
language - python 3
connecting remote hosts using wmi library (works)
remote hosts operating system: windows 7 or windows 10
Problem
When I run the below code, it produces 100's of classes/functions, I don't even have an idea to use it to fulfill my need (get that hardware information)
Code
import wmi
conn = wmi.WMI()
for classes in conn.classes :
print(classes)
...... ...... ...... Win32_VideoConfiguration Win32_LoggedOnUser CIM_CompatibleProduct Win32_PnPDevicePropertyReal64Array Win32_AccountSID MSFT_NetCircularDependencyDemand CIM_BootOSFromFS Msft_WmiProvider_GetObjectAsyncEvent_Post Win32_SystemSystemDriver CIM_InstIndication ...... ...... ......
Final How to get that hardware information of remote hosts remotely using wmi library or any other possible way.