VMware Cloud Community
N4N0S
Contributor
Contributor

Connection error

Hi !

I want to connect to Horizon by powercli using the following command:
Connect-HVServer [-Server] <String> [-Domain <String>] -User <String> -Password <SecureString>

But I get the error:
Object reference not set to an instance of an object.
Online: 1 Character: 1
+ Connect-HVServer -Server xxxx -U ...

Any ideas?

Thanks.

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

That is rather sparse info you are giving.
Which PowerShell version, which Horizon version, ...

Did you stop/start your PS sessions before trying again?
Is the Horizon Admin interface working?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
N4N0S
Contributor
Contributor

I'm sorry. It was an error of mine in one of the parameters.

Reply
0 Kudos