Private/Test-GraphConnection.ps1
|
function Test-GraphConnection { try { $context = Get-MgContext if ($null -eq $context) { return $false } return $true } catch { return $false } } |
|
function Test-GraphConnection { try { $context = Get-MgContext if ($null -eq $context) { return $false } return $true } catch { return $false } } |