If I execute
& $PROFILE
I get this error
& : The term 'C:\Users\stib\Documents\WindowsPowerShell\
Microsoft.PowerShell_profile.ps1' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & $PROFILE
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\stib...ell_profile.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The correct profile is found at $PROFILE.CurrentUserAllHosts. Is there something wrong with my setup?
C:\Users\stib\Documents\WindowsPowerShellI am sure you will find that you don't have aMicrosoft.PowerShell_profile.ps1- Drew& $PROFILE.CurrentUserAllHostsif that's what you actually want executed. That shouldn't be necessary, though, b/c PowerShell should automatically load the relevant profiles upon launch. - Ansgar Wiechers