Call2Teams - Customers
Users may need to run PowerShell scripts for diagnostics or advance configurations.
This article explains how to ready a local device (PC) for using PowerShell.
Note: Microsoft have now upgraded their PowerShell Modules for Microsoft Teams.
For more information click here.
1. Get the latest PowerShell version from https://github.com/PowerShell/PowerShell/
2. Run PowerShell from the start menu
3 Install the Microsoft Teams Module:
Install-Module MicrosoftTeams -AllowClobber
By default, the PowerShell Gallery (PSGallery) isn't configured as a trusted repository for PowerShellGet. The first time using the PSGallery will show the following message:
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the `Set-PSRepository` cmdlet.
Are you sure you want to install the modules from 'PSGallery'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
Answer Yes or Yes to All to continue with the installation.
Note: The following error message that may appear:
Connect using a 365 admin account
Open a Windows PowerShell command prompt window, and run the following commands:
$sfbSession = New-CsOnlineSession
There should be an Microsoft 365 pop up in which the user will need to enter the Global 365 admin details.
Once completed users will be able to run commands (Example below)
- Get a list of all users that are EnterpriseVoiceEnabled. Enter the following: