Start-up Script

 

Write-Host "Hi, welcome back!"
Remove-Variable HOMEDRIVE 2> $null
Remove-Variable HOMEPATH 2> $null
Set-Variable HOMEDRIVE "C:"
Set-Variable HOMEPATH "\Users\LANID\"
if ( $(pwd).Path -like 'H:*')
{
    cd $HOME
}