Audit web.config customErrors with PowerShell

Periodic auditing of web applications is helpful to ensure they’re following best practices. One of these best practices is to have custom errors set to “On” or “RemoteOnly” as it ensures users will not see the detailed exception message better suited for developers. The following PowerShell function can be used to read a web.config and […]