Just some PowerShell scripts I use. Remember to connect to Microsoft Graph and/or Exchange Online!
create_M365_memberOf_group.ps1
What's its deal?
This script takes a group name & email nickname
Checks if there are groups calledgroupName
,groupName+"_Manual"
,groupName+"_Dynamic"
If there aren't, it makes them
Most importantly, it gives the groupgroupName
the dynamic rule"user.memberof -any (group.objectId -in ['$($group_manual.id)', '$($group_dynamic.id)'])"
disable_group_welcomes.ps1
What's its deal?
Gets all your M365 groups
Checks if they have welcome messages enabled If they do, it turns them off
get_users_in_group.ps1
What's its deal?
Exactly what it says on the tin
Takes aGroupID
as input
get_device_users.ps1
What's its deal?
Using the Microsoft Graph ==Beta==
It gets all the registered devices
Gets what userid most recently signed in
Gets that user's display name
Displays it all in aFormat-Table
table
get_device_users.ps1
What's its deal?
Using both Mg-Graph and Exchange Online
Takes a manager's Display Name
Gets all that manager's direct reports
Gives the direct reports view access to eachother
Gives the manager edit access to each report