VMware Cloud Community
teddyboy
Contributor
Contributor

connect-viserver -server 192.168.1.1 error

Any one having issues with the standard connection connect-viserver -server 192.168.1.1 -user root -password password and 7?

Lastest PowerShell and PowerCLI installed

XP to VC works fine

0 Kudos
4 Replies
harkamal
Expert
Expert

try quotes for password..

"password`and`7"

0 Kudos
teddyboy
Contributor
Contributor

Do you mean

connect-viserver -server 192.168.1.1 -user root -password "password"

Why the quotes?

0 Kudos
harkamal
Expert
Expert

if there are spaces in password then it should be included in quotes

0 Kudos
admin
Immortal
Immortal

If your password has a dollar sign ($) you will need to escape it using a backtick (`). Other special characters may require similar treatment.

=====

Carter Shanklin

Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]

0 Kudos