in reply to Re: User group membership: bug in code
in thread User group membership: bug in code

Many thanks for your reply,..the @GlobalGroups doesn't get populated?? I was informed that I am a domain admin and i can map a drive to the $admin share on the PDC.
  • Comment on Re: Re: User group membership: bug in code

Replies are listed 'Best First'.
Re: Re: Re: User group membership: bug in code
by blackadder (Hermit) on Jun 28, 2002 at 07:59 UTC
    I take all the above back,...it worked. But only if I pass the domain name manually. $domain returned by Win32::DomainName is not correct (it is a valid domain) but its not the master domain. Which brings me to the next question, how can obtain a list of available domains and how can I tell which is the master domain. Many thanks once again.

      Actually DomainName is doing what you told it to do so it is correct.

      As to a call to tell you what is the master domain of a series of domains. I don't think that exists. As AD comes into play you might see something down the road.

      Besides what is wrong with feeding your script the master domain or the PDC of the masterdomain? Remeber the PDC is what the function call needs.