serial-number

Remotely get serial number and model from list in batch script

二次信任 提交于 2021-02-11 14:25:13
问题 I am trying to create a simple script that will use computer name from pclist.txt and get serial number and model and export to csv file. I just can not seem to figure out why it does not print the serial number and model in the csv file. Here is my simple script. @echo off for /f %%i in (pclist.txt) do ( for /f "tokens=2 delims==" %%M in ('wmic /node:%%i csproduct get name /value') do set "Model=%%M" for /f "tokens=2 delims==" %%I in ('wmic /node:%%i bios get serialnumber /value') do set "SN

Get Serial Number of USB device with Python 3

∥☆過路亽.° 提交于 2020-12-10 16:12:27
问题 I have been using pyusb to access the detail of a printer plugged in via USB. I currently have the following code working, but it appears that different devices require a different index. Here is my current code: import usb dev = usb.core.find(idProduct=0x001f) print(usb.util.get_string(dev,256,3)) dev2 = usb.core.find(idProduct=0x0009) print(usb.util.get_string(dev2,256,3)) The code for dev works perfectly, outputting a serial number, but dev2 outputs 'Zebra,' the manufacturer name. If I

Get Serial Number of USB device with Python 3

不羁的心 提交于 2020-12-10 16:05:51
问题 I have been using pyusb to access the detail of a printer plugged in via USB. I currently have the following code working, but it appears that different devices require a different index. Here is my current code: import usb dev = usb.core.find(idProduct=0x001f) print(usb.util.get_string(dev,256,3)) dev2 = usb.core.find(idProduct=0x0009) print(usb.util.get_string(dev2,256,3)) The code for dev works perfectly, outputting a serial number, but dev2 outputs 'Zebra,' the manufacturer name. If I

Getting BIOS Serial Number without WMI

血红的双手。 提交于 2020-02-23 06:53:40
问题 I'm attempting to get the serial number of the BIOS for a WinXP Embedded 32-bit system from a Win32 user mode application (MFC if that makes any diff). I'm trying to get the same serial number that you can get via WMI from the 'Win32_BIOS' class from member "SerialNumber." The problem is that I can't use WMI as this will have to run on older systems that don't have WMI installed. We basically have a series of machines with data encoded in this BIOS field so it can't be changed by the users,

How to get CPU serial under Linux without root permissions

守給你的承諾、 提交于 2020-01-23 06:12:57
问题 How can I get CPU serial number under Linux (Ubuntu) without root permissions? I tried cpuid command, it works without root permissions, but appears to return all zeros (I believe because something needs to be changed in BIOS). Can you please suggest me another way to retrieve CPU serial from a program without root permissions and without having to modify BIOS? 回答1: Root permissions required. The answer is dmidecode. If you need CPU ID: dmidecode | grep -w ID | sed "s/^.ID\: //g" This will

How can I read HDD volume serial number using VB 6?

蓝咒 提交于 2020-01-02 18:36:48
问题 How can I read HDD volume serial number using VB 6 but without using any ActiveX controls or third party add-ons? 回答1: Private Declare Function GetVolumeInformation _ Lib "kernel32" Alias "GetVolumeInformationA" _ (ByVal lpRootPathName As String, _ ByVal pVolumeNameBuffer As String, _ ByVal nVolumeNameSize As Long, _ lpVolumeSerialNumber As Long, _ lpMaximumComponentLength As Long, _ lpFileSystemFlags As Long, _ ByVal lpFileSystemNameBuffer As String, _ ByVal nFileSystemNameSize As Long) As

RFID algorithm to get card ID

試著忘記壹切 提交于 2020-01-02 04:59:05
问题 I receive bytes from an RFID reader when presenting a card, but I'm unable to figure out how to derive the card ID from these bytes. For example, I have a card that has these numbers printed on it: 0007625328 116,23152 . I would expect that this is the ID of that card, right? For this card, I get the following bytes from the reader (in hexadecimal representation): <42><09><01><74><00><74><5A><70> . 回答1: The decimal number 0007625328 translates to 0x00745A70 in hexadecimal representation. The

getSerial() method on Marshmallow

别说谁变了你拦得住时间么 提交于 2020-01-01 11:47:33
问题 I'm new with Java and android and i need to basically retrieve hardware serial number from my device. I've tried the following: import android.content.*; import android.os.Build; public static String recup_android() { String androidid; String SerialNumber; androidid=android.os.Build.MODEL; SerialNumber=android.os.Build.getserial; return SerialNumber; } I'm facing the following error: java:40: error: cannot find symbol SerialNumber=android.os.Build.getserial; ^ symbol: variable getserial

How can i set the serial for this serial form (Inno Setup)

二次信任 提交于 2019-12-30 03:36:06
问题 I was looking for a serial script and I found one here: CustomPage for Serial Number in Inno Setup But how can I set the serial because all serials are valid now. Thanks for your answer! 回答1: Extending the code from my previous post, if you want to compare the serial number with a constant value, you can modify the script this way. The only valid serial number which allows users to continue will be 62FFU-GA4N8-T8N6W-WLQJW-N6WLQ-AJKD6 : procedure OnSerialEditChange(Sender: TObject); var