Is it possible to somehow get the serial number of the HDD in WindowsXP by regular means? Request via win32_physicalmedia and win32_diskdrive does not work on XP.
2 answers
No, in Windows XP (and in Server 2003) this is possible only on a very small number of computers. In my memory, it was a laptop not from Intel, not from HP, and even then, I suspect, the Win32_PhysicalMedia class was rewritten by a third-party program.
Formally, the Win32_PhysicalMedia class has a SerialNumber property, but under Windows XP it is empty.
So getting the serial number will have a different way. Of course, you can create your own WMI class, which will return this value, but the game is not worth the candle.
You can create a console application that displays a serial, you can access it from powershell, for example, like this:
$getserial = 'path\hddserial.exe' Start-Process -FilePath $getserial -ArgumentList 'H:\' - In principle, this should work only from Win2008 / Vista, Win32_PhysicalMedia actually uses the CIM_PhysicalElement class, and it clearly states that it only supports Win2008 + msdn.microsoft.com/ru-ru/library/aa387962 ( v= vs.85 ) .aspx - pnp2000
- ps: in principle, any normal way to get a sn disk on a remote computer via powershell will do, even without WMI if this is possible. - pnp2000
- @ vnn198 updated the answer. If options are needed, HOW to get a serial for use in a console application, I can give a couple of links to the code - Viktor Tomilov
- remote start can be done through GPO from the balls, but I wanted to do without launching third-party software, I thought maybe someone knows what a dirty trick is - pnp2000
If you get a number via the command line, the command should work:
wmic diskdrive get model,name,serialnumber - Under XP, it also does not work - pnp2000