When I have a batch file mapping a drive like this:
net use H: \\SERVER\HomeDirs\%username%

or a Kixscript mapping a drive like this:
use H: \\SERVER\HomeDirs\@UserId

Sometimes the username/userid isn't resolved properly.
I need the pre-Windows 2000 user logon name, but it seems that it sometimes uses the Active Directory user logon name, which is empty.
How can I make sure that definitly get the pre-Windows 2000 user logon name ? ;\)