Question : Profile path for Powershell on Server 2008 R2

I'm new to powershell and want to configure my profile. Technet states that the path should be here: C:\Users\Ellen\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

If I run $profile, I get the same result. Here's the thing; there is no "documents" folder under any of the profiles on the server. Any idea how to track down the profile script that runs at startup of powershell?

Answer : Profile path for Powershell on Server 2008 R2

if you run $profile, it will bring it up even if it doesn't exist.
So, because your using 2008, maybe it just looks a little different. In the explorer bar, it will be viewed as
Computer > C: > Users > My Documents
Within that folder of your profile, open the folder WindowsPowerShell (if its not there create it).
Then, create a new text file names Microsoft.PowerShell_profile.ps1
Voila! Open it up and start creating that profile!

You could also use machine wide profile path
<Installation Directory>\Microsoft.PowerShell_profile.ps1
Which is usually: C:\Windows\System32\windowspowershell....etc

Random Solutions  
 
programming4us programming4us