Novell is now a part of Micro Focus

Change Tree 1

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Change the current tree and display all authenticated trees.


Product Categories:
  • eDirectory
  • NetWare 4.2
  • Functional Categories:
  • Directory and DS
  • Secure Identity
  • Posted:10 Sep 2002
    File Size:83KB


    Please read the note from our friends in legal before using this file.


    CHTree changes the current tree and displays all authenticated trees.

    For NetWare 4.11

    Installation Instructions

    Copy CHTREE.EXE to the SYS:\PUBLIC directory on your server.


    CHTREE [tree name] | [/?]

    Displays all authenticated trees. The current tree is marked by *. Changes the current tree to [tree name] if specified.

    Directory Services operations can only be performed on the current tree. This utility programmatically switches the Current tree, meaning CHTree can be used in a batch file to do operations on multiple trees.

    For example, consider the following DOS batch file:

    REM ***** Begin BATCH file *****
    REM List all users in the ACME_INC tree from the corp container and below.
    CX .corp
    NLIST user /s
    REM List all user in the TEST tree from the corp container and below.
    CX .corp
    NLIST user /s
    REM ***** End BATCH file *****

    Or consider a batch file to compare rights of users between two trees:

    REM ***** Begin BATCH file *****
    REM Show how Bob got rights to Lisa in the ACME tree and write to FILE1.
    DSRIGHTS .bob.corp lisa > FILE1
    REM Show how Bob got rights to Lisa in the TEST tree and write to FILE2.
    DSRIGHTS .bob.corp lisa > FILE2
    REM ***** End BATCH file *****

    Known Issues:

    CHTree will NOT authenticate you to a new tree. It only switches the current tree to one of the already authenticated trees.

    Frequently Asked Questions:

    Q: I cannot authenticate to multiple trees.
    A: You must have a client that support multiple trees. For example, Client 32 for DOS/Windows, NT, or Windows 95.

    Q: When the tree names are displayed, one tree name has an asterisk (*). What does the asterisk mean?
    A: The asterisk (*) indicates the current tree.

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

    © Copyright Micro Focus or one of its affiliates