How to get Domain Name from service?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to obtain the machine's domain name from my service application,
but the Environment.UserDomainName property only returns "NT AUTHORITY". Is
there an easy way to get the information I'm looking for without resorting to
WMI?

Thanks!
 
Ken,

That function only returns "NT AUTHORITY" as well when called from a
service. Do you know of any other functions that would provide the machine's
domain name?

Thanks.

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top