PowerShell cmd to Get DL along with Owners
Need small help, i need a power shell cmd or script which will give me the list of all the Distributions list along with the OWNERS of that like managed by ... so i tried the below but not getting the output in appropriate manner. Like Display Name and Managed By " Owners name only" For the owners it's coming "domainname/OU/Users OU/<User name>" But i need it in Display Name and Owners Name Only . Like Below:- Display Name Managed BY DL1 user1 DL2 User2 get-distributiongroup -resultsize unlimited |ft name, managedby
June 27th, 2012 11:47am

Seriously, you can't expect a public forum worked mostly by people who do this for free to write scripts for you. You'll need to get the distribution group object's ManagedBy propoerty, then use that to get the mailbox, and the pull the display name. For each distribution group, collect its name and the name of the mailbox and then write it out. It's not a hard script to write. Obtain this, read it, practice it, and it'll start to come clear to you. http://www.amazon.com/Windows-PowerShell-Action-Second-Edition/dp/1935182137/ref=sr_1_1?ie=UTF8&qid=1340817277&sr=8-1&keywords=powershell+payetteEd Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2012 1:26pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics