MS GRAPH

PSMSALNet 0.1.2 has been released

PSMSALNet 0.1.2 has been released

Andres Bohren
Hi All, A few days ago, a new version of PSMSALNet has been released -PowerShell Gallery PSMSALNet 0.1.2 I’ve checked the GitHub Changes and found that there has only be changed one Parameter 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 PSMSALNet -Scope CurrentUser Find-PSResource -Name PSMSALNet Uninstall the Module with PSResourceGet failed. Uninstall-PSResource -Name PSMSALNet -Scope CurrentUser You can use the -FileMode Parameter of M365PSProfile Module to uninstall the Module
Microsoft.Graph PowerShell Modules 2.30.0 released

Microsoft.Graph PowerShell Modules 2.30.0 released

Andres Bohren
Hi All, A few Hors ago, Microsoft has released the Version 2.30.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules. PowerShell Gallery Microsoft.Graph 2.30.0 PowerShell Gallery Microsoft.Graph.Beta 2.30.0 Release Notes [v2] Manually update openApi docs [v2] Examples Update [v2] TokenLifetimePolicies are now referenceable through ServicePrinciples 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.
Controlling Guest Access to your M365 Groups / Teams

Controlling Guest Access to your M365 Groups / Teams

Andres Bohren
Hi All, Recently a collegue at work made me aware of the following Article, that describes how you can prevent Guest Users to M365/Teams. You can configure that on Tenant Level or on individual M365 Group Level. Prevent guests from being added to a specific Microsoft 365 group or Microsoft Teams team Group Settings PowerShell Let’s check out these Settings with PowerShell ############################################################################### # Connect Microsoft Graph ############################################################################### Connect-MgGraph -Scopes GroupSettings.
Microsoft.Graph PowerShell Modules 2.29.1 released

Microsoft.Graph PowerShell Modules 2.29.1 released

Andres Bohren
Hi All, A few Hors ago, Microsoft has released the Version 2.29.1 of Microsoft.Graph and Microsoft.Graph.Beta Modules. PowerShell Gallery Microsoft.Graph 2.29.1 PowerShell Gallery Microsoft.Graph.Beta 2.29.1 Release Notes not yet released 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.
Microsoft.Graph PowerShell Modules 2.29.0 released

Microsoft.Graph PowerShell Modules 2.29.0 released

Andres Bohren
Hi All, A few Hors ago, Microsoft has released the Version 2.29.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules. PowerShell Gallery Microsoft.Graph 2.29.0 PowerShell Gallery Microsoft.Graph.Beta 2.29.0 Release Notes Remove WindowsPrivacyAccessControl from module generation fix specific directive files [v2] Weekly OpenApiDocs Refresh 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.
Send Mail with Attachment via Microsoft Graph

Send Mail with Attachment via Microsoft Graph

Andres Bohren
Hi All, I had to debug an Application that sends a Mail with an Attachment via Graph API. I’ve created this Small Script to Test the Functionality. Entra Application You need an Entra Application. Entra Application: Certificate Authentication: Permissions: Application: Mail.ReadWrite Application: Mail.Send Application Access Policy I’ve written a whole Article Application Access Policy in Exchange Online Limit Microsoft Graph Access to specific Exchange Mailboxes Connect-ExchangeOnline -ShowBanner:$False Get-DistributionGroup -Identity PostmasterGraphRestriction | fl DisplayName, PrimarySmtpAddress, ExternalDirectoryObjectId Get-DistributionGroupMember -Identity PostmasterGraphRestriction | fl DisplayName, PrimarySmtpAddress,ExternalDirectoryObjectId With this Application Access Policy you restrict the Graph Permissions of the Entra Application to the Members of the Distribution Group.
Export Group Membership of a User in AD and Entra

Export Group Membership of a User in AD and Entra

Andres Bohren
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
The diffrence between Managed and Federated Domain

The diffrence between Managed and Federated Domain

Andres Bohren
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
Microsoft.Graph PowerShell Modules 2.28.0 released

Microsoft.Graph PowerShell Modules 2.28.0 released

Andres Bohren
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.
Updated Conditional Access HTML Export Script

Updated Conditional Access HTML Export Script

Andres Bohren
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.