Dude, where’s my PowerShell profile?

PowerShell profiles is the “stuff” that gets loaded each time you use PowerShell. They can load your favorite Exchange management scripts, define the aliases you need, or just give you a nice welcome message.

How do you create a profile? How do you find which ones have already been created on your computer and are already affecting the execution?

The easy way is just using the File / Open Current User Profile or File / Open All Users Profile menu in PowerGUI – see the screenshot below.

Use PowerGUI to Find, View, Edit or Create PowerShell profile

These menu items allows you to see/edit the profiles already present on your computer, and create a profile if it is not there yet.

profile.ps1 profiles are guaranteed to work across all PowerShell applications on the machine. Microsoft.PowerShell_profile.ps1 might not work outside the powershell.exe “blue” console (for example, ISE will not use it – but PowerGUI by default will).

You can read more about PowerShell profiles in MSDN.

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




My Recent Tweets

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

%d bloggers like this: