As per this document http://msdn.microsoft.com/en-us/library/bb613488(v=vs.85).aspx I’ve created a profile in:
%windir%\system32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
The profile only contains a basic function for testing.
When I run the 64 bit version of PowerShell the profile doesn’t load. PowerShell returns an error when I try to call the test function.
When I run the x86 version the profile loads correctly and I can call the function.
I’ve tested this on several 64 bit machines and get the same result every time.
How can I get my profile to load correctly in the 64bit version?
Open the 64 bit instance of PowerShell and create the profile. The files are saved in different locations: 64b – c:\windows\system32, 32b (c:\windows\SysWOW64).