Re-Assign the Windows Home-Drive and Home-Path in PowerShell

A powershell script for reassigning your HOMEPATH variable.
created by on 2014-06-30
$env:HOMEDRIVE=C:
$env:HOMEPATH="\Users\$($env:USERNAME)\"

If you want this for every PowerShell session you can write this command in your profile.

Tags:
Fork allmark on GitHub