Monday, February 1, 2016

PowerShell Tips : Getting hard disk Model and Serial Number by using PowerShell.

 

One of my colleague was struggling to find a model and serial number of installed Hard drive in the laptop. I was thinking to remove the hard drive from laptop physically ( oops!) , and I stop him to do that and showed him how cool is the PowerShell.

I teach him the below PowerShell cmdlet to find the hard drive model and Serial number ;o) .

Get-WmiObject win32_diskdrive | Select Model,SerialNumber

1_thumb2

With Regards.

Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube” channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.