FULL AcceptMessagesOnlyFrom
Hello, I use Exchange 2007 and run the below script to get the accept message only from: Get-Content C:\Scripts\List.txt | Get-DistributionGroup | Select-Object DisplayName, AcceptMessagesOnlyFrom > C:\RIGHTS.csv C:\RIGHTS.csv It results that I am not able to see the entire AcceptMessagesOnlyFrom field on the notepad file: DisplayName AcceptMessagesOnlyFrom ----------- ---------------------- Infra-IT_MANAGER {JOHN SMITH, STEPHANE DOWLING, ANDR... Would you know how I can get the full AcceptMessagesOnlyFrom field in the notepad? Thanks, Graig
August 24th, 2012 5:09am

Hi, What output you get when run this command ? Get-Content C:\Scripts\List.txt | Get-DistributionGroup -ResultSize unlimited | Select-Object DisplayName, AcceptMessagesOnlyFrom > C:\RIGHTS.csv Thanks, Swapnil Prajapati
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2012 6:29am

Hello Graig, You can change your command to this: Get-Content C:\Scripts\List.txt | Get-DistributionGroup | fl DisplayName, AcceptMessagesOnlyFrom > C:\RIGHTS.csv Thanks, Evan Evan Liu TechNet Community Support
August 27th, 2012 2:42am

Hello Graig, You can change your command to this: Get-Content C:\Scripts\List.txt | Get-DistributionGroup | fl DisplayName, AcceptMessagesOnlyFrom > C:\RIGHTS.csv Thanks, EvanEvan Liu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2012 2:48am

Hi Swapnil, I tried but I still get the .. at the end the list
August 28th, 2012 6:53am

Hello Evan, I finally get the entire list thank you!! Would you know If I could get it as is: JOHN SMITH STEPHANE DOWLING ANDREA SBROLA Thanks again, Graig
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2012 6:55am

Try this: Get-content c:\list.txt| foreach{ $DisplayName=(Get-distributiongroup -identity $_).DisplayName $users=(Get-distributiongroup -identity $_).AcceptMessagesOnlyFrom|%{$_.Name} "DisplayName:" $DisplayName "AcceptMessagesOnlyFrom:" $users } > c:\rights.txt Thanks, EvanEvan Liu TechNet Community Support
August 30th, 2012 6:07am

Try this: Get-content c:\list.txt| foreach{ $DisplayName=(Get-distributiongroup -identity $_).DisplayName $users=(Get-distributiongroup -identity $_).AcceptMessagesOnlyFrom|%{$_.Name} "DisplayName:" $DisplayName "AcceptMessagesOnlyFrom:" $users } > c:\rights.txt Thanks, EvanEvan Liu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2012 6:12am

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

Other recent topics Other recent topics