Hello to all! I am a Powershell newbie, and I am having a bit of trouble running a script called healthcheck.ps1. The script runs fine if I run it via PowerGui or Windows Powershell, but when I try to run it via a WindowsXP SP2 workstation 'Start>Run', it bombs. Here is the output from the 'Run' command:
powershell.exe -noprofile -command "& 'C:\Healthcheck.ps1' "
The error message I receive is as follows: C:\>powershell.exe -noprofile -noexit -Noninteractive -command "& 'C:\Healthchec k.ps1' " The term 'connect-VIServer' is not recognized as a cmdlet, function, operable p rogram, or script file. Verify the term and try again. At C:\Healthcheck.ps1:61 char:17 + connect-VIServer <<<< $vcserver The term 'get-view' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Healthcheck.ps1:67 char:22 + $vcversion = get-view <<<< serviceinstance
...and on, and on, an on
What am I missing?
Thanks!
|