I am trying to get the roles for the authorization rules when I click on the server and not the site.
this is what I am using
Get-WebConfiguration /system.webServer/security/authorization/ -Location IIS:\
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.
Looking at https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authorization/ I can't figure out how to get the roles. Any help is greatly appreciated.