title: Remove part of the string in powershell in hashtable
body: <p>I got driver list</p>
  
  <pre><code>$HashTable = Get-WindowsDriver –Online -All | Where-Object {$_.Driver -like "oem*.inf"} | Select-Object Driver, OriginalFileName, ClassDescription, ProviderName, Date, Version
  Write-Host "All installed third-party drivers" -ForegroundColor Yellow
  $HashTable | Sort-Object ClassDescription | Format-Table
  </code></pre>
  
  <p>The table displays full inf file path in a OriginalFileName column. I need to cut full path e.g.</p>
  
  <pre><code>C:\Windows\System32\DriverStore\FileRepository\pantherpointsystem.inf_amd64_bde4cf569a728803\pantherpointsystem.inf
  </code></pre>
  
  <p>to</p>
  
  <pre><code>pantherpointsystem.inf.
  </code></pre>
  
  <p>And so that way in all lines.</p>