Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - active directory

Reply
 
Old 11-15-2006   #1 (permalink)
Cameron Murray


 
 

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
Old 11-15-2006   #2 (permalink)
Cameron Murray


 
 

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
Old 11-16-2006   #3 (permalink)
Andrew Watt [MVP]


 
 

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
Old 11-16-2006   #4 (permalink)
Joerg H.


 
 

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
Old 11-16-2006   #5 (permalink)
gaurhoth


 
 

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
Reply

Thread Tools


Similar Threads
Thread Forum
active directory PowerShell
Active Directory Vista mail
Active Directory Vista General
Active Directory Vista networking & sharing
Active Directory PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46