Returns details of policies with the option to filter on Category and SystemObjects.
Returns all policies from sql2016 server.
Get-DbaPolicy -SqlInstance sql2016
Uses a credential $cred to connect and return all policies from sql2016 instance.
Get-DbaPolicy -SqlInstance sql2016 -SqlCredential $cred
Returns all policies from sql2016 server that part of the PolicyCategory MorningCheck.
Get-DbaPolicy -SqlInstance sql2016 -Category MorningCheck
This command was created by Stephen Bennett. You can find Stephen on his blog.