Error when running Powershell script

Member_2_5306354
Member_2_5306354 used Ask the Experts™
on
In a Powershell which works very well on another computer,
when I copy the folder and corresponding scripts on another computer I get an error.

The error in part says:  
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
....
FullyQualifiedErrorId :  ParamaterArgumentValidationErrorNullNotAllowed, Microsoft. Powershell.Commands.JoinPath.. etc..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Michael B. SmithManaging Consultant

Commented:
Insufficient data.

The errors tells you that the first argument to Join-Path is $null. The error also tells you what line number it happened in the script.

Nothing else that anyone else can tell you. You have the script. We don't.

Author

Commented:
Hi Michael B. Smith.
I hope all is well.

I solved this myself.
I installed the Windows Management Framework 5.1 on the computer and installed it.
It would have updated Powershell, and now it works.

Thank you.
I installed the Windows Management Framework 5.1 on the computer and installed it.
It would have updated Powershell, and now it works.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial