Skype for Business Command Output shown as cropped List : Get-CsSimpleURLConfiguration

If a Skype for Business Get-Cs command provides an output as list, which is longer, it will provide a cropped output only.

The solution towards is, you need writing the output into a variable and screen print it into the command shell.

Example:
Get-CsSimpleURLConfiguration

Identity  : Global
SimpleUrl : {Component=Dialin;Domain=*;ActiveUrl=https://lync.one.sipdom.com/
            dialin, Component=Meet;Domain=nocl.sipdom.com;ActiveUrl=https://l
            ync.one.sipdom.com/nocl.sipdom.com/meet, Component=Meet;Domain=
            nst.sipdom.com;ActiveUrl=https://lync.one.sipdom.com/nst.sipdom
            .com/meet, Component=Meet;Domain=ntd.sipdom.com;ActiveUrl=https
            ://lync.one.sipdom.com/ntd.sipdom.com/meet...}


Getting the entire output you need the shell providing the output in a variable

$a=Get-CsSimpleUrlConfiguration
$a.SimpleUrl


This should output something like this:
PS > $A=Get-CsSimpleUrlConfiguration
PS > $a.SimpleUrl


SimpleUrlEntry : {Url=https://lync.one.sipdom.com/dialin}
Component : Dialin
Domain : *
ActiveUrl : https://lync.one.sipdom.com/dialin


SimpleUrlEntry : {Url=
https://lync.one.sipdom.com/nocl.sipdom.com/meet}
Component : Meet
Domain : *
ActiveUrl : https://lync.one.sipdom.com/nocl.sipdom.com/meet



Note:
If you wish writing the output into a txt file, simple use:
PS > $a.SimpleUrl > C:\output.txt



Just making the article complete, a new Simple URL will be added in a similar way:

$urlEntry = New-CsSimpleUrlEntry -Url “https://scheduler.sipdom.com”

$simpleUrl = New-CsSimpleUrl -Component “WebScheduler” -Domain “*” -SimpleUrlEntry $urlEntry -ActiveUrl “https://scheduler.sipdom.com”


Set-CsSimpleUrlConfiguration -SimpleUrl @{Add=$simpleUrl} -Verbose



Added Note:
Thanks to my MVP mate Greig Sheridan, he figured out a more simple way of showing an entire list element.

$FormatEnumerationLimit=-1

This enables PowerShell showing unlimited elements in a list. as per default this variable is set to 3. Changing it too -1 removes the limitation and provides a full inside view of the list element.



Comments

Popular posts from this blog

How to hide users from GAL if they are AD Connect synchronized

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings