title: Powershell IIS .Net Authorization Rules Roles
body: <p>I am trying to get the roles for the authorization rules when I click on the server and not the site.</p>
  <p>this is what I am using</p>
  <pre><code>Get-WebConfiguration /system.webServer/security/authorization/ -Location IIS:\
  </code></pre>
  <p>but whatever I try I can't get the roles that are listed. Using gm it gives me nothing I can use. I have searched online and everyone has a way to set the data but not get the data.</p>
  <p>Looking at <a href="https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authorization/" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authorization/</a> I can't figure out how to get the roles. Any help is greatly appreciated.</p>