Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

active directory

Closed Thread
 
Thread Tools Display Modes
Old 11-15-2006   #1 (permalink)
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?
Old 11-15-2006   #2 (permalink)
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?

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

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

>

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

>>



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
active directory Walser Mark PowerShell 4 04-22-2008 08:55 AM
Active Directory Mark D. Hall Vista mail 1 09-14-2007 06:49 PM
Active Directory Dyawlak Vista security 3 05-24-2007 05:15 AM
Active Directory Vista General 4 12-19-2006 09:27 AM
Active Directory Vista networking & sharing 4 12-19-2006 09:27 AM








Vistax64.com 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 2005-2008

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 47 48 49 50