vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
765 stars 608 forks source link

VMware.Hv.Helper Long time until connected #238

Open benda1606 opened 6 years ago

benda1606 commented 6 years ago

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

jackwmc4 commented 5 years ago

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

benda1606 commented 5 years ago

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 <notifications@github.com 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 .