title: Unattend install: "REG ADD" doesn't work
body: <p>I'm trying to execute this commands in OOBE pass on Windows 7 unattend install:</p>
  
  <pre><code>&lt;component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
              &lt;AutoLogon&gt;
                  &lt;Enabled&gt;true&lt;/Enabled&gt;
                  &lt;Username&gt;Administrator&lt;/Username&gt;
                  &lt;Password&gt;
                      &lt;Value&gt;UABhAHMAcwB3AG8AcgBkAA==&lt;/Value&gt;
                      &lt;PlainText&gt;false&lt;/PlainText&gt;
                  &lt;/Password&gt;
              &lt;/AutoLogon&gt;
              &lt;Display&gt;
                  &lt;ColorDepth&gt;32&lt;/ColorDepth&gt;
                  &lt;DPI&gt;96&lt;/DPI&gt;
                  &lt;HorizontalResolution&gt;1280&lt;/HorizontalResolution&gt;
                  &lt;VerticalResolution&gt;800&lt;/VerticalResolution&gt;
              &lt;/Display&gt;
              &lt;OOBE&gt;
                  &lt;HideEULAPage&gt;true&lt;/HideEULAPage&gt;
                  &lt;NetworkLocation&gt;Other&lt;/NetworkLocation&gt;
                  &lt;ProtectYourPC&gt;3&lt;/ProtectYourPC&gt;
                  &lt;HideWirelessSetupInOOBE&gt;true&lt;/HideWirelessSetupInOOBE&gt;
              &lt;/OOBE&gt;
              &lt;TimeZone&gt;Russian Standard Time&lt;/TimeZone&gt;
              &lt;UserAccounts&gt;
                  &lt;AdministratorPassword&gt;
                      &lt;Value&gt;QQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA&lt;/Value&gt;
                      &lt;PlainText&gt;false&lt;/PlainText&gt;
                  &lt;/AdministratorPassword&gt;
                  &lt;LocalAccounts&gt;
                      &lt;LocalAccount wcm:action="add"&gt;
                          &lt;Password&gt;
                              &lt;Value&gt;UABhAHMAcwB3AG8AcgBkAA==&lt;/Value&gt;
                              &lt;PlainText&gt;false&lt;/PlainText&gt;
                          &lt;/Password&gt;
                          &lt;DisplayName&gt;Admin&lt;/DisplayName&gt;
                          &lt;Group&gt;Administrators&lt;/Group&gt;
                          &lt;Name&gt;Admin&lt;/Name&gt;
                      &lt;/LocalAccount&gt;
                  &lt;/LocalAccounts&gt;
              &lt;/UserAccounts&gt;
              &lt;LogonCommands&gt;
                  &lt;AsynchronousCommand wcm:action="add"&gt;
                      &lt;CommandLine&gt;reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v prog /t REG_SZ /d c:\Myprogram\prog.exe /f&lt;/CommandLine&gt;
                      &lt;Order&gt;1&lt;/Order&gt;
                  &lt;/AsynchronousCommand&gt;
                  &lt;AsynchronousCommand wcm:action="add"&gt;
                      &lt;Order&gt;4&lt;/Order&gt;
                      &lt;CommandLine&gt;reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Network\NwCategoryWizard" /v Show /t REG_DWORD /d 00000000 /f&lt;/CommandLine&gt;
                  &lt;/AsynchronousCommand&gt;
                  &lt;AsynchronousCommand wcm:action="add"&gt;
                      &lt;Order&gt;3&lt;/Order&gt;
                      &lt;CommandLine&gt;reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Network\NwCategoryWizard" /v Suppress /t REG_DWORD /d 00000001 /f&lt;/CommandLine&gt;
                  &lt;/AsynchronousCommand&gt;
                  &lt;AsynchronousCommand wcm:action="add"&gt;
                      &lt;Order&gt;2&lt;/Order&gt;
                      &lt;CommandLine&gt;reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v Teamviewer /t REG_SZ /d C:\Program Files\TeamViewer\TeamViewer.exe /f&lt;/CommandLine&gt;
                  &lt;/AsynchronousCommand&gt;
              &lt;/LogonCommands&gt;
          &lt;/component&gt;
  </code></pre>
  
  <p>And registry not changed after install completed. Why? </p>
  
  <p>(I also tried to run .cmd file with similar commands and import .reg file, but it doesn't worked.)</p>