Ok... Being really stupid now because I don't know what funtion to use after the script gets the AD Properties I am asking for...

I really like the Funcmapdrive stuff but cannot get it to work. Any thoughts

here is the test script:

 Quote:
Select
Case @INWIN = ("1") ;Windows NT


$adsPath = "WinNT://" + @DOMAIN + "/" + @USERID
$adsObj=GetObject($adsPath)

$hdir=GetADUserProperties("HomeDirectory")

FuncMapDrive("P:", $hdir)


Endselect


Thanks

Richard