PSSession to Skype-Server
Posted: Fri Mar 22, 2019 7:17 am
Hello everybody,
i got some problems with a script from the internet. It works on my Skype for Business Server 2015 but if i create a PowerShell-Session to the Server it won't work. Which script i use is Get-fBNumbers.ps1 (can found on the internet).
My Problem is now, if i import the PowerShell-Session it doesn't import all cmdlets from the server (Skype for Business Server). There are missing cmdlets like Get-CSServerVersion or Get-CsUnassignedNumber.
Does anyone has a solution?
Here is my part to connect to the Skype Server:
i got some problems with a script from the internet. It works on my Skype for Business Server 2015 but if i create a PowerShell-Session to the Server it won't work. Which script i use is Get-fBNumbers.ps1 (can found on the internet).
My Problem is now, if i import the PowerShell-Session it doesn't import all cmdlets from the server (Skype for Business Server). There are missing cmdlets like Get-CSServerVersion or Get-CsUnassignedNumber.
Does anyone has a solution?
Here is my part to connect to the Skype Server:
Code: Select all
$SkypeSession = New-PSSession -Credential $Credentials -ConnectionURI "https://$SkypeForBusinessServer/OcsPowershell" -AllowRedirection #-WarningAction SilentlyContinue
if ($?)
{
Import-PSSession $SkypeSession