VMware Cloud Community
Stu_McHugh
Hot Shot
Hot Shot

Running Powershell from a scheduled task on another VC

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

Stuart ------------------------------------------------ Please award points to any useful answers..
0 Kudos
5 Replies
LucD
Leadership
Leadership

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

0 Kudos
Stu_McHugh
Hot Shot
Hot Shot

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?!?!

Stuart ------------------------------------------------ Please award points to any useful answers..
0 Kudos
LucD
Leadership
Leadership

Are both VCs running the same version ?


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

0 Kudos
Stu_McHugh
Hot Shot
Hot Shot

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

Stuart ------------------------------------------------ Please award points to any useful answers..
0 Kudos
LucD
Leadership
Leadership

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