Cool Solutions

Registering Workstations at same time as deployment of ZFDAgent.msi using ZENworks for Desktops Agent Distributor Utility and Ps



By:

December 6, 2006 12:00 am

Reads: 5787

Comments:0

Score:0

An ingenious method! Bear in mind that unless you put the name of the import server into the registry, or ensure that the workstation can resolve the DNS name ZENWSIMPORT, then moving or renaming the workstation in eDirectory will mean that the link between the workstation and its eDirectory object will be “broken”, as it needs to contact the import service. My suggestion would be to use PSEXEC to import a registry file containing the importserver, and then run ZWSREG (or reboot the workstation and let Automatic Workstation Import take place).
Shaun Pond

While ZENworks 7 for Desktops provides a number of ways of importing workstations into eDirectory, many times they won’t
work in your specific environment. Messing with DNS or host files can be problematic or not possible for many networks.

Novell provides a good tool for remotely installing the ZFD Agent, however it does not allow for any method of including
an import server along with the distribution.

Novell documents three ways to resolve the import server address (via DNS, Hosts file, or the registry)
Editing the MSI file to include this information has not been successful, so I found this alternate method.

Intent:

Install the ZFD Agent to a number of Win XP workstations and immediately import them into eDirectory. (Not tested with
Win2k, or Vista, but should work fine)

Requirements:

  • ZFD 7 installed and running in your environment.
  • Windows XP workstations with a recent Novell Client installed (4.9.x only tested)
  • Administrative Share available and the Windows XP Firewall disabled.
  • List of IPs of workstations to install to.
  • Local administrator account on workstations to install to.
  • ConsoleOne with the ZFD snapins (to access the ZFD Agent Distributor Utility.
  • Psexec from PSTOOLS.

AND one of:

  • One or more Import Import Policies enable and configured
  • OR

  • Container(s) to which you wish to directly import a workstation (bypassing import policies).

Step 1: Deploy the agent

  1. Launch the ZENworks Distributor Utility via ConsoleOne
    (Tools/ZENworks Utilities/Install Agents)
  2. 
    
    
    
  3. Browse to the location of your ZFDAgent.msi
    (Usually at
    \\YOURSERVER\ sys\PUBLIC\ZENworks\ZfdAgent\English
  4. Select Configure Agent and enable Install and then select the
    Features to suit your environment
    (Note: I have found that the reboot is not necessary.)
  5. Click OK and go back to the main screen.
  6. Click Add.
  7. Enter in the range of IP addresses and login credentials to
    use for installing the agent with.
  8. Click OK and then the Deploy Agent.
  9. Sit back and drink a cup of coffee.
  10. When complete, record any failed installations and resolve
    individually.
    Failures could be because of a variety of reasons (No
    administrative share enabled, firewall enabled, bad
    administrator password, msiexec being used by another
    process, etc.).

Step 2: Remotely Force Workstation Registration and Import using PSEXEC

  1. Create a text file with the list of IP addresses used in step 1.
    1 IP Address per line
    Example:
    192.168.123.1
    192.168.123.2
    ?etc
    Save this file as with a name like deploy.txt into the same directory as a copy of PSEXEC.exe
  2. Launch a command window and change to the directory where your text file and PSEXEC are.

You can now force the workstation to be imported using PSEXEC to manually call zwsreg on each system.

Here are three scenarios on importing into your tree:

Scenario 1: Import into tree using default Workstation Import Policy.

Launch PSEXEC to execute zwsreg on each computer (specified in the text file) using your import server and default
policy:

psexec @deploy.txt -u administrator -p <password> "c:\progra~1\novell\ZENworks\zwsreg.exe" -importserver
<IMPORTSERVER IP>

Scenario 2: Import into tree using a specific Workstation Import Policy.

Same as Scenario 1, but we are going to add the TYPELESS DN of your import policy.
Info on how to find out the typeless DN of your policy can be found here.

psexec @deploy.txt -u administrator -p <password> "c:\progra~1\novell\ZENworks\zwsreg.exe" -importserver
<IMPORTSERVER IP> -importpolicy "<YOURPACKAGE>:General:Workstation Import.<OU>.<ORG>"

The quotes are necessary because of the space in the DN.

Notice that there are colons (:) between the package name, General and Workstation Import.

Scenario 3: Import into tree without an import policy.

You can also directly import into the tree without a policy, by specifying the full DN of the Workstation object to create. You do lose much of the power of import policies, but if your needs are simple this can also work.

You can use environment variables to build the name (%COMPUTERNAME% is an obvious one).

psexec @deploy.txt -u administrator -p <password> "c:\progra~1\novell\ZENworks\zwsreg.exe" -importserver
<IMPORTSERVER IP> -importws <NAME>.CONTEXT

I hope this is helpful!

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS