Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
To get the scope of policy exemption by PowerShell, you can use the Get-Gpo cmdlet. This cmdlet allows you to retrieve information about Group Policy Objects (GPOs), including the scope of policy exemption. To get the scope of policy exemption, use the Get-Gpo cmdlet with the -All parameter and the | Select-Object cmdlet to select the ScopeOfPolicyExemption property. For example:
Get-Gpo -All | Select-Object ScopeOfPolicyExemption
This will output the scope of policy exemption for all GPOs.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.