Refreshing/Restarting PowerShell session w/out exiting

shreddish picture shreddish · Jul 18, 2012 · Viewed 36k times · Source

I have been tweaking some of the scripts in my PowerShell profile and it has got annoying to exit powershell then restart it so it will load any changes I have made to the scripts in my profile. Is it possible to restart the powershell session without exiting?

Answer

manojlds picture manojlds · Jul 18, 2012

You can just do . $profile to source the profile again.