I have a script that works fine as a simple inline scriptblock. when i change my invoke-expression to start-job i get an unusual error.
WARNING: You are running PowerShell version 1.0. PowerShell 1.0 is not be supported by vSphere PowerCLI. Please update you PowerShell to version 2.0
I am running on win 7 and i am under the impression that version 1 can't exist on win7. so my question is, how is this possible? And better, how do i fix it?
I tested with the following
PS>$host.version
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
PS>$job = {$host.version}
PS>Start-Job -InputObject $jobspec -ScriptBlock $job
PS>receive-job job14
Major Minor Build Revision
----- ----- ----- --------
1 0 0 0
any thoughts?
thanx in advance.
--Brian