Remote SfB PowerShell Administration

No time to install Management Tools? Or just want to test your scripts locally without having to copy/paste on the Front Ends or management nodes? This is what i do:

param(
 [string]$pool = $(Read-Host "Lync/SfB Pool")
 )
$Credential = Get-Credential
 $PSSessionOption = New-PSSessionOption -SkipCACheck:$true -SkipCNCheck:$true -SkipRevocationCheck:$true
 $PSSession = New-PSSession -ConnectionUri https://$pool/ocspowershell -Credential $Credential -SessionOption $PSSessionOption
 Import-PSSession $PSSession

Leave a Reply