When amapping a drive, the use statement need a specific network address (IP address) and resource name (share). The domain name can not be resolved to a specific address. Therefore, you need to provide the name of the server.

In an NT4 environment, I used to use NLTEST.exe from the resourcce kit to find a PDC in a domain.
code:
c:\data\scripts>nltest /dclist:dss_test
Domain 'dss_test' is not an NT 5 domain. (Using NetServerEnum).
List of DCs in Domain dss_test
\\US194DC41 (PDC)
\\US177SS40
The command completed successfully

You can use Pipe() udf or redirect to a file and parse it to find the server name with the PDC role.

{edit} my comments seem to have been off target.

[ 16. August 2002, 14:37: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/