Re: How do I find and display the canonicalName of the domain users group?




"Davez2" <best.david@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1171898729.181607.95140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The canonicalName attribute is operational (also known as a constructed
attribute). The value is not saved in Active Directory, but calculated
on
request. Use the GetInfoEx method of the group object to do this. This
attribute is also multi-valued. Your code needs to handle the situation
where there is no canonical name, one name, or more than one.

Thanks for the help


I use a very haphazard method for scripting. Running into problems and
searching the internet and or posting to newsgroups to find solutions.
Which is great but a little slow, and labor intensive for someone
else.
Where do you go to find out information like you've included above.
From a scripting book?
Or somekind of on line SDK library?



The best resource for scripting tasks in Active Directory is "Microsoft
Windows 2000 Scripting Guide". I like the text, but it is also available
online at:

http://www.microsoft.com/technet/scriptcenter/guide/sagsas_overview.mspx?mfr=true

In this case the guide gives clues, but putting it all together required
experimentation a few years ago. Sometimes the best place to get answers is
in the newsgroups.

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab web site - http://www.rlmueller.net
--


.



Relevant Pages

  • Re: Employee Number search in Active Directory
    ... I am fairly new to Active Directory and am hoping you can help me ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... thanks for the link of the online 1328 page Scripting Guide. ...
    (microsoft.public.windows.server.scripting)
  • Re: 0x8024001D
    ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx ...
    (microsoft.public.windowsupdate)
  • Re: Active Directory - Vbscript
    ... Scott Morgan wrote: ... > selected groupfrom Active Directory? ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Newbie search question
    ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... > Administration scripting examples and an ONLINE version of ... > the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: problems with MS04-007 (KB828028) update
    ... Microsoft MVP Scripting and WMI, ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter ...
    (microsoft.public.windowsupdate)