FN-GM Posted January 22, 2017 Posted January 22, 2017 Hello, I want to see what address lists are in an address book policy. I have run the below command but it has omitted and chopped off some of the lists so it fits in the powershell window. How would I view the complete list of address lists please? Get-AddressBookPolicy -Identity "Address Policy" | FL AddressLists Thanks
snagrat Posted January 22, 2017 Posted January 22, 2017 Could you use the Out-File command to get this out into a file. If still getting cropped the -width switch would allow you to specify how wide the column was. Get-AddressBookPolicy -Identity "Policy" | fl AddressLists | Out-File c:\file.text -width 120
FN-GM Posted January 22, 2017 Author Posted January 22, 2017 Thanks, but even if i set the width to a really high number its still not displaying all the address lists in the policy.
snagrat Posted January 22, 2017 Posted January 22, 2017 Do you get .....'s in the reply or is it just missing them completely?
Arthur Posted January 22, 2017 Posted January 22, 2017 (edited) even if I set the width to a really high number it's still not displaying all the address lists in the policy. Does this work? Get-AddressBookPolicy -Identity "Address Policy" | FL AddressLists -AutoSize Setting the width on Out-File won't make any difference if the text is being truncated the preceding command(s). Edited January 22, 2017 by Arthur
FN-GM Posted January 22, 2017 Author Posted January 22, 2017 Does this work? Get-AddressBookPolicy -Identity "Address Policy" | FL AddressLists -AutoSize Setting the width on Out-File won't make any difference if the text is being truncated the preceding command(s). That doesn't make a difference either. Do you get .....'s in the reply or is it just missing them completely? I get the ....
FN-GM Posted January 22, 2017 Author Posted January 22, 2017 Got it. I ran the below. Then ran the original command again PS > $FormatEnumerationLimit PS > $FormatEnumerationLimit=-1
Arthur Posted January 22, 2017 Posted January 22, 2017 Got it. I see what you mean now I've just tried it. The other way to do it would be... Get-AddressBookPolicy -Identity "Address Policy" | Select-Object -ExpandProperty AddressLists 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now