Usually we can read Authentication and Authorization messages from 'Test Connection' of a web applications->Basic Settings
We would like to read the the messages in to powershell.(particulary if there is an error 'Invalid user credentials') Please help