POWERSHELL

Manage M365 DNS Records with PowerShell

Manage M365 DNS Records with PowerShell

Andres Bohren
Hi All, I guess all M365 Admins know how to Manage the M365 Domains in Admin Portal Did you know that you can also manage them via Microsoft.Graph PowerShell Modules? You need to connect with the Scope “Domain.Read.All” or “Domain.ReadWrite.All” MS Learn domain resource type Connect-MgGraph -Scopes Domain.Read.All Admin consent List Domains in M365 Tenant Import-Module Microsoft.Graph.Identity.DirectoryManagement Get-MgDomain List Service Configuration DNS Records for a specific Domain Get-MgDomainServiceConfigurationRecord -DomainId icewolf.ch List details of the MX Record
Manage Sheduled Tasks with PowerShell

Manage Sheduled Tasks with PowerShell

Andres Bohren
Hi All, I’ve had some work to do with Scheduled Tasks and schedule a PowerShell Script with PowerShell. This Article shows you how you can list, create, export and import Scheduled Tasks. List PowerShell Commands for Scheduled Tasks Get-Command *ScheduledTask* These are the Scheduled Tasks on the Server List Scheduled Tasks Get-ScheduledTask Get-ScheduledTask List specific ScheduledTask $ScheduledTask = Get-ScheduledTask -TaskName ZIPandDeleteIISLog $ScheduledTask | fl $ScheduledTask.Actions $ScheduledTask.Triggers Details Get-ScheduledTaskInfo Get-ScheduledTask -TaskName ZIPandDeleteIISLog | Get-ScheduledTaskInfo Create new Scheduled Task Register-ScheduledTask
PowerShell Module Microsoft.Online.SharePoint.PowerShell 16.0.24810.12000 released

PowerShell Module Microsoft.Online.SharePoint.PowerShell 16.0.24810.12000 released

Andres Bohren
Hi All, A few hours ago, Microsoft has released the Microsoft.Online.SharePoint.PowerShell 16.0.24810.12000 PowerShell Module. PowerShell Gallery Microsoft.Online.SharePoint.PowerShell I am using the new PSResourceGet here instead of the PowerShellGet commands. Show installed Versions and what’s available in PowerShell Gallery Get-InstalledPSResource Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser Find-PSResource Microsoft.Online.SharePoint.PowerShell Uninstall the old Version and install the new Version of the Module Uninstall-PSResource Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser Install-PSResource Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser Get-InstalledPSResource Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser List the Commands of the Module
Microsoft.Graph PowerShell Modules 2.18.0 released

Microsoft.Graph PowerShell Modules 2.18.0 released

Andres Bohren
Hi All, A few Hors ago, Microsoft has released the Version 2.18.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules. PowerShell Gallery Microsoft.Graph 2.18.0 PowerShell Gallery Microsoft.Graph.Beta 2.18.0 Release Notes [v2] Weekly OpenApiDocs Refresh [v2] Examples Update Bump Azure.Identity from 1.10.3 to 1.11.0 in /src/Authentication/Authentication.Core by @dependabot Orders permissions based on least privilege property value (True or false) Add issue templating using issue forms Adds permissions type Restricts escaping of special characters to path segments only when using Invoke-MgGraphRequest and bumps Azure.
List FIDO2 Keys and AAGUID for all Users with Microsoft Graph

List FIDO2 Keys and AAGUID for all Users with Microsoft Graph

Andres Bohren
Hi All, While looking into Enable passkeys in Microsoft Authenticator (preview) i figured, it is a good Idea tho have a List of FIDO2 AAGUID’s of all Users if enabled. This Article shows you how to Export the FIDO2 Keys and the AAGUID of all Users in a M365 Tenant. During my research i also found some AAGUID Lists on the Internet YubiKey Hardware FIDO2 AAGUIDs FIDO2 AAGUID lists Passkey Provider AAGUIDs Here you can see a registered FIDO2 Key in the M365 Security Info
Entra Connect Sync 2.3.8 released

Entra Connect Sync 2.3.8 released

Andres Bohren
Hi All, Somehow i did miss, that there was an Update for Entra Connect Sync (Azure Active Directory Connect) from early April. It’s for download only, so no Automatic Update. Microsoft Entra Connect: Version release history Download Microsoft Entra Connect It’s still a bit a mess with the Product Names. The Product Name is “Microsoft Entra Connect Sync” but you download “Azure ADConnect.msi”. Installation I’ve downloaded the MSI and here are the Installation Screenshots
PowerShell 7.4.2 released

PowerShell 7.4.2 released

Andres Bohren
Hi All, Today i’ve noticed, that there is a new PowerShell 7 Version available. You can Download it from here: v7.4.2 Release of PowerShell Release notes: General Cmdlet Updates and Fixes Revert “Adjust PUT method behavior to POST one for default content type in WebCmdlets” (#21049) Fix regression with Get-Content when -Tail 0 and -Wait are both used (#20734) (Thanks @CarloToso!) Fix Get-Error serialization of array values (#21085) (Thanks @jborean93!) Fix a regression in Format-Table when header label is empty (#21156) Engine Updates and Fixes
Deploy MTA-STS with PS.MTA-STS PowerShell Module

Deploy MTA-STS with PS.MTA-STS PowerShell Module

Andres Bohren
Hi All, I’ve explained how “Mail Transfer Agent Strict Transport Security (MTA-STS)” works in this Article Mail Transfer Agent Strict Transport Security (MTA-STS) PS.MTA-STS A Month ago, the PS.MTA-STS PowerShell Module was announced on the Exchange Team Blog Introducing PS.MTA-STS: a PowerShell module to enhance mail flow security with MTA-STS Today a new Version has been released PowerShell Gallery PS.MTA-STS 1.2.0 I’ve tested the Module back then and contacted Jamy Klotzsche and worked with him to improve the Module on GitHub PS.
MSCommerce PowerShell Module 2.3 released

MSCommerce PowerShell Module 2.3 released

Andres Bohren
Hi All, Just a few Minutes ago, Microsoft has released a new Version of the MSCommerce PowerShell Module to the PowerShell Gallery. PowerShell Gallery MSCommerce 2.3 I also noticed, that they removed all other Versions from the PowerShell Gallery I am using the new PSResourceGet here instead of the PowerShellGet commands. List installed Module and what’s available from the PowerShell Gallery Get-InstalledPSResource MSCommerce -Scope AllUsers Find-PSResource MSCommerce Uninstall the old Module and install the new PowerShell Module
Microsoft.Graph PowerShell Modules 2.17.0 released

Microsoft.Graph PowerShell Modules 2.17.0 released

Andres Bohren
Hi All, A few Hors ago, Microsoft has released the Version 2.17.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules. PowerShell Gallery Microsoft.Graph 2.17.0 PowerShell Gallery Microsoft.Graph.Beta 2.17.0 Release Notes [v2] Weekly OpenApiDocs Refresh [v2] Examples Update Makes Set-MgUserPhotoContent compatible with both PS Core and PS Desktop I am using the new PSResourceGet here instead of the PowerShellGet commands. I’ve changed the Scope from “AllUsers” to “CurrentUser” in this Article - with that you don’t need to Run PowerShell as Administrator anymore.