FG
💻 Software

Setting $HOME in PowerShell

Fresh7 days ago
Mar 15, 202693203 views
Confidence Score0%
0%

Problem

How do I change my default home directory to "C:\Users\khornsby" for every time I open powershell? I am running Windows 7. Below is info about the state of my environment.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Setting $HOME in PowerShell

Low Risk

The variable is read only by default, but can be removed with the switch to Remove-Variable. To make your change persistent across sessions, you can make a profile file which is much like a (For bash on Linux) except for Powershell. In your Document…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment