title: Set-ItemProperty creates a duplicate registry key
body: <p>I am trying to activate Long path names in Windows 10 1903.</p>
  
  <p>When I run as administrator in Windows PowerShell :</p>
  
  <pre><code>Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value '1'
  </code></pre>
  
  <p>I see that a new registry key has been created, instead of overwriting existing one.</p>
  
  <p><a href="https://i.stack.imgur.com/SF9P5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SF9P5.png" alt="enter image description here"></a></p>
  
  <p>Thanks for your help.</p>