If you want to know the server name of the AD DC to which your file/print cluster is currently connected, I can add a method to Win32Admin that will return that information.

Then your script could create the home directory first, query the trust to get the server name of the AD DC, create the account on that server, and follow-up with XCALCS which should be using the same DC where the accounts were created.

[ 09. December 2002, 12:40: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/