HPE OneView
1829571 Members
1598 Online
109992 Solutions
New Discussion

HPE OneView 8.2 - Unable to Connect-OVMgmt via powershell

 
SOLVED
Go to solution
LGC-One
Occasional Contributor

HPE OneView 8.2 - Unable to Connect-OVMgmt via powershell

Receiving the error below when trying to connect OV appliance via powershell. Appliance is currently running version 8.20.00-0475724. 

Tried providing username password directly as well as using a credential object.

Connect-OVMgmt -appliance fqdn or IP (tried both) -user "Administrator" -password "pw"

or

$Cred = Get-Credential -UserName Administrator -Message Password
Connect-OVMgmt -appliance xXx -Credential $Cred

Keep receveiving the error below:

Connect-OVMgmt : Invalid username or password. Enter correct credentials and retry.
At line:1 char:1
+ Connect-OVMgmt -appliance xXx -Credential ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : AuthenticationError: (Appliance:xXx:String) [Connect-OVMgmt], AuthSessionException
+ FullyQualifiedErrorId : InvalidUsernameOrPassword,Connect-OVMgmt

I have also tried to unblock-file with no luck. 

unblock-file -path 'C:\Program Files\WindowsPowerShell\Modules\HPEOneView.800\8.0.3439.1646\lib'

Any assistance is appreaciated.

2 REPLIES 2
LGC-One
Occasional Contributor
Solution

Re: HPE OneView 8.2 - Unable to Connect-OVMgmt via powershell

Solved! The below syntax worked.

$Creds = Get-Credential
Connect-OVMgmt -Hostname "XXXXX" -Credential $Creds -AuthLoginDomain "Local"

@HPE Thanks Neha!

Sunitha_Mod
Honored Contributor

Re: HPE OneView 8.2 - Unable to Connect-OVMgmt via powershell

Hello @LGC-One,

That's awesome! 

We are extremely glad to know the issue has been resolved and we appreciate you for keeping us updated.