POWERSHELL

Azure Automation: PSGallery Version Check

Andres Bohren
Hi All, I don't check daily if there are any new PowerShell modules in PSGallery. So i wrote me a Script of my most used Modules to Inform me if there are any new Modules available. With the following Code i check for the current Version of the Modules and put them into a PSCustomObject with the Attributes Release, Module, Version (for GA and Prerelease Versions). ############################################################################### # Check PSGallery Modules

Check for Microsoft Teams Update with PowerShell

Andres Bohren
Hi All, I was inspired to look a little bit deeper into the Update Mechanism of Microsoft Teams by the "Teams MSI Override" GitHub Project. You can check your Version in Teams by Settings > Info > Version Then the current Version and update Date is shown in the top bar You can invoke a update check in Settings > check for updates Then Teams will search for updates I've traced this Action in Fiddler

Check your M365 Licenses with Azure Automation V2 (with Microsoft Graph)

Andres Bohren
Hi All, Over a Year ago i did wrote a Azure Automation Script to check your M365 Licenses. Check your M365 Licenses with Azure Automation https://blog.icewolf.ch/archive/2021/04/18/check-your-m365-licenses-with-azure-automation.aspx I did rewrite that code to support Microsoft Graph for query the Licenses and also send the Mail via Microsoft Graph. Setup Environement I first created a new AzureAD Application (just to make a clear separation of Graph Permissions for the purpose of this Demo).

MicrosoftTeams PowerShell Module 3.2.0 Preview released

Andres Bohren
Hi All, A few Days ago, Microsoft has released the MicrosoftTeams PowerShell Module v3.2.0 Preview to the PSGallery. Here are the Release notes https://docs.microsoft.com/en-us/MicrosoftTeams/teams-powershell-release-notes Find-Module -Name MicrosoftTeams -AllowPrerelease Install-Module -Name MicrosoftTeams -AllowPrerelease -Force Let's see how long it takes to load the Module. It's about the same as with the Microsoft Teams PowerShell 3.1.1 Measure-Command -Expression {Import-Module MicrosoftTeams} Get-Module My usual Tests Connect-MicrosoftTeams Get-Team Get-CsOnlineUser -Identity a.bohren@icewolf.ch | fl *Ent*, *host*, *voice*, *um* Regards Andres Bohren

Microsoft Teams routing calls to unassigned Numbers

Andres Bohren
Hi All, In my M365 Tenant i use Direct Routing from Sunrise, a Telco Provider here in Switzerland. I own a Numberrange with 10 Number +41 21 555 39 70-79. If i call with my Mobilephone to a Number, that is not assignet to a User, Callflow or Autoattendant, i get an Anouncement from the Provider (Sunrise) that the Number is not active. This is because the Session Border Controller at the Provider receives a SIP 404 Not Found.

PowerShell Script to check for AAD Apps with expiring ClientSecrets and Certificates

Andres Bohren
Hi all, I guess we all wrote Applications or Scripts that use AAD Applications and used ClientSecrets or Certificates to Authenticate. But what will happen when the Certificate or ClientSecret will expire? Simple - the Application won't work anymore, because the Authentication will fail. So i searched for a way to check if the ClientSecret or Certificate will soon expire. Let me show an Application that has multiple ClientSecrets and Certificates.

MicrosoftTeams PowerShell Module 3.1.0 released

Andres Bohren
Hi All, Just a few days ago, Microsoft has released the MicrosoftTeams PowerShell Module v3.1.0 to the PSGallery. Here are the Release notes Time to uninstall the old Modules and get the new one. Unfortunately i had still code open, that's why 3.0.1-Preview couln't be uninstalled in the first place- Get-Module MicrosoftTeams -ListAvailable Uninstall-Module MicrosoftTeams Uninstall-Module MicrosoftTeams Uninstall-Module MicrosoftTeams Now Install the MicrosoftTeams PowerShell Module from the PSGallery Find-Module MicrosoftTeams Install-Module MicrosoftTeams

PowerShell 7.2.1 veröffentlicht

Andres Bohren
Hallo zusammen, Gestern wurde die PowerShell 7.2.1 veröffentlicht https://github.com/PowerShell/powershell/releases Hier die Screenshots der Installation Ich aktiviere jeweils "Enable PowerShell remoting" Liebe Grüsse Andres Bohren

AAD Connect - Create Custom Sync Rule with Powershell

Andres Bohren
Hallo zusammen, Ich habe kürzlich einen Blog Artikel geschrieben, wie man Custom Sync Rules im AAD Connect erstellt. Nun habe ich mir gedacht, es wäre auch noch nett, diese Sync Rules mit PowerShell zu erstellen. Leider gibt es dazu keine so gute Dokumentation Online. Folgende zwei Webseiten haben mir aber geholfen. https://dirteam.com/sander/2020/06/08/an-overview-of-azure-ad-connects-powershell-modules-and-cmdlets/ https://blog.kloud.com.au/2014/10/23/adsync-cmdlets/ Import-Module ADSync Get-ADSyncRule | ft Identitifier, Name, Direction, Precedence Schauen wir uns doch mal die Custom Sync Rules an (1-99) welche ich kürzlich erstellt habe

Skype for Business Hybrid and Move-CsUser

Andres Bohren
Hallo zusammen, Ich durfte kürzlich einen Kunden bei der Migration von Skype for Business nach Microsoft Teams untertützen. Plan hybrid connectivity between Skype for Business Server and Teams https://docs.microsoft.com/en-us/skypeforbusiness/hybrid/plan-hybrid-connectivity#implications-of-the-retirement-of-skype-for-business-online Da es noch Abhängikeiten mit einer 3rd Party Lösung (Luware LUCS auf Seiten Skype gab und somit nicht alle Benutzer nach Teams migriert werden konnten, musste erst die Skype for Business Infratruktur auf Skype for Business 2015 aktualisiert werden. Damit würde dann auch Hybrid Voice unterstützt und die Luware LUCS Benutzer könnten dann migriert werden, wenn auch die Contact Center Lösung in Teams (beispielsweise Luware Nimbus) zur Verfügung steht.