Knowledge Base

Support Policies

Validate XML web.config Schema with Powershell

SecureAuth IdP Version affected: All


You might want to programmatically determine the validity of an XML file such as the SecureAuth IdP web.config. The following Powershell cmdlet with the combination of a Powershell Type-accelerator, will quickly validate schema. 


[xml](Get-Content -Path "D:\Secureauth\SecureAuth0\web.config" -Raw)


Have more questions? Submit a request


Please sign in to leave a comment.