nachtmsk
asked on
Exchange 2010 user query
Hi,
I need to run a query (I'm guessing in powershell) that will give me a list of my email users and their email addresses.
I did some searching online and came up with this:
get-recipient | where {$_.emailaddresses -match "mydomain.com"} | select Firstname, emailaddresses
This query works to a degree. But I have a few questions:
1. Regarding the fields I am using the select on (Firstname, emailaddresses). Where can I find a list of field names that I can query against.
2. How to I export the results of this query to a text file?
Thanks!
M
I need to run a query (I'm guessing in powershell) that will give me a list of my email users and their email addresses.
I did some searching online and came up with this:
get-recipient | where {$_.emailaddresses -match "mydomain.com"} | select Firstname, emailaddresses
This query works to a degree. But I have a few questions:
1. Regarding the fields I am using the select on (Firstname, emailaddresses). Where can I find a list of field names that I can query against.
2. How to I export the results of this query to a text file?
Thanks!
M
Ya PS can do it, why don't you first try with EMC and export the result.
1.)
Get-Recipient "Username" | FL
Get-Mailbox "Username" | FL
Get-User "Username" | FL
2.)
At the last use > c:\user.txt
- Rancy
Get-Recipient "Username" | FL
Get-Mailbox "Username" | FL
Get-User "Username" | FL
2.)
At the last use > c:\user.txt
- Rancy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.