locked
expand results RRS feed

  • Question

  • I'm running Get-DnsServerforwarder -comp dc01

    and the results are

    UseRootHint        : True
    Timeout(s)         : 3
    EnableReordering   :
    IPAddress          : {xx.xxx.x.xxx, xx.xxx.x.xxx, xx.xxx.x.xxx, xx.xxx.x.xxx..}
    ReorderedIPAddress :

    I added $FormatEnumerationLimit =-1 to my PS Profile and it gave me the results I needed.

    UseRootHint        : True
    Timeout(s)         : 3
    EnableReordering   :
    IPAddress          : {xx.xxx.x.xxx, xx.xxx.x.xxx, xx.xxx.x.xxx, xx.xxx.x.xxx, xx.xxx.x.xxx}
    ReorderedIPAddress :

    However, when I run the Get-DnsServer -comp dc01 command, which gives a collection of DNS results, the values in ServerForwarder section are still truncated like before.  Is there a way to make those results fully expand like when running the stand-alone (get-DnsServer) command?  Is there another $format setting I need to add to my profile?


    • Edited by harringg Wednesday, October 22, 2014 3:34 PM clarify question
    • Moved by Bill_Stewart Monday, December 1, 2014 7:28 PM Abandoned
    Wednesday, October 22, 2014 3:33 PM

All replies

  • Hi,

    What are you trying to accomplish? The IPAddress property in the ServerForwarder sections has much more detail than just what appears in the initial output.

    As an example, run this:


    (Get-DnsServer -ComputerName dc01).ServerForwarder.IPAddress



    Don't retire TechNet! - (Don't give up yet - 13,085+ strong and growing)

    Wednesday, October 22, 2014 3:44 PM
  • This will usually force expansion:

     Get-DnsServerforwarder -comp dc01 | format-List -Expand both

    This forces deep expansion of all collections.  If you don't like the format you will have to write a custom formatter.


    ¯\_(ツ)_/¯

    Wednesday, October 22, 2014 4:00 PM