Working with Profiles
From PowerGUI Wiki
PowerShell profiles are scripts that are loaded when a PowerShell session first starts up. They are a good location to store reusable code, since anything in the profile can be called and used from a PowerShell session. Commonly used variable definitions and functions can all be stored in a profile.
PowerGUI supports multiple types of PowerShell profiles.
- profile.ps1 is a generic script that is loaded by every PowerShell host application (PowerShell Console, PowerShell ISE, PowerGUI, and other 3rd party PowerShell products.) Any changes you make to this file, and any code you add will be available to all PowerShell clients (assuming they correctly load it as the default.)
- Microsoft.PowerShell_profile.ps1 is a profile that is specific to the Microsoft PowerShell Console utility. The PowerGUI team added support for this second profile so that scripts that were developed and intended to run in the PowerShell Console, would also run correctly in the PowerGUI Script Editor.
- This is similar to the Microsoft.PowerShell_profile.ps1 (above) but will work for all user profiles on the machine.


