Domain Name

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

Guest

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
 
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?
 
the user domain is domain for user , or computer ?
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.
 
Back
Top