Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Joining a VMware vCenter Lab Manager template to a domain (1007491)

Details

You can set VMware vCenter Lab Manager 3.0 (or higher) to allow a virtual machine created in Lab Manager to automatically join a domain, based on the template configuration.

 

Solution

Following are the three possible methods of setting Lab Manager to support the domain join.
  • Option 1: For Windows versions except Windows 2000. This method does not work for Windows 2000.

    1. Copy netdom.exe to the virtual machine template. The netdom.exe is part of the resource kit from Microsoft that provides a command line to join a machine to a domain.
    2. Spawn netdom.exe with appropriate parameters from SetupComplete.cmd file. When you create a configuration virtual machine from this template, at end of the sysprep process, the commands specified inside SetupComplete.cmd are automatically run.

  • Option 2:

    • Set the customization script on the virtual machine template that needs to join the domain when the command line passed to it is postcustomization.
    • The customization script is a batch file that can be set on the virtual machine template that gets called with precustomization and postcustomization command lines before and after the default customization process.
    • For more information on adding a customization script to a template, refer to the Customizing Guest Customization section in the User's Guide for Lab Manager 3.0.

  • Option 3: This method works only on Windows Vista and Windows 2008.

    1. Inside the virtual machine template, create the following folder structure: %windir%\Setup\Scripts.
    2. Create SetupComplete.cmd file under the Scripts directory.
    3. Copy the netdom.exe to the template and specify the appropriate netdom.exe command line in %windir%\Setup\Scripts\SetupComplete.cmd.

This Article Replaces

1006873

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 11 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 11 Ratings
Actions
KB: