Hi All,
Recently i wanted to export the Groups of a User. Here is some code i used for Active Directory and Entra ID.
Active Directory First let’s look into Active Directory. We can use the Get-ADUser commandlet and specify the “MemberOf” Property
############################################################################### # AD GroupMember ############################################################################### $SamAccountName = "m.muster" $DomainController = (Get-ADDomainController).HostName $User = Get-ADUser -Identity $SamAccountName -Properties "Memberof" -Server $DomainController $Groups = $User.MemberOf $Groups After sime String Magic we have the GroupName
Hi All,
In Entra Id there are fundamentally three diffrent Identity Models
Cloud Identity (Cloud Only Accounts) Syncronized Identity / Hybrid Identity (Syncronized with Entra Connect Sync or Cloud Sync from OnPrem Active Directory with password sync) Federated Identity (Like Syncronized Identity but without password sync - Authentication happens on the Federation Server and requrires a Trust between Entra and the Federation Service) Image Source: Choosing a sign-in model for Office 365
Hi All,
A few days ago, Microsoft has released the Version 2.28.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.
PowerShell Gallery Microsoft.Graph 2.28.0 PowerShell Gallery Microsoft.Graph.Beta 2.28.0 Release Notes
No Release Notes available I am using the new PSResourceGet here instead of the PowerShellGet commands.
Show installed Versions and what’s available in PowerShell Gallery
Get-InstalledPSResource -Name Microsoft.Graph -Scope CurrentUser Get-InstalledPSResource -Name Microsoft.Graph.Beta -Scope CurrentUser Find-PSResource -Name Microsoft.Graph Find-PSResource -Name Microsoft.Graph.Beta Uninstalling the old Microsoft.
Hi All,
I’ve released an updated Version of my Conditional Access HTML Export PowerShell Script on my GitHub Repo.
It’s always a Pain to document Conditional Access Policies. So i’ve forked and modified the Script from https://github.com/dougsbaker/CA-Export to match my needs.
Recently i saw the new “Network” Section in the Conditional Access Policies. I Like when the Sections match the HTML Output
Users Target resources Network Conditions Grant Session The Script requires the Microsoft.
Hi All,
A few Weeks ago Microsoft has announced the Permanent Deletion of mailbox items.
Microsoft Graph APIs for permanent deletion of mailbox items now available It’s relatively simple. Instead of the “DELETE” HTTP Method you use the “POST” Method and add “/permanentDelete” to the URI.
############################################################################### #Delete #https://learn.microsoft.com/en-us/graph/api/message-delete?view=graph-rest-1.0&tabs=http ############################################################################### DELETE /users/{UserId}/messages/{MessageId} DELETE /users/{UserId}/mailFolders/{mailFolderId}/messages/{MessageId} ############################################################################### #Permanently Delete #https://learn.microsoft.com/en-us/graph/api/message-permanentdelete?view=graph-rest-1.0&tabs=http ############################################################################### POST /users/{UserId}/messages/{MessageId}/permanentDelete POST /users/{UserId}/mailFolders/{mailFolderId}/messages/{MessageId}/permanentDelete Time for me to test the Functionality.
Hi All,
A few Hors ago, Microsoft has released the Version 2.27.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.
PowerShell Gallery Microsoft.Graph 2.27.0 PowerShell Gallery Microsoft.Graph.Beta 2.27.0 Release Notes
[v2] Weekly OpenApiDocs Refresh [v2] Examples Update Prevents automatic inference of properties with numeric characters defined as strings. e.g {“age”:“28”}" Fixes removal of boolean and empty Json object values from request body Task: Bootstrap acr-push pipeline by @Onokaev Adds aliases to avoid conflicting cmdlets calling the same Api path Adds Metadata for authentication module cmdlets Added directives to disable generation of invalid Service Announcement cmdlets Fix: Depend on previous stage by @Onokaev I am using the new PSResourceGet here instead of the PowerShellGet commands.
Hi All,
In end of February Microsoft has Annouced a new way to control the EWS Usage in Exchange Online. This is in preparation for the Retirement of EWS in October 2026
The way to control EWS usage in Exchange Online is changing. Unlike other Settings, for Example SMTP Basic Authentication, the EWSEnabled Property in the Exchange Online Organization Configuration can no longer be overridden via Set-CASMailbox on a individual Level.
Hi All,
With the MC1011142 Message Center Post, Microsoft has announced the retirement of App Permissions for OneNote:
Effective March 31, 2025, we will retire support for authentication tokens with application permissions (app-only tokens) for MSGraph OneNote APIs. We will continue to support authentication tokens that have delegated permissions. While app-only tokens are easy to use, they may be more easily exploited compared to more sophisticated authorization methods. Requests to the Notes API endpoints using tokens with application permissions will return 401 unauthorized errors starting March 31, 2025.
Hi All,
A while ago, i did write an Azure Runbook that compares my Licenses every week.
Keep Track of new ServicePlans in M365 Licenses I’ve received an Email this Week, stating that there have been added some new Service Plans to the “Microsoft_365_Copilot” SKU.
In the M365 Admin Center it looks like this
Let’s check the Licenses with PowerShell
Connect-Graph -Scopes User.ReadWrite.All, Organization.Read.All -NoWelcome Get-MgUserLicenseDetail -UserId a.bohren@icewolf.ch List the Service Plans of the “Microsoft_365_Copilot” SKU
Hi All,
A few Hors ago, Microsoft has released the Version 2.26.1 of Microsoft.Graph and Microsoft.Graph.Beta Modules.
PowerShell Gallery Microsoft.Graph 2.26.1 PowerShell Gallery Microsoft.Graph.Beta 2.26.1 Release Notes
Roll back to .NET 6 Refresh Open Api file for Devices.CorporateManagement Module to generate missing cmdlets Ensures property values that have / are not modified to have them removed I am using the new PSResourceGet here instead of the PowerShellGet commands.
Show installed Versions and what’s available in PowerShell Gallery