Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The operations department has changed the location of the home network storage and with that my powershell profile stopped loading. If I print ´$PROFILE´ I get

WindowsPowerShell\Microsoft.PowerShell_profile.ps1

As you can see it is missing the first part of the part to my home folder where the ´WindowsPowerShell´ folder is located. So my question is, how is ´$PROFILE´ resolved in PowerShell? Is it built up from environment variables or how does it work?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I think you will find what you need here: http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/21/understanding-the-six-powershell-profiles.aspx

Edit: so I guess that it is the %HOME% environment variable that is missing in your setup.

share|improve this answer
1  
Please summarize your link (links can go down) –  nixda Oct 22 '13 at 7:37
    
The %HOME% was set, the one that was missing was some group policy pointing out where the "My Documents" folder was located. This was due to a change in the infrastructure. –  Tomas Jansson Oct 23 '13 at 8:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.