A
AbanoubZak
Guest
Hello
Hello i need to get the serial number of the main hard drive that have the OS system (not the volume) and also exclude the other drives and removable drive also.
also i'm not sure about the difference between the commands "Win32_DiskDrive" and "Win32_PhysicalMedia"
my code is for now
Dim HDS As String
Dim hdd As New ManagementObjectSearcher("select * from Win32_DiskDrive")
For Each hd In hdd.Get
HDS = hd("SerialNumber")
Next
Thanks you
Continue reading...
Hello i need to get the serial number of the main hard drive that have the OS system (not the volume) and also exclude the other drives and removable drive also.
also i'm not sure about the difference between the commands "Win32_DiskDrive" and "Win32_PhysicalMedia"
my code is for now
Dim HDS As String
Dim hdd As New ManagementObjectSearcher("select * from Win32_DiskDrive")
For Each hd In hdd.Get
HDS = hd("SerialNumber")
Next
Thanks you
Continue reading...