1.

Solve : Find Hard Drive ID Without Using WMIC?

Answer»

Hi,

I have a problem trying to find the Hard Drive ID but cannot use WMIC as I am using a version of Windows PE that does not have it.

I know VOL C: Will return the volume ID, but I need the actual HD serial number.

Is there a way of doing this?

CheersIt'll be on the HDD label...Is Powershell an option?

Code: [Select]powershell "Get-WmiObject Win32_PhysicalMedia | Format-Table Tag, SerialNumber"Lol .. yes I know that, I need to find it using DOS and then (hopefully) SAVE it in a variable.

This is for a bespoke method of unattended imaging from a generic IMAGE onto several devices - all the devices are the same architecture ie same size hard drive, same PARTITION set up, same RAM, CPU etc.

Quote from: foxidrive on September 03, 2014, 09:09:23 AM

Is Powershell an option?

Code: [Select]powershell "Get-WmiObject Win32_PhysicalMedia | Format-Table Tag, SerialNumber"

Unfortunately no
The OP mentione4d WMIC as not available.
http://en.wikipedia.org/wiki/Windows_Management_Instrumentation
More info about it:
http://technet.microsoft.com/en-us/library/bb742610.aspx

Question: Why can it not be run under PE?
Because it's not included...and you cannot run outside apps on PE. Quote from: Fugazi on September 03, 2014, 09:15:11 AM
Unfortunately no

Is WSH/VBS available?But this thread says it can be installed into WIN_PE
http://www.msfn.org/board/topic/143622-how-to-install-wmic-in-winpe/Creating a WinPE LiveCD for WMI lookups

https://www.404techsupport.com/2012/03/creating-a-winpe-livecd-for-wmi-lookups/
Quote from: Geek-9pm on September 03, 2014, 09:47:30 AM
The OP mentione4d WMIC as not available.
http://en.wikipedia.org/wiki/Windows_Management_Instrumentation
More info about it:
http://technet.microsoft.com/en-us/library/bb742610.aspx

Question: Why can it not be run under PE?

Because it was not included in the wim when it was created. I am trying to use an already created wim without making changes to it. Quote from: Salmon Trout on September 03, 2014, 12:24:18 PM
Creating a WinPE LiveCD for WMI lookups

https://www.404techsupport.com/2012/03/creating-a-winpe-livecd-for-wmi-lookups/

Thank you, was hoping that I wouldn't have to create a NEW winpe livecd Quote from: Fugazi on September 04, 2014, 02:14:29 AM
Thank you, was hoping that I wouldn't have to create a new winpe livecd
Not that that is going to take you all day.     While you are at it, you might as well switch over to WinPE USB stick!


Discussion

No Comment Found