+1 vote

Hi all,

Just wondering how I would go about connecting to Teams using Adaxes? I need to perform the following modifications to users:

Set-CsUser -Identity <UPN> -EnterpriseVoiceEnabled $true -HostedVoiceMail $true Grant-CsOnlineVoiceRoutingPolicy -Identity <UPN> -PolicyName “(policyname)”

Grant-CsCallingLineIdentity -Identity <UPN> -PolicyName "(policyname)"

I don't know how to make Adaxes connect to MS Teams however - I have found this script to connect to exchange online, however this uses an in-built command to do so. I don't think Adaxes has similar commands for Teams yet though? https://www.adaxes.com/script-repository/connect-to-exchange-with-powershell-s506.htm

Does anyone here know how to make Adaxes connect to Teams using the Connect-Microsoftteams command and run the above?

by (200 points)
+1

Very interested in this as well, as we're looking at doing as much management of Microsoft Phone System through Adaxes as possible.

0

Just released today, this looks like it might help this effort: Teams PowerShell Module 2.0

1 Answer

0 votes
by (288k points)

Hello,

In Adaxes 2020.1 and older you can use the New-CsOnlineSession cmdlet with the credentials specified for your Microsoft 365 tenant registered in Adaxes.

In Adaxes 2021.1 there is currently no such possibility as the corresponding module does not support modern authentication. As a workaround, you can specify the credentials in the Run as section of the Run a program or PowerShell script action, access them in your script as shown below and then use to establish the connection.

# Get credentials.
$password = ConvertTo-SecureString -AsPlainText -Force -String $Context.RunAs.Password
$credentials = `
    New-Object System.Management.Automation.PsCredential($Context.RunAs.UserName, $password)

If you have issues writing the required script, please, specify the following:

  • What version of Adaxes are you currently using? For information on how to check it, have a look at the following help article: https://www.adaxes.com/help/CheckServiceVersion.
  • What exactly should the script do?
  • When should the script be executed?

Any additional details and live examples will be very helpful.

How to run Teams commands with Adaxes?

Related questions

+1 vote
1 answer

I am trying to connect to teams via powershell in adaxes to run the following commands. Set-CsUser -Identity &lt;UPN&gt; -EnterpriseVoiceEnabled $true -HostedVoiceMail $true ... (policyname)" I am not able to run the following though, Connect-MicrosoftTeams

asked Apr 22, 2021 by TJ_Umredkar (140 points)
0 votes
1 answer

When I create a user from adaxes I also want it to be added to MS Teams groups. At this moment i create the account in adaxes after that i need to add this user in all groups that we have in MS Teams so i what to automate this when i create a new usuer.

asked Mar 29, 2022 by abisaigomezm (40 points)
0 votes
1 answer

Is this possible? We have a potential use case where we want to "natively" query AD using LDAP, but want to be able to leverage custom attributes\data in Adaxes, ... we can query the LDS instance and access both native and custom attributes etc. Many Thanks

asked May 25, 2017 by firegoblin (1.6k points)
0 votes
1 answer

I asked this question last year, but have just dealt with running the commands manually since as I was unable to work out a solution. https://www.adaxes.com/questions/10506 ... desktop support not Azure Magician and do not know what API's teams falls under.

asked Apr 1, 2022 by TheLexicon (200 points)
0 votes
1 answer

Hi, we are using Adaxes version 3.14.18920.0. We have Teams Poweshell module 2.3.1 installed on the computer where adaxes service runs. We have the ... } finally { # Close the connection and release resources Disconnect-MicrosoftTeams -Confirm:$False }

asked Jun 22, 2021 by TJ_Umredkar (140 points)
3,542 questions
3,233 answers
8,227 comments
547,808 users