powershell
61 TopicsMicrosoft Teams PowerShell Module V2.3 - Set-CsUser broken!
As Microsoft discontinued SkypeOnlineConnector (finally) we moved to MicrosoftTeams PowerShell Module for user management - especially for Direct Routing phone number management (-OnPremLineURI). However, the current version of MicrosoftTeams PowerShell Module no longer supports -OnPremLineURI neither does it work for -EnterpriseVoiceEnabled:$true and or -HostedVoiceMail:$true We are currently inable to deploy new phone system users as the "legacy" SkypeOnlineConnector no longer functions.Solved30KViews2likes24CommentsUsing PowerShell to Post Channel Messages with Teams Workflows
The incoming webhook connector is a popular method to post information to Teams channels, but Microsoft seems set on retiring the Office connectors. The Teams post to channel workflow when a webhook request is received seems like is a possible replacement, but it’s not just a matter of switching mechanisms. Some PowerShell magic is needed to create a suitable adaptive card to post to the channel, which is exactly what we explain how to do here. https://office365itpros.com/2024/06/17/teams-post-to-channel-workflow/5.5KViews1like0CommentsSending Urgent Teams Chats with PowerShell
A reader asked if it is possible to script sending chat messages. In this article, we explore how to compose and send Teams urgent messages to a set of recipients using Microsoft Graph PowerShell SDK cmdlets. The conversation with each recipient is a one-to-one chat that Teams either creates from scratch or reuses (if a suitable one-on-one chat exists). https://office365itpros.com/2024/04/24/teams-urgent-message-ps/2.6KViews1like1CommentUsing an Azure Automation Runbook to Remove Teams Chat Threads
A previous article explains how to delete Teams chats using an interactive Microsoft Graph PowerShell SDK session. This article builds on that information and explains how to use an Azure Automation runbook to find and remove specified chat threads by scanning all user accounts. The results of the scan and any removed chat threads are emailed to a nominated address at the end of processing. https://practical365.com/delete-teams-chats-azure/428Views1like0CommentsChasing Performance When Reporting Teams SharePoint Site URLs
It’s possible to use PowerShell to create a report detailing the SharePoint Online site URLs used with Teams. My first attempt used the Exchange Online module, but is the Graph any faster? As it turns out, not really. At least, not for interactive sessions using the Microsoft Graph PowerShell SDK (things are different when running SDK code using a registered app). I tried several approaches, but Graph permissions got in the way every time. https://office365itpros.com/2023/09/21/teams-sharepoint-url/585Views1like1CommentRemote connection to Tenant v1.1.6 vs v.2.3.1
Hello guys, I work on a corporate network and when I used the v1.1.6 Teams module of Powershell I was able to connect to the Tenant I manage with the following lines: $Domain2Connect = "MyTenant.onmicrosoft.com" Import-Module MicrosoftTeams $UserCredential = Get-Credential -Credential $Null $proxysettings=New-PSSessionOption -ProxyAccessType IEConfig $session=New-CsOnlineSession –OverrideAdminDomain $Domain2Connect -SessionOption $proxysettings -Credential $UserCredential Import-PSSession –Session $session -AllowClobber From the apparition of module v2.0.0, I can connect with : $cred = get-credential Connect-MicrosoftTeams -credential $cred but when I launch the command get-cs-onlineuser I have the following error The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". I read a lot of documentation, but I am still unable to solve this issue (and so I connect to an other network). Do anyone have an idea how to solve this ? Thanks in advanceSolved1.6KViews1like3CommentsPowershell command to export ALL private Teams memberships, including private Channel memberships
There is currently a major issue that Microsoft is not saying is a bug. When a user is soft-deleted (what happens when we disconnect that user from the on-premise AD to force the cloud-only conversion) they are soft-deleted in O365. The restore works great, however, Teams does not work afterwards.. When the account is restored, all the licenses are retained, all the email, security, private teams memberships are also restored, however, the private channel memberships are permanently removed and cannot be recovered. The only way to get the access back is to go into Teams Admin Centre, open each Team/Channel combo and re-add the user. What happens if you don't actually know what private channel they are members of and what that membership is (member/owner)? You're SOL. I've tried many powershell scripts but they won't show me ALL private teams with all private channel memberships for all teams/channels/users. I would nave to run it for each team/channel name combo and we have many. Anyone have a good script to use?Solved18KViews1like9CommentsDownload meeting attendance reports of the last month in bulk
Hi, every month I have to make a very detailed report (excel) of all the teams meetings of our company, with link to the meeting, user attendance reports, organizer of the meeting and other infos. I'm asking if there's a way to download in bulk ALL THE ATTENDANCE REPORTS of the last month in powershell, so i can make this job faster. I'll merge and format the sheet later with macros. If that's not possible in bulk, I could even use a "download single attendance meeting report". TL:DR I need all the csv files that I get with the button circled in red, for all the company meetings of the last month via powershell. Any and all advice is welcome, thanks!8KViews1like1CommentScript to view users phone numbers or extensions in tenant
Hello, We are moving from Skype Online to Teams and we are assigning extensions to our users. Does anyone know of a simple script that can output "Username" and "Teams Phone Number or Teams Extension" I've tried a few scripts but nothing seems to give me the information I need. Thanks!21KViews1like5CommentsHow to control Teams channel notifications using powershell?
Hello everyone, I want to disable the notifications from one team, without leaving the team. From the Teams app, it appears the only way to do this is to click the "..." on each channel in that team to disable the notifications. If that team has many channels (for example, 20 or more), this becomes tedious. Moreover, if any new channels are created afterwards, one has to find them and repeat the process. There doesn't appear to be any way to change the notifications settings for the entire team, or even to select multiple channels. It is not clear why this is missing from the interface. Nonetheless, I thought I could "approximately" achieve it by running a powershell command "in a loop" over all the existing channels of a team. However, from the https://docs.microsoft.com/en-us/powershell/module/teams/?view=teams-ps, the cmdlets available seem to only enable configuring a team, not the user's settings with respect to that team. I looked around for other documents that address this requirement, but couldn't find anything of help. Can you advise me on how I can achieve this?Solved8.2KViews1like2Comments