Need a command to export users with the group membership and account expiration

Don't know if this is even possible and whether I should be using Windows Powershell or Exchange Powershell. I need to export all our contract users. Their logons all start with "c-" so a contractor  named John Doe would have a logon of c-jdoe. I also need to export each users group membership and the tough part is I need to export out when their account expires. Hope someone can help out with this one.
osiexchangeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike KlineCommented:
You can use powershell (quest cmdlets), I'm a big fan of adfind by Joe Richards

http://www.joeware.net/freetools/tools/adfind/index.htm

adfind -default -f "(samaccountname=c-*)"  samaccountname memberof accountexpires -tdc -csv >  c:\Users.csv

Thanks

Mike
Mike KlineCommented:
ok using the quest cmdlets

http://www.quest.com/powershell/activeroles-server.aspx

get-qaduser c-* | select-object samaccountname, memberof, accountexpires | export-csv c:\users.csv

Thanks

Mike

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
osiexchangeAuthor Commented:
This ADFind is great. Is there any way to output just the name of the group and not the FQDN.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.