Windows Vista Forums

active directory

  1. #1


    Cameron Murray Guest

    active directory

    Just downloaded powershell and have been playing around for a little bit..
    Looks like I can finally drop those calls to rundll to add printers
    Anyway..

    My question is:

    How much (if any) Active Directory support does powershell have? Can you for
    instance get the group membership for the logged on user?



      My System SpecsSystem Spec

  2. #2


    Cameron Murray Guest

    RE: active directory

    Ill go ahead and answer my own question.

    http://del.icio.us/powershell/Active...ry?setcount=50

    :-D

    "Cameron Murray" wrote:

    > Just downloaded powershell and have been playing around for a little bit..
    > Looks like I can finally drop those calls to rundll to add printers
    > Anyway..
    >
    > My question is:
    >
    > How much (if any) Active Directory support does powershell have? Can you for
    > instance get the group membership for the logged on user?


      My System SpecsSystem Spec

  3. #3


    Andrew Watt [MVP] Guest

    Re: active directory

    As I understand it RC2 breaks some earlier AD-related stuff.

    MOW has quite a few AD-related articles on his blog:
    http://mow001.blogspot.com/.

    I hazily recall that he had / was getting a new domain. No doubt, he
    can let you know its URL.

    Andrew Watt MVP

    On Wed, 15 Nov 2006 17:46:02 -0800, Cameron Murray
    <CameronMurray@discussions.microsoft.com> wrote:

    >Ill go ahead and answer my own question.
    >
    >http://del.icio.us/powershell/Active...ry?setcount=50
    >
    >:-D
    >
    >"Cameron Murray" wrote:
    >
    >> Just downloaded powershell and have been playing around for a little bit..
    >> Looks like I can finally drop those calls to rundll to add printers
    >> Anyway..
    >>
    >> My question is:
    >>
    >> How much (if any) Active Directory support does powershell have? Can you for
    >> instance get the group membership for the logged on user?


      My System SpecsSystem Spec

  4. #4


    Joerg H. Guest

    Re: active directory - get_Children() <- gone ?

    Hi Andrew, hi Cameron,

    I started using PS to browse the AD and startet in root by
    $root = New-Object System.DirectoryServices.DirectoryEntry

    $root is as expected:
    distinguishedName
    -----------------
    {DC=SubDom,DC=MyDom,DC=net}

    From here it was possible to get the children of root by
    $root.get_children()
    and showed me the OUs, CNs a.s.o. from this point downwards.

    But the V1.0 did not show me the .get_children() Method any more... !?

    The former RC1 was working as expected [I think I missed somhow the RC2 by
    my three week vacation.. and was not working on my scripts :-)

    Have you (Andrew?) some information how I can get the get_children (or
    another method) working?
    I do not see a method doing this in the V1.0. In fact I miss _any_ get_* or
    set_* method from here... (which were there in RC1 )

    Thanks a lot

    Joerg


    "Andrew Watt [MVP]" wrote:

    > As I understand it RC2 breaks some earlier AD-related stuff.
    >
    > MOW has quite a few AD-related articles on his blog:
    > http://mow001.blogspot.com/.
    >
    > I hazily recall that he had / was getting a new domain. No doubt, he
    > can let you know its URL.
    >
    > Andrew Watt MVP
    >
    > On Wed, 15 Nov 2006 17:46:02 -0800, Cameron Murray
    > <CameronMurray@discussions.microsoft.com> wrote:
    >
    > >Ill go ahead and answer my own question.
    > >
    > >http://del.icio.us/powershell/Active...ry?setcount=50
    > >
    > >:-D
    > >
    > >"Cameron Murray" wrote:
    > >
    > >> Just downloaded powershell and have been playing around for a little bit..
    > >> Looks like I can finally drop those calls to rundll to add printers
    > >> Anyway..
    > >>
    > >> My question is:
    > >>
    > >> How much (if any) Active Directory support does powershell have? Can you for
    > >> instance get the group membership for the logged on user?

    >


      My System SpecsSystem Spec

  5. #5


    gaurhoth Guest

    Re: active directory - get_Children() <- gone ?

    Under RC2 and 1.0, you can use:

    $ad= New-Object directoryservices.directoryentry
    $ad.psbase.children


    "Joerg H." <JoergH@discussions.microsoft.com> wrote in message
    news:3263A4BE-003A-429D-9AD7-DD5C0E47FBE3@microsoft.com...
    > Hi Andrew, hi Cameron,
    >
    > I started using PS to browse the AD and startet in root by
    > $root = New-Object System.DirectoryServices.DirectoryEntry
    >
    > $root is as expected:
    > distinguishedName
    > -----------------
    > {DC=SubDom,DC=MyDom,DC=net}
    >
    > From here it was possible to get the children of root by
    > $root.get_children()
    > and showed me the OUs, CNs a.s.o. from this point downwards.
    >
    > But the V1.0 did not show me the .get_children() Method any more... !?
    >
    > The former RC1 was working as expected [I think I missed somhow the RC2 by
    > my three week vacation.. and was not working on my scripts :-)
    >
    > Have you (Andrew?) some information how I can get the get_children (or
    > another method) working?
    > I do not see a method doing this in the V1.0. In fact I miss _any_ get_*
    > or
    > set_* method from here... (which were there in RC1 )
    >
    > Thanks a lot
    >
    > Joerg
    >
    >
    > "Andrew Watt [MVP]" wrote:
    >
    >> As I understand it RC2 breaks some earlier AD-related stuff.
    >>
    >> MOW has quite a few AD-related articles on his blog:
    >> http://mow001.blogspot.com/.
    >>
    >> I hazily recall that he had / was getting a new domain. No doubt, he
    >> can let you know its URL.
    >>
    >> Andrew Watt MVP
    >>
    >> On Wed, 15 Nov 2006 17:46:02 -0800, Cameron Murray
    >> <CameronMurray@discussions.microsoft.com> wrote:
    >>
    >> >Ill go ahead and answer my own question.
    >> >
    >> >http://del.icio.us/powershell/Active...ry?setcount=50
    >> >
    >> >:-D
    >> >
    >> >"Cameron Murray" wrote:
    >> >
    >> >> Just downloaded powershell and have been playing around for a little
    >> >> bit..
    >> >> Looks like I can finally drop those calls to rundll to add printers
    >> >> Anyway..
    >> >>
    >> >> My question is:
    >> >>
    >> >> How much (if any) Active Directory support does powershell have? Can
    >> >> you for
    >> >> instance get the group membership for the logged on user?

    >>




      My System SpecsSystem Spec

active directory

Similar Threads
Thread Thread Starter Forum Replies Last Post
active directory Walser Mark PowerShell 4 22 Apr 2008
Active Directory Mark D. Hall Vista mail 1 14 Sep 2007
Active Directory Vista General 4 19 Dec 2006
Active Directory Vista networking & sharing 4 19 Dec 2006
Active Directory Lothar PowerShell 7 14 Dec 2006