Skip to content

Instantly share code, notes, and snippets.

@ztrhgf
Last active March 11, 2024 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ztrhgf/82bfe9128996c9f8abfcc289bad3e491 to your computer and use it in GitHub Desktop.
Save ztrhgf/82bfe9128996c9f8abfcc289bad3e491 to your computer and use it in GitHub Desktop.
# some non-graph command
Get-Process notepad
Import-Module Microsoft.Graph.Beta.DeviceManagement -RequiredVersion 2.8.0
Connect-MgGraph
Invoke-MgGraphRequest -Uri "v1.0/auditLogs/directoryAudits?filter=activityDateTime ge $startDate" -OutputType PSObject
Get-MgApplication -ApplicationId c2bca180-36fc-46de-b9a9-5341ada4dd34
Update-MgApplication -ApplicationId c2bca180-36fc-46de-b9a9-5341ada4dd34
# dependant function that has its own Graph SDK commands
Remove-O365OrphanedMailbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment