Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Christopher_Mal
ServiceNow Employee
ServiceNow Employee

This blog post will be short.

Problem:

You create a new VM in VMWare and you have Guest Customization Rules created in ServiceNow to add this newly minted VM to the domain and fails to do so.  

Answer:

After some research I found this article that tells you why this is the case:

Symptoms:

  • When performing guest customization via the vCenter Server, the Windows Guest Operating Systems (Guest OS) fail to join Active Directory. The affected Guest OS-s are as follows, but not limited to:
    • Windows Server 2008
    • Windows Server 2008 R2
    • Windows Server 2003
    • Windows Server 2003 R2
    • Windows 7
    • Windows 8/8.1
  • When deploying a virtual machine from a Windows template and using a guest customization, it fails to join to the Active Directory (AD) domain

Resolution:

Guest customization of a Windows Server 2008/Windows 7 operating systems and later uses the sysprep functionality built into the Windows operating system. Using a NETBIOS name when joining a Windows Server 2008/Windows 7 to an AD domain is no longer supported.

If the NETBIOS name of the AD domain is specified in guest customization, the virtual machine does not join the AD domain.

To resolve this issue, use the fully qualified domain name (FQDN) of the AD domain in guest customization and switch the domain login from down-level style log-on (domain\user) to user principal name (user@FQDN_of_domain.local).

VMware KB: Windows guest customization fails to join deployed virtual machine to Active Directory do...

In ServiceNow the configuration page should look like this:

ServiceNow.png

Hope this helps.