in reply to Getting a Users Name from a Domain

Thanks for that quick response.

I have just tried the Win32API::Net method and that seems to work ok on my local machine. I will try on the domain tomorrow. I am guessing that I will have to work out the Primary Domain Controllers Name before I can use the UserGetInfo function though.

I think that Win32:NetAdmin's GetDomainController will help there.

I will let you know how I get on!

Again many thanks.

Alistair