Skip to main content

How to get hard drive serial number from command line?

Being a network Administrator, you might be searching for “How to get hard drive serial number from command line?” I am writing this post to target IT Professional like me and also to clear some confusions about the general commands that mostly we think will return accurate results. In all discussion of Operating Systems, I will share my knowledge and will expect to my readers for giving me valuable feedback. You can also share your knowledge or some other commands that can be used to enhance this simple How To.

How to get hard drive serial number from command line?

This is a very generic question but I tried to write this post for all current generation operating systems. I also test all these commands on the computers available to me. Now, you can write me, if any of the command didn’t work or you have some better idea for this How To.
This might not directly work on Windows XP, Windows Server 2003 or its family. There is a work around, which I am unable to test with me, you can Install PowerShell version for your Windows XP or other same version of Windows like Windows Server 2003 and can use these commands and I hope these will work.

How to get hard drive serial number from command line on Windows 7/8/10?

Solution: Run Windows PowerShell as an Administrator. You can achieve this by simply typing “PowerShell” in Start Menu > Right click on Windows PowerShell > “Run as Administrator”.
Type any of the command to get the result:
  • WMIC DISKDRIVE GET SERIALNUMBER
  • WMIC PATH WIN32_PHYSICALMEDIA GET SERIALNUMBER: This will work perfectly on Windows 7 or newer versions as Microsoft Clearly mentioned that SerialNumber property is not available with Windows Server 2003 and Windows XP.

  • START > CONTROL PANEL > SYSTEM > DEVICE MANAGER (compmgmt.msc): Expand the Disk Drive and right click the HDD you want. Select Properties > Details Tab. This location is often refers to give you such information but you wont be able to get serial number information from this location.
  • EXE: This will help you to check your hardware information but it will not be helpful to find manufacturer serial number.
  • VOL or VOL C: This will show you serial number assigned to particular partition not the Physical Hard Disk.
  • LABLE: This will show you serial number assigned to particular partition not the Physical Hard Disk.

I hope this will help you for a quick inventory or something General IT Operations, Please show yourself in the comments.

Comments

Popular posts from this blog

Setting up per connection Limit Bandwidth on MikroTik Router

Generally, I do not prefer to add any unwanted restriction on the network user until its required due to some Administration reason. I know, there are more ways to tackle this setting up per connection Limit Bandwidth on MikroTik Router question comes into one’s mind but I resolve my concern while using MikroTik PCQs feature in MikroTik Queue Type and then calling this Queue Type to Simple Queue. There are more options for setting up per connection Limit Bandwidth on MikroTik Router but please share your concern to add anything else in this article. Let’s start to add our configurations; I am using WinBox for this Article but you can use anything you are convenient to use. Let’s start Step by Step procedure for Setting up per connection Limit Bandwidth on MikroTik Router, any version.  Setup Queue Types After Successful Login, click on Queues menu. Navigate to Queue Types and Press Add + (Plus Sign) to add a new Queue Type. Type a Name like in my scenario,...

DsReplicaGetInfo failed with status 8453 0x2105 on Windows Server 2008

I have two Domain Controller in my envorinment, Primary Domain Controller is Windows Server 2003 based and Additional domain controller is Windows Server 2008 based. When I Installed New 2008 ADC and after some time, when I check with repadmin /showreps found the error.... DsReplicaGetInfo() failed with status 8453 (0x2105):Replication access was denied. I really worried about Solutions: [ DsReplicaGetInfo failed with status 8453 ]

Event ID: 14158 Source: Microsoft Forefront TMG Firewall - How to change intra-array address in TMG 2010

In my organization, we are privious using Microsoft ISA Server 2006 ENT for proxy and gateway purpose. There are two website published on ISA 2006 Server and I install Microsoft TMG 2010, this morning. When I was making installations and configurations of my New Microsoft TMG 2010 Firewall Server with 192.168.10.17 but when I replace server with my existing Microsoft ISA Server 2006 and change Internal IP to my privous gateway IP, Microsoft TMG 2010 start showing events with ID 14158  and Configurations Error with "Description : The IP address specified for communication between this Forefront TMG computer (192.168.10.17) and other array members is not bound to a network adapter installed on this computer. The IP address specified for intra-array communication must be bound to a network adapter installed on the computer." Event ID 14158 Solution - 1: (Easy One)  Management Console : Start > All Programs > Microsoft Forefront TMG > Micr...