I have to manual install (copy) PS modules from my central PS-module-repository onto different machines (all of them are 64-Bit).
But the first entry in PSModulePath on these machines sometimes is C:\Program Files (x86)\WindowsPowerShell\Modules and sometimes is C:\Program Files\WindowsPowerShell\Modules.
Whereto should I install? Must I use the first entry in PSModulePath?
With what version of PowerShell would you like to use these modules? If you run the 64-bit version of PowerShell you should install them to “Program Files”. For the 32-bit version you use “Program Files (x86)”.
And BTW: It would have taken you a few minutes to figure that out by yourself.
BTW: I really did spend some time on Google and found the information you sent but my problem is not mentioned: On some of my 64-bit-machines running 64-bit Powershell the PSModulePath points to C:\Program Files (x86)\WindowsPowerShell\Modules: Should I change the path to C:\Program Files\WindowsPowerShell\Modules and install there?
There might be something wrong with your infrastructure. Usually the $env:PSModulePath for Windows PowerShell looks like this for a 64-bit PowerShell console:
Might be caused by the fact that these systems originated from a Windows 7 installation (nevertheless those were 65-bit-installations from the beginnning).
I will:
change the PSModulePath to C:\Program Files\WindowsPowerShell\Modules on these machines
move the modules form C:\Program Files (x86)\WindowsPowerShell\Modules thereto