Sunday, July 14, 2024
HomePowershellWorkplace 365 Well being Service utilizing PowerShell

Workplace 365 Well being Service utilizing PowerShell


From the module perspective, not a lot has modified. You continue to use a single command to get all the info Get-Office365Health.

Import-Module PSWinDocumentation.O365HealthService -Power

$ApplicationID = ''
$ApplicationKey = ''
$TenantDomain = 'evotec.pl' # CustomDomain (onmicrosoft.com will not work), alternatively you should use DirectoryID

$O365 = Get-Office365Health -ApplicationID $ApplicationID -ApplicationKey $ApplicationKey -TenantDomain $TenantDomain
$O365

The output is a hashtable, with all the info sorted into eight classes. Since GraphAPI has a bit completely different dataset, I used to be unable to protect all out there sorts from earlier than, and naturally, properties needed to change. However the modifications aren’t huge, so if you happen to’re utilizing this for one thing – it is fairly straightforward to repair it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments