this should work, it will give you the users DN

$GroupMem = (Get-Group "Name_Of_Group").members | select DistinguishedName
ForEach ($Member in $GroupMem){
Do something
}




On Tue, Oct 26, 2010 at 3:14 PM, Kleciak, Clint D A7IT <
clint.klec...@cigna.com> wrote:

>  I am trying to modify settings of users in a group, I would like to run
> something like
>
>
>
> $GroupMem = Get-Group "Name_Of_Group"
>
>                 ForEach ($_.Member in $GroupMem)
>
>                 Do something
>
>
>
> Only problem is “Member” is a multi valued attribute that includes all the
> individual members.  Does anyone know a way to work around that?
>
>
>
> thanks
>
>
>
> _______________________________________
> Clint Kleciak
> Infrastructure Engineer Mgr
> CIGNA IT
> clint.klec...@cigna.com
> 1-860-226-1386
>
>
>
> * *
>
> *Confidential, unpublished property of CIGNA. Do not duplicate or
> distribute. Use and distribution limited solely to authorized personnel.*
> ©* Copyright 2010 CIGNA*
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe exchangelist
>
>
> ------------------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: If you have received this email in error, please
> immediately notify the sender by e-mail at the address shown. This email
> transmission may contain confidential information. This information is
> intended only for the use of the individual(s) or entity to whom it is
> intended even if addressed incorrectly. Please delete it from your files if
> you are not the intended recipient. Thank you for your compliance. Copyright
> 2010 CIGNA
>
> ==============================================================================
>

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Reply via email to