-3

I'm working with an automated tool that deploys VMs to center. It is setup within the customspec to be connected to a domain [windows]. After the VM is clone, we get a success state from VMWare that the VM is ready, however... it tends to be the case that the VM isn't finished being configured. [And thusly not on the domain]

Is there anyway, CLI based, to confirm that the VM being deployed is connected to a domain?

2
  • What is the automated tool?
    – mfinni
    Aug 14, 2013 at 16:26
  • Its HP Operations Orchestration.
    – monksy
    Aug 14, 2013 at 17:50

3 Answers 3

0

Orchestrator has an Active Directory plugin, I don't know it or use it but there's a chance you might be able to do a check via that as part of a deployment workflow.

0
dsquery computer -name $HOSTNAME

will let you know if the computer account exists in the domain for $HOSTNAME.

2
  • Where would that be run on? I have access to the machine it's self... but I don't have the information if it is on a specific domain or not
    – monksy
    Aug 14, 2013 at 18:11
  • This can be run on any machine that is a member of the domain in question.
    – mfinni
    Aug 14, 2013 at 18:54
0

I solved this issue by sending the following command to the box [via a privileged account]

wmic computersystem list brief /format:list

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .