Read Sysprep String in Registry

N/a / N/A
January 27, 2009 at 14:23:51
Specs: Windows XP Pro, 1.6 GHz/1 GB
I have several images I created using Sysprep and would like to be able to quickly find out which image was used on my computers. It would be time-consuming to go into the registry, navigate to "HKEY_LOCAL_MACHINE\SYSTEM\Setup" and read the "OEMDuplicatorString" value on each computer. It would be much faster if I had a program or script that would just display this information. Does such a tool exist?

See More: Read Sysprep String in Registry

Report •


#1
January 27, 2009 at 14:47:10
Maybe use VB Script. This should get you going in the right direction: http://www.cruto.com/resources/vbsc...

-Ryan Adams
Free Computer Tips and more:http://RyanTAdams.com

Paid Tech Support: Black Diamond


Report •

#2
January 27, 2009 at 15:51:43
Thank you Ryan, I was able to write this script:

---------------------
Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\Setup"
strValueName = "OEMDuplicatorString"
objRegistry.GetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,arrValues

If IsNull(arrValues) Then
Wscript.Echo "This computer seems to have been installed from scratch."
Else
Wscript.Echo "This computer's Sysprep identification string is:" & VbCr & VbCr & arrValues(0)
End If
---------------------


Report •

Related Solutions


Ask Question