David, you might be on to something here, this just gets stranger and stranger
I've found that if you add a null string into the mix, it works on Win2K !code:
break on
; This script displays your active directory domain name
$domain = getobject("WinNT://@LDOMAIN")
if $domain
?"name=" $domain.name ; <--- this always worked on NT
$name = $domain.name ; <--- assign to variable
?"name=$name" ; <--- this doesn't work ! (as before)
$name = $domain.name+"" ; <--- do same but add null string !
?"domain name=$name" ; <--- and now it works on NT
endif
exit
Shawn.
[This message has been edited by Shawn (edited 19 April 2001).]