title: Script for autologon
body: <p>I have an AD server enviroment, and some of the users need to autologon directly.</p>
  
  <p>I know that I can change some values on <code>RegEdit</code> to do so, and I am trying to create a script or <code>.reg</code> file to change those automatically, <em>so I won't need to input the data manually in the future and my co-workers can do the same thing without asking me</em>.</p>
  
  <p>So far I have the following line:</p>
  
  <pre><code>reg add Regedt32.exe "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1
  </code></pre>
  
  <p>…but it won't work, I think it is because I need an administrative login to make this modifications.</p>
  
  <p>Is there any way to prompt a user and password box when I try to run the script or a reg file? or if someone have a better sintax for me to use this?</p>