webcamgaq.blogg.se

Find monitor serial number remotely
Find monitor serial number remotely







The proposed question doesn't specify native-only solutions, which is an important requirement for me and many other users who want to be able to accomplish such a relatively simple task without downloading or installing additional software. This is evidenced by the fact that none of the answers to the supposed original question correctly answer mine, despite said question having existed since 2009, and by the fact that the only correct answer to my question is an obscure command-line one. I did so knowing that it is notoriously hard for Windows 7 users to obtain specifics for said piece of hardware with a native software solution. My question, by contrast, is asking about a piece of hardware specific to desktop computers. The proposed question is incredibly broad, seeking to cover all (laptop) hardware with a single solution. The proposed question is specific to laptops. It isn't a duplicate of the proposed question because: This question was initially claimed to be a duplicate of another question.

find monitor serial number remotely

Public Shared Function DeviceIoControl(hDevice As IntPtr,īyRef lpOverlapped As can I get the manufacturer and model of my monitor from within Windows, without having to disconnect and manhandle a 27" inch monitor looking for a label that may not exist, or download any third-party software? It seems odd that there's no native, software-only solution to do this on Windows 7. Public Const TRUNCATE_EXISTING As Integer = 5 Public Const OPEN_EXISTING As Integer = 3 Public Const CREATE_ALWAYS As Integer = 2

find monitor serial number remotely

Public Const FILE_ATTRIBUTE_NORMAL As Integer = &H80 Public Const FILE_SHARE_DELETE As Integer = 4 Public Const FILE_SHARE_WRITE As Integer = 2 Public Const FILE_SHARE_READ As Integer = 1 Public Const IOCTL_STORAGE_QUERY_PROPERTY As Integer = &H2D1400įriend Shared Function CreateFile(ByVal lpFileName As String, ByVal dwDesiredAccess As Integer, ByVal dwShareMode As Integer, ByVal lpSECURITY_ATTRIBUTES As IntPtr, ByVal dwCreationDisposition As Integer, ByVal dwFlagsAndAttributes As Integer, ByVal hTemplateFile As IntPtr) As IntPtrįriend Shared Function CloseHandle(hObject As IntPtr) As Boolean With declarations : Public Const IOCTL_STORAGE_GET_DEVICE_NUMBER As Integer = &H2D1080 Gwmi Win32_USBControllerDevice |%", sSerialNumber) Getting it from USB controller using something like below:. Powershell command of "get-disk | select serialnumber" Problem is that a lot of them seem to show wrong valuesįor example if I look in properties of drive in Device Manager I can see serial number of drive is:-īut if I use WMI (just quickly from command line using "wmic diskdrive get serialnumber" for now OR using say WMI Explorer) it shows it as:-Ġ700079716000020 e.g. Tried various different methods as a test (not all VB related I know, but good for testing) Need to be able to retrieve serial number of USB hard drives and flash drives









Find monitor serial number remotely