title: How to create a registry entry with a forward slash in the name
body: <p>I need to create the following registry entry
      <code>HKLM:\software\bmc software\control-m/agent</code>
  but am having a problem due to the forward slash before "agent"</p>
  
  <p>I have no problem creating an entry that doesn't have the forward slash
  For example:</p>
  
  <pre><code>PS C:\powershell&gt;  new-item -path 'HKLM:\software\bmc software\control-mXXXagent'
  </code></pre>
  
  <p>But creating with the forward slash fails.</p>
  
  <pre><code>PS C:\powershell&gt;  new-item -path 'HKLM:\software\bmc software\control-m/agent'
  </code></pre>
  
  <blockquote>
    <p>New-Item : The registry key at the specified path does not exist.
    At line:1 char:10
    +  new-item &lt;&lt;&lt;&lt;  -path 'HKLM:\software\bmc software\control-m/agent'
        + CategoryInfo          : InvalidArgument: (HKEY_LOCAL_MACH...tware\control-m:String) [New-Item], ArgumentExceptio
       n
        + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.NewItemCommand</p>
  </blockquote>
  
  <p>And using the PowerShell backtic ` escape character doesn't help either.</p>
  
  <pre><code>PS C:\powershell&gt;  new-item -path 'HKLM:\software\bmc software\control-m`/agent'
  </code></pre>
  
  <blockquote>
    <p>New-Item : The registry key at the specified path does not exist.
    At line:1 char:10
    +  new-item &lt;&lt;&lt;&lt;  -path 'HKLM:\software\bmc software\control-m<code>/agent'
        + CategoryInfo          : InvalidArgument: (HKEY_LOCAL_MACH...ware\control-m</code>:String) [New-Item], ArgumentExceptio
       n
        + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.NewItemCommand</p>
  </blockquote>
  
  <p>And advice would be appreciated. Thanks</p>