Loading and unloading eDirectory modules on Windows is performed using a GUI by either running “Novell eDirectory Services” from the Control Panel or invoking NDSCons.exe.

Using the GUI will not help in the following cases:

  • Load or unload of eDirectory module from the command line
  • To automate backup of eDirectory
  • Automate loading and unloading of modules
  • To list loaded modules of eDirectory


There is an easy way of loading and unloading eDirectory modules using dhostcon.exe, dhostcon.exe helps in overcoming problem of using GUI.

dhostcon.exe is installed by default along with eDirectory (by default at C:\Novell\NDS\).

  • Load or Unload of eDirectory Module from the Command Line


    dhostcon.exe <Loacal IP Address> <load/unload> <eDirectory module>

    example: Loading and Unloading of Repair module of eDirectory:

    c:\novell\nds\dhostcon.exe load dsrepair.dlm

    c:\novell\nds\dhostcon.exe unload dsrepair.dlm

  • To Automate Backup of eDirectory


    dhostcon.exe load dsbk backup -b -f <Backup File> -l <Log File> -t -w


    c:\novell\nds\dhostcon.exe load dsbk backup -b -f edirbackup.bak -l c:\novell\edir-backup.log -t -w

    Above can be automated by writing a command into the batch file at eDirectory installed location (by default C:\Novell\NDS). Run the created batch file when ever there is a requirement of backup of eDirectory.

  • Automate Loading and Unloading of Modules

    Write a batch script using the commands suggested in the case of loading/unloading of modules. Run the batch file when ever modules are required to be loaded. Similarly, the batch file can be written for unloading of modules.


    1. Create C:\Novell\NDS\auto_ld.bat.
    2. Add the following commands to the file:

      C:\Novell\NDS\dhostcon.exe load dsrepair.dlm

      C:\Novell\NDS\dhostcon.exe load dstrace.dlm
    3. Run the batch file auto_ld_unld.bat at the command line.
  • To list loaded modules of eDirectory


    dhostcon.exe <IP Address> modules


    C:\Novell\NDS\dhostcon.exe modules

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

Leave a Comment

By: sashwin
Jun 25, 2009
4:50 pm