PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

VMware.Hv.Helper Long time until connected

Open benda1606 opened this issue 7 years ago • 2 comments

Hey,

it's take up to 4 minutes until its connected is it normal? why isnt a way to connect with current credential like connect-viserver ?

thnx

benda1606 avatar Nov 11 '18 12:11 benda1606

there is a way to connect that way, and no that is not normal time. Your setup should look something like this:

#$Cred = Get-Credential -UserName vsphere.local\administrator -Message 'Enter vSphere Password' #$VIConnection = Connect-VIServer -Server vcenter.domain.com -Credential $Cred #$Cred = Get-Credential -UserName domain\administrator -Message 'Enter Horizon Password' #$HZConnection = Connect-HVServer -server horizon.domain.com -Credential $Cred $ViewAPI=$Global:DefaultHVServers[0].ExtensionData

jackwmc4 avatar Dec 12 '18 15:12 jackwmc4

Hey thnx I meant connect-hvserver without providing username and password i want the command use the current credentials that i am logged on with to the computer where the script is running

On Wed, Dec 12, 2018, 17:19 Jack McMichael <[email protected] wrote:

there is a way to connect that way, and no that is not normal time. Your setup should look something like this:

#$Cred = Get-Credential -UserName vsphere.local\administrator -Message 'Enter vSphere Password' #$VIConnection = Connect-VIServer -Server vcenter.domain.com -Credential $Cred #$Cred = Get-Credential -UserName domain\administrator -Message 'Enter Horizon Password' #$HZConnection = Connect-HVServer -server horizon.domain.com -Credential $Cred $ViewAPI=$Global:DefaultHVServers[0].ExtensionData

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vmware/PowerCLI-Example-Scripts/issues/238#issuecomment-446624735, or mute the thread https://github.com/notifications/unsubscribe-auth/Ag8gFFPgT_ScrnpQT79pexFtOld5L8sIks5u4R6XgaJpZM4YYc3b .

benda1606 avatar Dec 16 '18 07:12 benda1606