PoshTip #13 – How to Create a PowerShell Profile
A PowerShell profile is a PowerShell script that runs automatically when you start a PowerShell console.
First, check if you already have a profile :
Test-path $profile
If the result is FALSE, then type the following command :
New-item –type file –force $profile
The following file ‘Microsoft.PowerShell_profile.ps1’ is created in the following folder : C:\Users\<username>\Documents\WindowsPowerShell\
Now, you can edit this file and load modules/snap-ins or create customs functions.