title: Powershell script to remove tempory files and registry keys
body: <p>I've created a small PowerShell script to remove a Autodesk application.  However, PowerShell doesn't seam to like system variables like %username%.  Whats the best way of achieving this in Powershell? </p>
  
  <pre><code> # Remove all Autodesk products from a Windows System 
   $AutoDeskPaths = "C:\Users\%username%\AppData\Roaming\Autodesk", "C:\Users\%username%\AppData\Local\Autodesk", "C:\ProgramData\Autodesk", "C:\Program Files\Autodesk\AutoCAD 2012", "C:\Program Files\AutoCAD 2010", "C:\Program Files\Common Files\Autodesk Shared","HKCU:Software\Autodesk", "HKLU:Software\Autodesk"
   Remove-item $AutoDeskPaths -Recurse
  </code></pre>