July 2011
Intermediate to advanced
480 pages
11h 54m
English
You can use a PowerShell profile to customize your shell environment and to load functions, modules, aliases, and variables into the environment when you start your Exchange Management Shell session. In this recipe, we'll take a look at how you can create a profile.
Profiles are not created by default, but you may want to verify one has not already been created. Start off by running the Test-Path cmdlet:
Test-Path $profile
If the Test-Path cmdlet returns $true, then a profile has already been created for the current user. You can open an existing profile by invoking notepad.exe from the shell:
notepad $profile
If the Test-Path cmdlet returns $false, you can create a new profile for the current user by running ...