title: Invalid root in registry key error message when trying to read/write a key in HKLM path of the registry
body: <p>I have tried the solution from "<a href="https://stackoverflow.com/questions/28416995/update-registry-using-vbs">update registry using VBS</a>", but it still gives the same error message:</p>
  
  <blockquote>
    <p>WshShell.RegWrite: Invalid root in registry key </p>
  </blockquote>
  
  <p>You should change LegalNoticeText value together with LegalNoticeCaption one. Under the<br>
   <code>HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\</code><br>
   Registry key there both values reside as well. For this case (if a computer is not connected to a domain or with group policy disabled) should work next script.</p>
  
  <p>I am trying to do it in UFT 12.5 using VBScript.</p>
  
  <p>Environment:</p>
  
  <ul>
  <li>UFT 12.5</li>
  <li>Windows 2012 Server</li>
  </ul>