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
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.