Sysprep / Reg Query issue

  • Thread starter Thread starter Andrew Morgan
  • Start date Start date
A

Andrew Morgan

Hi all ....

A quick and easy one I'm sure ....

When sysprep'ing our new builds, we stick a build ID in the
OEMDuplicatorstring value (in sysprep.inf).

For example, a build ID may be: 01.02.02

However, if I do the following command at the dos prompt:

reg query \\<pc>\HKLM\System\Setup /v OEMDuplicatorstring

It gives 'extra' output on the result. Eg:

OEMDuplicatorstring REG_MULTI_SZ 01.02.02\0\0

Where did the '\0\0' come from ?!

Thanks in advance.

--
Andrew Morgan
I.T. Department
English, Welsh & Scottish Railway Ltd.
Doncaster, UK
http://www.ews-railway.co.uk
 
Hello Andrew,
I suspect this is due to the key being a reg_multi_sz value and you are
doing a binary query using reg.exe.
since this is a REG_MULTI_SZ An array of null-terminated Unicode strings,
terminated by two NULL characters.
94920 HOWTO: How To Calculate String Length in Registry
http://support.microsoft.com/?id=94920
So I suspect that regedit which is just a frontend to the registry is not
displaying those characters.
Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top