HI, I have questation about computer domain . How I simpli get this
information from computer ? I want use systeminformation , properties
userdomainname , but this is user domain ...
thanx
marek

RE: Domain Name by AMercer

AMercer
Fri Apr 07 08:13:02 CDT 2006

> HI, I have questation about computer domain . How I simpli get this
> information from computer ? I want use systeminformation , properties
> userdomainname , but this is user domain ...

How about the environment variable USERDOMAIN?

RE: Domain Name by Marek

Marek
Fri Apr 07 08:59:01 CDT 2006

the user domain is domain for user , or computer ?

"AMercer" wrote:

> > HI, I have questation about computer domain . How I simpli get this
> > information from computer ? I want use systeminformation , properties
> > userdomainname , but this is user domain ...
>
> How about the environment variable USERDOMAIN?

RE: Domain Name by AMercer

AMercer
Fri Apr 07 10:28:02 CDT 2006

> the user domain is domain for user , or computer ?
>
> "AMercer" wrote:
>
> > > HI, I have questation about computer domain . How I simpli get this
> > > information from computer ? I want use systeminformation , properties
> > > userdomainname , but this is user domain ...
> >
> > How about the environment variable USERDOMAIN?

Sorry, I misunderstood your question. You may want environment variable
COMPUTERNAME, or you may want to use api IADsWinNTSystemInfo to get the
primary domain controller name. I'm not sure, and I'm on shaky ground here.