Professional Documents
Culture Documents
To edit
notepad C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1
$profile = "P:\profile.ps1"
if ( (test-path $profile) -ne $true) {New-Item $profile -ItemType File}
. $profile
$profile = "P:\profile.ps1"
Finally this reloads the shell and forces it to load any settings in the newly defined profile variable
. $profile
Notes
You need to set "P:\profile.ps1" to whereever you want the profile saved. This should be a location
specific to each user, as if this is the same location for each user the file will be over written every time
someone launches powershell. I chose the P: drive since everyone who logs into our server has a unique
a unique P: drive for their personal files, so each P: drive is unique to each user.
1/1