Forum Discussion
PowerShell and Office 365 Secure Score
- Feb 16, 2017
Hey Gene,
Thanks for reaching out. We do have the Secure Score data available via API now: https://blogs.technet.microsoft.com/office365security/using-the-office-365-secure-score-api/
But, your point is interesting. We actually haven't implemented any of the remediation actions in a neat, clean powershell, but we do have some resources.
First, if you want to collect state data in powershell, I've uploaded a very old, PM-authored version of the very Alpha Secure Score here: https://github.com/OfficeDev/O365-Cloud-Sec-Tooling/blob/master/Securescore/DEPRECATED-LEGACYSecureScoreCollector.zip
Second, we do have some remediation automation in powershell scripts here: https://github.com/OfficeDev/O365-InvestigationTooling
Thanks!
Brandon Koeller
It's a good idea and many of the recommendations indeed can be scripted via PowerShell. Not all workloads will be able to support this however, and not all actions are a good match for PowerShell (for example, the periodic Review type of actions).
All the actions do offer the additional info via the Details page though, especially in the case of Exchange it's very easy to get to the PowerShell cmdlet from there - simply use the "Show cmdlet logging" functionality in the EAC. For other workloads, you can still get to the documentation and simply search on how to perform the relevant actions via PowerShell.
Perhaps BrandonKoeller might actually have a thing or two to say about this, I know that the early version of the Secure Score tool was PowerShell based, so it should be relatively easy to adapt it from "just look" to "do stuff" :)