Thread: Get-member
View Single Post
Old 04-10-2008   #7 (permalink)
RickB
Guest


 

Re: Get-member

On Apr 10, 4:31*pm, Swamy Channaveera
<SwamyChannave...@xxxxxx> wrote:
Quote:

> My goal is the check all the user object properties.
> with
> $user = [ADSI]"LDAP://CN=Alex
> Roland,OU=Developers,OU=Users,OU=OUs,DC=litwarinc"
> $user.psbase | get-member
>
> I'm unable to see one of the user object property "altrecepient". If u just
> use the following script it does show most the attributed of the user object,
> but not "altrecepient"
>
> $user = [ADSI]"LDAP://CN=Alex
> Roland,OU=Developers,OU=Users,OU=OUs,DC=litwarinc"
> $user | get-member
>
> how to use get-member to display all possible attributes of user object?
>
>
>
> "Brandon Shell [MVP]" wrote:
Quote:

> > $user = [ADSI]"LDAP://CN=Alex Roland,OU=Developers,OU=Users,OU=OUs,DC=litwarinc"
> > $user.psbase | get-member
>
Quote:

> > should give you what your looking for. What is your goal?
>
Quote:

> > Brandon Shell
> > ---------------
> > Blog:http://www.bsonposh.com/
> > PSH Scripts Project: *www.codeplex.com/psobject
>
Quote:

> > SC> Thanks, the output gives me only the even less number of properties.
> > SC>
> > SC> My requirement is when i run
> > SC>
> > SC> $user = [ADSI]"WinNT://litwareinc/AleRol"
> > SC> $user | get-member
> > SC> or
> > SC> $user = [ADSI]"LDAP://CN=Alex
> > SC> Roland,OU=Developers,OU=Users,OU=OUs,DC=litwarinc
> > SC> $user | get-member
> > SC>
> > SC> I don't see all the properties displayed for the user. like
> > SC> altrecipient attribute are not displayed in the get-member. do i get
> > SC> all the properties of a object / user using get-member??
> > SC>
> > SC> "Brandon Shell [MVP]" wrote:
> > SC>
Quote:

> > >> $user.psbase | get-member
> > >>http://blogs.msdn.com/powershell/arc...t-s-up-with-ps
> > >> base-psextended-psadapted-and-psobject.aspx
> > >> Brandon Shell
> > >> ---------------
> > >> Blog:http://www.bsonposh.com/
> > >> PSH Scripts Project: *www.codeplex.com/psobject
> > >> SC> Hi,
> > >> SC>
> > >> SC> I'm using the following script
> > >> SC> $user = [ADSI]"WinNT://DN of the user object"
> > >> SC> $user | get-member
> > >> SC> It shows only the default properties of the user object, how to
> > >> get
> > >> SC> all the properties of the uses object using Get-member.
> > >> SC>
> > >> SC> I tryed get-member - membertype all.
> > >> SC>
> > >> SC> It also displayes the default list of properties.
> > >> SC>- Hide quoted text -
>
> - Show quoted text -
Are you sure that the members you think are missing actually exist on
the object?

The -force option gives you some members that aren't displayed by
default.
If that doesn't do it, you should probably re-think where you expect
them.
They could, for example, be in a sub-object of the object you are
looking at, etc.

Good luck
My System SpecsSystem Spec