I'm running a healthcheck powershell script from a scheduled task on my virutal center server producing a report and e-mailing to me. This all works fine however when I run it again another VC in HK it brings up the windows login prompt. I can log in and things work fine but what I don't understand is why I'm getting prompted for my HK VC and not my London VC?
Any ideas?
Cheers
Stuart
Are both VCs located in the same AD domain ?
If not, from which domain are you running the scheduled task ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
They are both in the same domain but different subnets.
When run the the command prompt and type 'Connect-ViServer' and the London VC it works fine but when I type in the HK one the Windows Login dialog box appears?!?!
Are both VCs running the same version ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Arh!! good qustion! no.
My London VC is running VC 2.5 and ESX 3.5 but my HK is VC2.0 and ESX 3.0
The SDK LoginBySSPI method only is supported from VI API 2.5 onwards.
And I suspect that the Connect-VIServer cmdlet is based on that method.
Perhaps someone from VMware can confirm ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference