Novell Home

Tree Script

Novell Cool Solutions: Cool Tool

Rate This Page

Reader Rating  stars  from 4 ratings

Digg This - Slashdot This

In Brief

Setting the preferred tree programmatically.

Vitals

Product Categories:
  • eDirectory
  • Novell Client
  • Functional Categories:
  • Secure Identity
  • Server Utilities
  • Posted:24 Jun 2003
    File Size:44KB
    License:Free
    Download:/coolsolutions/tools/downloads/preftree.exe
    Publisher:Thomas Greger

    Disclaimer

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


    Details

    I created a tool for a customer who wanted to set the preferred tree to a different tree from the login script.

    The program requires the tree name as the parameter, e.g. "PrefTree NOVELL_INC". For troubleshooting purpose, the program can show detailed messages, if the parameter "/v"("verbose") is specified as the second parameter. Without "/v" the program operates in a quiet mode, to not confuse end users with disturbing messages.

    How the program works:
    The user needs to be already logged into the second tree that he wants to become the primary tree (Usually from a login script or other kind of script). PrefTree.exe finds the first connected server in the specified tree and makes it the preferred server. Then the program sets the new tree as the preferred tree. If the user has the "Default Server"-attribute set, the program tries to make this server the primary server.

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

    Reader Comments

    • Very useful. Previous comment re "TREE" command in login script is not 100% accurate. This command actually changes your client's primary tree. "TREE" in login script only "refocuses" (as well as authenticates) to another tree for the duration of the login script. Both commands are useful depending upon the requirement.
    • This program is somewhat usefull in batch files,. In login scripts the TREE command already existed....

    Novell® Making IT Work As One

    © 2009 Novell, Inc. All Rights Reserved.