With Lync Server 2013 Administrative Tools (OCSCore.msi) locally installed, execution of the following remote PowerShell statement to connect to Skype for Business Online will trigger a prompt for TargetServer as shown:
$session = New-CsOnlineSession -Credential (Get-Credential)
cmdlet New-CsOnlineSession at command pipeline position 1
Supply values for the following parameters:
TargetServer:
New-CsOnlineSession : Cannot bind argument to parameter ‘TargetServer’ because it is an empty string.
At line:1 char:12
+ $session = New-CsOnlineSession -Credential $credential
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [New-CsOnlineSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,New-CsOnlineSession
This happens even after you have installed the current version* of “Skype for Business Online, Windows PowerShell Module”.
To resolve this issue, make sure that you apply the latest version of Lync Server 2013 or patch/cumulative update described in KB2809243 over the out-dated version.
* version 9319.0 released 22 Jul 2015 as of this writing
REFERENCE
Using Windows PowerShell to manage Skype for Business Online (link)