Hello
I see some thing that appears unusual to me.
Server1 is running PowerShell v2
Client1 is running PowerShell v2
If I am logged directly to Server1 and do
$Host
$PSVersionTable
I get the result I would expect e.g. version 2 and PSVersion2. I can also load Modules in the normal way directly from Server1 e.g. Import-Module ...
From Client1 (or any other client) if I Enter-PSSession Server1 then
$Host
$PSVersionTable
I get the following verion 1 and PSVersion 2
So basically even though the PSVersion is 2 the Host (e.g. PS-Session Host) is version 1, and therefore I cannot load Modules as I get the following error if I try
Import-Module : The current PowerShell host is: 'ServerRemoteHost' (version 1.0.0.0). The module
'C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\pspki\pspki.psd1' requires a minimum PowerShell ho
st version of '2.0' to execute.
So it occurs to me the "Host" execution environment you get with PS-Session is a cut down version e.g. version 1
Is this normal? is there a work around for it?
Thanks All
AAnotherUser__
AAnotherUser__