Profiles
PowerShell
When you want certain settings and behaviour to always be there when you start powershell you need to change the profile so that it will be available for you when you start with powershell
Profile | Description | Location |
Current user | Current user profile | $((Split-Path $profile -Parent) + "\profile.ps1") |
All users (private) | Common profile for all users;valid only in powershell.exe | $pshome\Microsoft.PowerShell_profile.ps1 |
All users | Common profile for all users | $pshome\profile.ps1 |
Current user (private) | Current user profile; valid only in powershell.exe | $profile |
So let's make a change with an alias called edit -> Notepad
First you have to know the profile path for the current user:
$((Split-Path $profile -Parent)+ "\profile.ps1")
page revision: 2, last edited: 22 Jul 2009 12:46