Python Forum
wmi returns no data from an other pc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wmi returns no data from an other pc
#1
I 'm trying to secure my program using the pc 'c data (disk drives and processor).
I use this code:

import wmi
c = wmi.WMI()
for item in c.Win32_PhysicalMedia():
    hdd = hdd + str(item)
for s in c.Win32_Processor():
    hdd = hdd + str(s)
 print(hdd)
It works fine in my pc, but in my client 's pc it returns nothing!
And no error is raised.
Isn't this the correct way to check for disks' and processor 's data?
Reply


Messages In This Thread
wmi returns no data from an other pc - by panoss - May-29-2017, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How returns behave in a function with multiple returns? khasbay 1 319 May-19-2024, 08:48 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020