Get-MgmtGraphOption
MgmtGraph: Audits current Microsoft Graph SDK operational options
#Requires -Version 5.1
#Requires -Modules Microsoft.Graph.Authentication
[CmdletBinding()]
Param ()
Process {
try {
$options = Get-MgGraphOption -ErrorAction Stop
$result = [PSCustomObject]@{
Profile = $options.Profile
ApiVersion = $options.ApiVersion
ContextScope = $options.ContextScope
Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
}
Write-Output $result
}
catch {
throw
}
}This script has no configurable parameters.