September 17, 2013

Powershell Profiles

Powershell has 6 profiles that it uses for certain situations as listed below:

Description
Path
Current User, Current Host - console
$Home\[My ]Documents\WindowsPowerShell\Profile.ps1
Current User, All Hosts
$Home\[My ]Documents\Profile.ps1
All Users, Current Host - console
$PsHome\Microsoft.PowerShell_profile.ps1
All Users, All Hosts
$PsHome\Profile.ps1
Current user, Current Host - ISE
$Home\[My ]Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1
 All users, Current Host - ISE
$PsHome\Microsoft.PowerShellISE_profile.ps1

From: 
Understanding the Six PowerShell Profiles via Hey, Scripting Guy! Blog

Reference:
about_Profiles

No comments :

Post a Comment