How to get hardware information of a computer on a local network. (IP, MAC, computer name, user, RAM, Mainbroad, Operating System, Processor,...) I researched the platform và Win32_ComputerSystem but could only check the current computer s information. Can anyone help me about the method and its code?
from tkinter import *
import wmi
import platform, socket
import cpuinfo
S = wmi.WMI()
my_system = S.Win32_ComputerSystem()[0]
Ram = str(round(int(my_system.TotalPhysicalMemory) / (1024.0 **3)))+" GB"
Ip = socket.gethostbyname(socket.gethostname())
CPUinfo = cpuinfo.get_cpu_info()[ brand_raw ]
OpSys = platform.platform()
User = my_system.UserName
master = Tk()
master.title( Get info PC )
Label(master, text="
Manufactured: "+ my_system.Manufacturer).grid(row=0,column=1)
Label(master, text="
Modell: "+ my_system.Model).grid(row=1,column=1)
Label(master, text="
Name: "+ my_system.Name).grid(row=2,column=1)
Label(master, text="
Operator System: "+ OpSys).grid(row=3,column=1)
Label(master, text="
System Type: "+ my_system.SystemType).grid(row=4,column=1)
Label(master, text="
RAM: "+ Ram).grid(row=5,column=1)
Label(master, text="
Processor: "+ CPUinfo).grid(row=6,column=1)
Label(master, text="Ip Address: "+ Ip).grid(row=7,column=1)
Label(master, text="
UserName: "+ User[User.find( \ )+1:]).grid(row=8,column=1)
master.mainloop()