Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Unattend.xml error adding registry key

29 Mar 2016   #1

Windows 7 Professional 64bit
Unattend.xml error adding registry key

I'm struggeling a ,ot right now getting my unattend.xml file to work but everytime I end up with an error.
It seems to be when i try to add a registry key during the setup because when I remove the line my unattend file works perfectly.
Can someone help me editing the unattend file correctly ??
this is the part that should change / add the registry value
it is in the 'specialize' part of the unattend file under the <FirstLogonCommands>

<SynchronousCommand wcm:action="add">
<CommandLine>reg add HKEY_USERS\Default\Control Panel\Keyboard /v InitialKeyboardIndicators /t REG_SZ /d 2 /f</Command>
<Description>Enable Numlock</Description>
I tried it like this, with and without quotation marks, with cmd /c reg add at the beginning but everytime it fails
Who can write the correct line of code so it adds the reg key correctly during the sysprep ??

My System SpecsSystem Spec

 Unattend.xml error adding registry key

Thread Tools

Similar help and support threads
Thread Forum
cmd question regarding adding registry
When I run this test.reg Windows Registry Editor Version 5.00 "{374DE290-123F-4565-9164-39C4925E467B}"=hex(2):44,00,3a,00,5c,00,44,00,6f,00,\ 77,00,6e,00,6c,00,6f,00,61,00,64,00,73,00,00,00 it will change the download folder directory to D:\Downloads
General Discussion
Cannot reinstall windows due to unattend.xml error
I tried to make an image of Windows 7 Professional including sysprep and answer file unattend.xml This image restore failed with an error about the unattend.xml file that cannot be parsed so I thought... let's start over again ! WRONG ! Now I cannot reinstall Windows anymore beacuse at the end...
Installation & Setup
The "Fatal error during the execution of Sysprep" error witch Unattend
Hi I have Windows 7 SP1 64-bit in Audit mode and I put the Unattend.xml file <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="generalize"> <component name="Microsoft-Windows-Security-Licensing-SLC"...
Installation & Setup
Adding Registry Key
I tried to add the following to my Windows 7 registry. Windows Registry Editor Version 5.00 "NominalRange"=dword:1 But get this error message whether I double click or merge the file. “Cannot import C:\filepath\WMCBlack.reg: Error accessing the registry.
General Discussion
Adding a Theme inside the unattend.xml file
Does anyone know how to add a theme inside the unattend.xml file? Im using Windows AIK 2.0 along with Microsoft Deployment ToolKit 2010. Thank You at advance .
Themes and Styles

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 05:17.
Twitter Facebook Google+