VMware Cloud Community
msadler
Contributor
Contributor

Connect to VC from non-domain PC

Is it possible to connect to a VC server from a machine that is not on any domain? When I try, it prompts me for a username and password, but it never accepts my domain credentials regardless of how I type them in. I connect fine from my workstation that is on the domain. We have a number of VM's on a set of ESX servers that are outside the corporate domain because they are used by customers for training. I'm trying to setup some PowerShell scripts to manage them, but can't seem to do it from another virtual machine on those ESX servers because none of them are on any domain.

0 Kudos
3 Replies
halr9000
Commander
Commander

Yes, this should work fine, I do it all the time. I suspect a simple problem here. Are you using the "domain\user" convention for the username? If not, try that, if you are, try taking it off. If that doesn't help, you may need to look at the DC's security log to look for audit failures. I'm not sure that you would see these in VC's logs, but you might. I don't know this portion of VC that well. Actually, it should show something in the vpxd logs I would think.


[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
msadler
Contributor
Contributor

I've tried the following conventions for the username:

domain\username

username

VCHostName\LocalUser (I tried setting up a local user on the VC Server)

LocalUser

They all respond with this message:

Connect-VIServer : Failed to connect to the VI server at: with user: <username>.

Nework connectivity error occured. Please verify that the network address and port are correct.

At line:1 char:6

+ get-vc <<<<

0 Kudos
halr9000
Commander
Commander

Well the obvious next step: go to https://vcserver/sdk in your browser. That is the very same web service which the VI Toolkit uses to do everything.






[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator

Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos