Quick Powershell question - get-group

2010-01-26 Thread Rob Bonfiglio
I am trying to use the get-group command to return a list of the members of
a group.  If I use the following command I only get the first couple of
members, but the group has probably 50 people in it.  What can I do to get
the full list?

get-group -id groupname | fl DisplayName, Members


*Note that I am using the actual group name, rather than groupname.

I could swear I've done this before, but I can't figure out how.

Thanks for the help!

Rob


RE: Quick Powershell question - get-group

2010-01-26 Thread Campbell, Rob
Get-group -id groupname | select -expand members

From: Rob Bonfiglio [mailto:robbonfig...@gmail.com]
Sent: Tuesday, January 26, 2010 8:52 AM
To: MS-Exchange Admin Issues
Subject: Quick Powershell question - get-group

I am trying to use the get-group command to return a list of the members of a 
group.  If I use the following command I only get the first couple of members, 
but the group has probably 50 people in it.  What can I do to get the full list?

get-group -id groupname | fl DisplayName, Members


*Note that I am using the actual group name, rather than groupname.

I could swear I've done this before, but I can't figure out how.

Thanks for the help!

Rob
**
Note: 
The information contained in this message may be privileged and confidential 
and 
protected from disclosure.  If the reader of this message is not the intended  
recipient, or an employee or agent responsible for delivering this message to  
the intended recipient, you are hereby notified that any dissemination,   
distribution or copying of this communication is strictly prohibited. If you  
have received this communication in error, please notify us immediately by  
replying to the message and deleting it from your computer. 
**


Re: Quick Powershell question - get-group

2010-01-26 Thread Rob Bonfiglio
Excellent!  Thanks so much.

On Tue, Jan 26, 2010 at 9:59 AM, Campbell, Rob 
rob_campb...@centraltechnology.net wrote:

  Get-group –id “groupname” | select –expand members



 *From:* Rob Bonfiglio [mailto:robbonfig...@gmail.com]
 *Sent:* Tuesday, January 26, 2010 8:52 AM
 *To:* MS-Exchange Admin Issues
 *Subject:* Quick Powershell question - get-group



 I am trying to use the get-group command to return a list of the members of
 a group.  If I use the following command I only get the first couple of
 members, but the group has probably 50 people in it.  What can I do to get
 the full list?



 get-group -id groupname | fl DisplayName, Members





 *Note that I am using the actual group name, rather than groupname.



 I could swear I've done this before, but I can't figure out how.



 Thanks for the help!



 Rob

 **
 Note:
 The information contained in this message may be privileged and confidential 
 and
 protected from disclosure.  If the reader of this message is not the intended
 recipient, or an employee or agent responsible for delivering this message to
 the intended recipient, you are hereby notified that any dissemination,
 distribution or copying of this communication is strictly prohibited. If you
 have received this communication in error, please notify us immediately by
 replying to the message and deleting it from your computer.
 **




RE: Quick Powershell question - get-group

2010-01-26 Thread Campbell, Rob
If you just want the names,

Get-group -id groupname | select -expand members | select name


From: Rob Bonfiglio [mailto:robbonfig...@gmail.com]
Sent: Tuesday, January 26, 2010 9:21 AM
To: MS-Exchange Admin Issues
Subject: Re: Quick Powershell question - get-group

Excellent!  Thanks so much.
On Tue, Jan 26, 2010 at 9:59 AM, Campbell, Rob 
rob_campb...@centraltechnology.netmailto:rob_campb...@centraltechnology.net 
wrote:
Get-group -id groupname | select -expand members

From: Rob Bonfiglio 
[mailto:robbonfig...@gmail.commailto:robbonfig...@gmail.com]
Sent: Tuesday, January 26, 2010 8:52 AM
To: MS-Exchange Admin Issues
Subject: Quick Powershell question - get-group

I am trying to use the get-group command to return a list of the members of a 
group.  If I use the following command I only get the first couple of members, 
but the group has probably 50 people in it.  What can I do to get the full list?

get-group -id groupname | fl DisplayName, Members


*Note that I am using the actual group name, rather than groupname.

I could swear I've done this before, but I can't figure out how.

Thanks for the help!

Rob

**

Note:

The information contained in this message may be privileged and confidential and

protected from disclosure.  If the reader of this message is not the intended

recipient, or an employee or agent responsible for delivering this message to

the intended recipient, you are hereby notified that any dissemination,

distribution or copying of this communication is strictly prohibited. If you

have received this communication in error, please notify us immediately by

replying to the message and deleting it from your computer.

**

**
Note: 
The information contained in this message may be privileged and confidential 
and 
protected from disclosure.  If the reader of this message is not the intended  
recipient, or an employee or agent responsible for delivering this message to  
the intended recipient, you are hereby notified that any dissemination,   
distribution or copying of this communication is strictly prohibited. If you  
have received this communication in error, please notify us immediately by  
replying to the message and deleting it from your computer. 
**