Monitor Serial Number. Identify what user has file open Is there any way to Identify what user has a file open via wmi or vbscript. Is the unique identifier of the device i successfully get the serial number of motherboard and harddisk but unable to get serial number of monitor, cd rom and ram kindly help me in this regard.
Well, at the end I could not find a way to use the WMIMonitorId class to get the serial number of a remote computer from a.NET App. However, I needed that value. So, I got a very good vbs script from.
I have to say that the author did a very good job. So, I am calling that script from my visuaL basic app, sending as argument the computer name and then wait for the vbscript to finish. I also changed the sript to allow it to update my access database. In that way, everytime a new computer is entered to the data base from my App, I could also get its monitor information.
I have been looking for a way of retrieving a monitor's serial number using WMI/DMI. By the looks of things it doesn't look possible, but I have found some articles that suggest you can get the serial number from the EDID value found in the registry (something like HKLM SYSTEM CurrentControlSet Enum DISPLAY DEL5062 5&2e45a7d0&0&22446688&01&00 Device Parameters EDID).
This may be the case but I don't know how to retrieve this from the binary value that I find as I have no experience in this. Has anyone done something similar to this before??? Thanks in advance Steve Tue, 20 Sep 2005 22:20:34 GMT. See this page: Offset 0x0c (12 decimal) starts the 8-byte serial number value. Here's the way I'd get it in WSH+JScript, you'll need to insert a good path to your own EDID key: function GetBinaryRegistryValue(hive, key, value) // Using WBEM StdRegProv to get the binary data var wbem = new ActiveXObject('WbemScripting.SWbemLocator'); var srp = wbem.ConnectServer(null, 'root default').Get('StdRegProv'); var ev = srp.Methods.Item('GetBinaryValue'); var ip = ev.InParameters.SpawnInstance; ip.hDefKey = HKLM; ip.sSubKeyName = key; ip.sValueName = value; var ret = srp.ExecMethod('GetBinaryValue', ip); return ret.ReturnValue?
Null: ret.uValue.toArray. I have been looking for a way of retrieving a monitor's serial number using WMI/DMI. By the looks of things it doesn't look possible, but I have found some articles that suggest you can get the serial number from the EDID value found in the registry (something like HKLM SYSTEM CurrentControlSet Enum DISPLAY DEL5062 5&2e45a7d0&0&22446688&01&00 Device Parameters EDID). This may be the case but I don't know how to retrieve this from the binary value that I find as I have no experience in this. Has anyone done something similar to this before??? Thanks in advance Steve Wed, 21 Sep 2005 01:31:10 GMT.
Thanks for the code. Unfortunately I am a complete binary newbie and the have never worked with java script before, only vb script. I have found some code on the Microsoft site which I have managed to get working to read the binary value, but now that I have that I have no idea how to extract the serial number from that. I guess it has something to do with the offsetting that you were talking about?
Hi, Steve Post your code and I will help you modify it to get the info from the byte array.Paul Randall Mon, 26 Sep 2005 08:14:34 GMT. Here is some code that I got from Microsoft which will enable me to read a binary value from the registry, all I need to do now apparently is offset the data to find my serial number. It sure sounded easy to do!!!
Thanks for the code. Unfortunately I am a complete binary newbie and the have never worked with java script before, only vb script. I have found some code on the Microsoft site which I have managed to get working to read the binary value, but now that I have that I have no idea how to extract the serial number from that.
I guess it has something to do with the offsetting that you were talking about? Hi, Steve Post your code and I will help you modify it to get the info from the byte array. -Paul Randall Tue, 27 Sep 2005 00:25:35 GMT. Hi, Steve The computer I'm using now is W98SE, so it took me a while to figure out that your script is for WXP, or some other post-W98 OS.
In any case, I just added another 'for j. Next' loop to the Case REGBINARY section to display the character equivalent of the binary data, and I tested it on my WXP system. Mine does not have the monitor's serial number, but it does have the brand and model which are now properly displayed. I manually searched my registry for part of my serial number and it was not found.
Post your code and I will help you modify it to get the info from the byte array.Paul Randall I forgot to mention that uBinary is just an array of numbers in the range 0 to 255, not a byte-array. Understands byte-arrays but needs an object like the ADODB Stream object to convert between character strings and byte-arrays. A byte-array has some structure which I don't understand, but in VBScript it certainly is not an array containing byte-sized numbers.Paul Randall Tue, 27 Sep 2005 12:31:32 GMT. Post your code and I will help you modify it to get the info from the byte array.Paul Randall I forgot to mention that uBinary is just an array of numbers in the range 0 to 255, not a byte-array. VBScript understands byte-arrays but needs an object like the ADODB Stream object to convert between character strings and byte-arrays.
![Wmic bios get serial number of computer Wmic bios get serial number of computer](/uploads/1/2/5/3/125361812/895484198.png)
A byte-array has some structure which I don't understand, but in VBScript it certainly is not an array containing byte-sized numbers. -Paul Randall Tue, 27 Sep 2005 22:26:48 GMT Page 1 of 1 9 post.