The ramblings of an old IT Pro travelling the digital byways.

Sunday, June 12, 2016

Reload PowerShell Profile

When editing your PowerShell profile, you need to reload the profile to check or implement your changes.  There are three ways to accomplish this.

  1. Start a new PowerShell session
  2. Type the command & $Profile
  3. Type the command . $Profile

Way one is inconvenient.
Way two invokes the $Profile script.
Way three sources the $Profile script.

Are two and three really different?  Dunno, the end result is the same.

No comments:

About Me

My photo
A living, breathing contradiction.