Novell Home

Using ZENworks to Create Computer Accounts in an NT Domain

Novell Cool Solutions: Trench
By Alastair Challis

Digg This - Slashdot This

Posted: 16 Aug 2000
 

Current Version: ZENworks 2

We have an automated NT Client build that leaves the workstation in a workgroup. At the end of the build we logon as a user that:

  1. Imports the user into the tree.
  2. Creates the computer account in an NT Domain.

A user policy assigned to this user imports the workstation into the tree, and a force run ZENworks application object is assigned to this user which creates the workstation account in the Domain. This object basically does the following:

  1. Copies the following two files that are available from the NT Resource Kit into C:\TEMP\JOINDOM; NETDOM.EXE & NETDOM.GID
  2. Copies a batch file called JOINDOM.BAT into C:\TEMP\JOINDOM that does the following:

    @Echo Off

    c:\temp\joindom\netdom /D:NTDOMAIN /U:USER /P:PASSWORD member \\%COMPUTERNAME% /delete

    c:\temp\joindom\netdom /D:NTDOMAIN /U:USER /P:PASSWORD member \\%COMPUTERNAME% /add

    c:\temp\joindom\netdom /D:NTDOMAIN /U:USER /P:PASSWORD member \\%COMPUTERNAME% /joindomain

    EXIT

    "USER", is a basic user in the domain, with the added right to create workstation accounts.

  3. The path to executable is "C:\TEMP\JOINDOM\JOINDOM.BAT"

The last thing you need to do is to change to default "NT Credentials Tab" in the Novell Client properties so you login from your NT Domain, not the local workstation.

We do this using a client policy. Basically the NT Novell Client Config policy has a location profile called DEFAULT, amended so that the Windows NT Tab is set up to your domain.

Alternatively you could do this by altering the registry as part of the application object. This setting is a string value of; HKEY_LOCAL_MACHINE\SOFTWARE\ Novell\Location Profiles\Services\ {1E6CEEA1-FB73-11CF-BD76-00001B27DA23} Default\Tab3\DefaultDomainName="NTDOMAIN"

If you have any questions you may contact Alastair at alchall@alchall.demon.co.uk


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell