We use some power shell script in our development process that are not working on 1 of 4 peoples computer... we use a dos batch command line to kick off powershell.exe the command we are running is:
powershell.exe .\source\startpipeline.ps1 -pathToEnvironment "environments\phillipg"
The error it gives us is:
At line:1 char:1
+ .\source\startpipeline.ps1 -pathToEnvironment environments\phillipg
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\source\startpipeline.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Any ideas, we did check / validate that the powershell version was the same on a box where the command works, and a box where it does not.
PS C:\Users\dwijewickrema> $psversiontable
Name Value
---- -----
PSVersion 3.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.18052
BuildVersion 6.2.9200.16398
PSCompatibleVersions {1.0, 2.0, 3.0}
PSRemotingProtocolVersion 2.2
We also verified that putting the fully qualified path fixes the issue, but is not a long term solution for us, as we dont want to be tied to a directory structure / drive letter.
Thanks in advance...
-Deva
Deva Wijewickrema