Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .