title: How can I substring a path in powershell
body: <p>I have a path that I want to clip off a leading section and use the remaining portion. Example path:</p>
  <pre class="lang-none prettyprint-override"><code>C:\temp\rootfolder\subfolder1\subfolder2
  </code></pre>
  <p>I want to be able to get just the <code>subfolder1\subfolder2</code> portion and I have the root folder as a variable.  Is there a command that I can take a path and apply a root path and get the remaining portion?</p>
  <p>Actual Path: <code>C:\temp\rootfolder\subfolder1\subfolder2</code></p>
  <p>Root Path: <code>C:\temp\rootfolder</code></p>
  <p>Desired Path: <code>subfolder1\subfolder2</code></p>