Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Reload Your PowerShell Profile

$
0
0

Summary: Reload your Windows PowerShell profile without closing and reopening Windows PowerShell.

Hey, Scripting Guy! Question How can I reload my Windows PowerShell profile to test some changes I made—without closing and reopening Windows PowerShell?

Hey, Scripting Guy! Answer Use the invocation operator with the automatic $profile variable:

& $profile

Note  Depending on how you have written your profile, you may generate a large number of errors, for example, Drive already exists or Alias already exists.

 


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>