Windows Client – PowerShell script to query protection status
support.microsoft.com