Re-Running Your Profile

by Nov 17, 2010

If you made changes to your profile script and want to see the changes that are in effect without having to close and restart PowerShell, you can simply run your profile script dot-sourced:

. $profile

However, you may receive (harmless) exceptions this way if your profile script did things that can only be done once, such as adding new Snapins.

Twitter This Tip!
ReTweet this Tip!