Forum Discussion
Rising Flight
Dec 13, 2018Brass Contributor
connect to SFB online powershell
Hi Experts I am using MFA for office365, could you please help me with the syntax to connect to SFB online powershell module. i have installed onlinepowershell module module but i am getting below ...
Rising Flight
Brass Contributor
PS C:\Users\user1.mydomain> $sfbSession = New-CsOnlineSession
Please enter the user principal name (ex. User@Domain.Com): adminacct@mydomain.com
Unable to discover PowerShell endpoint URI
At C:\Program Files\Common Files\Skype for Business
Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:114 char:9
+ throw $resources.DiscoveringEndpointFail
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to disco...ll endpoint URI:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to discover PowerShell endpoint URI
LinusCansby
Dec 13, 2018MVP
Add -OverrideAdminDomain and change to your tenantname.
$sfbSession = New-CsOnlineSession -Credential $userCredential -OverrideAdminDomain "yourtenantname.onmicrosoft.com"
$sfbSession = New-CsOnlineSession -Credential $userCredential -OverrideAdminDomain "yourtenantname.onmicrosoft.com"