PowerShell Profile

less than 1 minute read

May 2017

Overview

The PowerShell profile can be used to customise your PowerShell environment to how you like it. I use my profile to add aliases to common commands and modules I use.

The profile in PowerShell can have four different settings: AllUsersAllHosts AllUsersCurrentHost CurrentUserAllHosts CurrentUserCurrentHost

To view your profiles, you can use the $PROFILE variable and the relevant NoteProperty:

$PROFILE.AllUsersAllHosts
$PROFILE.AllUsersCurrentHost
$PROFILE.CurrentUserAllHosts
$PROFILE.CurrentUserCurrentHost

You can just use the $PROFILE variable to see the current profile in use in the current host

PowerShell profiles

Here’s the code that will create the output in the image above: