Get-CsUserCallingSettings -Identity wendy@domain.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gci -File | ? {$_.Extension -eq ".csv" -and $_.Name -match "DirectRouting"}).Name | Import-Csv -Delimiter "," | Export-Csv -Path .\drExport.csv -Delimiter ";" -Encoding UTF8 -NoTypeInformation -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$false)][String]$UserId, # AAD User Object Id | |
[Parameter(Mandatory=$false)][String]$UserName, # AAD User Name | |
[Parameter(Mandatory=$false)][String]$TenantName, #your primary domain or *.onmicrosoft.com domain | |
[Parameter(Mandatory=$false)][String]$CallQueueId, # Call Queue Id | |
[Parameter(Mandatory=$false)][ValidateSet("OptIn","OptOut")][String]$Action, | |
[Parameter(Mandatory=$false)][Switch]$QueryStatusOnly, | |
[Parameter(Mandatory=$false)][Switch]$MFA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$teamsRegion = Read-Host "Enter your Teams region. E.g. 'emea'" | |
function Get-UserToken { | |
param ( | |
) | |
# Tenant name or id | |
$tenantName = Read-Host "Enter your primary M365 domain or *.onmicrosoft.com name." | |
Add-Type -AssemblyName System.Web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$callQueues = Get-CsCallQueue | |
foreach ($callQueue in $callQueues) { | |
Set-CsCallQueue -Identity $callQueue.Identity -OverflowThreshold $callQueue.OverflowThreshold | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-CallQueueAgentList { | |
param ( | |
[Parameter(Mandatory=$false)][bool]$Export | |
) | |
$CallQueueList = Get-CsCallQueue | Select-Object Name, Identity | Out-GridView -Title "Choose a Call Queue from the List" -PassThru | |
$CallQueue = Get-CsCallQueue -Identity $CallQueueList.Identity | |
$CallQueueAgents = $CallQueue.Agents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import required functions from this repository | |
. .\Functions\Connect-M365CFV.ps1 | |
. .\Functions\Get-TeamsUserCallFlow.ps1 | |
$allTeamsUsers = Get-CsOnlineUser -Filter {accountEnabled -eq $true} | |
$teamsUserCounter = 1 | |
foreach ($teamsUser in $allTeamsUsers) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param | |
( | |
[Parameter (Mandatory = $false)] | |
[object] $WebhookData | |
) | |
$uri = "" | |
$Body = (ConvertFrom-Json -InputObject $WebhookData.RequestBody) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Net | |
# Input bindings are passed in via param block. | |
param($Request, $TriggerMetadata) | |
$uri = "" | |
$refreshUri = "" | |
$actionCardAa = @' | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Net | |
# Input bindings are passed in via param block. | |
param($Request, $TriggerMetadata) | |
$action = $Request.Body.action | |
$uri = "" | |
$body = @' |
OlderNewer