title: Registry value not change
body: <p>so i just start learn about powershell script
  my objective is to uncheck this one
  <a href="https://i.stack.imgur.com/WVrEV.png" rel="nofollow noreferrer">system properties</a></p>
  <p>so i create powershell script to run the file.reg
  this is my test1.ps1</p>
  <pre><code>$username = &quot;desktop-2ussd\viola&quot;
  $password = &quot;qwerty&quot;
  $AdminCred = New-Object System.Management.Automation.PSCredential -ArgumentList @($username, 
  (ConvertTo-SecureString -String $password -AsPlainText -Force))
  $regFile = &quot;.\file.reg&quot;
  $regArg1 = &quot;import $regFile&quot;
  Start-Process reg.exe -ArgumentList $regArg1 -Credential $AdminCred
  </code></pre>
  <p>and this is my file.reg</p>
  <pre><code>Windows Registry Editor Version 5.00
  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
  &quot;fDenyTSConnections&quot;=dword:00000000
  &quot;updateRDStatus&quot;=dword:00000001
  
  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
  &quot;UserAuthentication&quot;=dword:00000000
  </code></pre>
  <p>after that i run the script like this
  powershell -ExecutionPolicy Bypass -File .\test1.ps1</p>
  <p>there is no error output but the checkbox is still checked</p>
  <p>please help me</p>