I need to know how I can get RAM (Physical memory) serial number. I am using C# and I used WMI to get Hardware information but serial Number return null on another computers. I want to know how can I get it and work on any computer (not WMI) and if there is no another way can I write it in C++ and make connection between this function and my application?
This is some of my code:WqlObjectQuery Memory3_objectQuery = new WqlObjectQuery('Select * from Win32_PhysicalMemory');ManagementObjectSearcher Memory3_Searcher = new ManagementObjectSearcher(Memory3_objectQuery);foreach (ManagementObject MO2 in Memory3_Searcher.Get()){
1 Answer
Not the answer you're looking for? Browse other questions tagged c#-3.0 or ask your own question.
This post explains how to find serial number for various hardware devices – RAM, Hard disk, Motherboard on a computer. We can use WMIC command to find this information. These commands can be executed from Windows command prompt.
Get serial number of RAM chips.
This command lists serial number for each RAM module installed on the computer. Example below.
Get serial number for hard disks
Example:
Get serial number for mother boards
Get Serial number for cdrom drive
Replace ‘d:’ with the drive letter for the cdrom on your computer. You get error ‘No Instance(s) available’ if you don’t have CDROM drive on your computer.
All Intel® Solid State Drives and modules have labels. These product labels have the serial number, SA number, model number, and much more. The location and size of a label may vary depending on the model of the drive. See images of sample labels below.
Model number
The model number represents the make and model of your Intel® SSD or module.
Serial number
The serial number is a unique identification number to your Intel SSD or module. Some labels refer to the serial number as SN or ISN.
SA number
The SA number represents the stocking ID. The SA number is not required to obtain warranty information. However, the SA number is required to process an RMA request. Provide this information during the RMA process.
To check your warranty information on the Warranty Information page, enter your serial number, SN, or ISN number.
Memory Module |
Intel® Solid State Drives |
Extreme PRO CompactFlash Card
CFast Card
Extreme PRO UHS-II SD Card
USB Flash Drive(Cruzer)
CompactFlash Card
SD Card
microSD Card
Memory Stick PRO Duo card (MSPD)
Memory Serial Number Lookup
SanDisk ConnectSansa MP3 players
Serial Number
The following devices are serialized. Serial Number is required for product registration.
Solid State Drive (SSD)
Memory Serial Number Lookup
Extreme PRO CF (160MB/s only)CFast
Extreme PRO UHS-II SD Card
Product Code
SanDisk USB Flash Drive
The product code is located on the back or the side of the USB Flash Drive.
CompactFlash
The product code is located on the bottom side of the CompactFlash card.
SD
The product code is located on the back of the SD card.
microSD
Standard microSD - the product code is located on the front of a Standard microSD card.
Ultra, Extreme, Extreme PLUS, Extreme PRO and Pixtor - the product code is located on the back of the card.
microsd-ultra-xtreme-b
SanDisk Connect
SanDisk Wireless Media Drive
SanDisk Wireless Flash Drive
Memory Stick PRO Duo
The product code is located on the back of the MSPD card.
Sansa Clip+, Clip Zip, Clip Sport, Clip Jam, Clip Sport Plus, Clip Voice