S
Sunny Gulati
Namespace: System.Environment?
Greetings,
I am attempting to discover the domain name that the current machine belongs
to.
In this case, the code runs from "sheduled tasks" as the local
administrator, and thus System.Environment.UserDomainName returns the
machine name rather than the machine's domain name.
Is there any way to do this? if not in .Net, is there a Win32 call that can
help me with this that I could interop with?
Sincerely,
Sunny Gulati
Greetings,
I am attempting to discover the domain name that the current machine belongs
to.
In this case, the code runs from "sheduled tasks" as the local
administrator, and thus System.Environment.UserDomainName returns the
machine name rather than the machine's domain name.
Is there any way to do this? if not in .Net, is there a Win32 call that can
help me with this that I could interop with?
Sincerely,
Sunny Gulati