Connect to Skype for Business Online using remote PowerShell as shown belowConnect to Skype for Business PowerShell
Open Windows PowerShell as an administrator (use Run as administrator) on any machine which has Internet connection.
Run the command below, and enter your Office 365 admin account credentials.
$credential = Get-Credential
Run the script below to import the Skype for Business PowerShell Module:
Run the command below to create a new session
$session = New-CsOnlineSession -Credential $credential -Verbose
Finally, import the new session into the Windows PowerShell console.
- Run the following command to enable modern authentication:
Set-CsOAuthConfiguration -ClientAdalAuthOverride Allowed
- Verify that the change was successful by running the following:
Note: to disable modern authentication, run command: Set-CsOAuthConfiguration -ClientAdalAuthOverride NoOverride