I would like to test my Exchange 2010 service from a remote untrusted domain, in an automated script. That means I need to create client credentials and save them, and I can't follow traditional commands to get the creds interactively.
How would I script the following commands to test connectivity using specified credentials?
Test-WebServicesConnectivity
Test-ActiveSyncConnectivity
Test-OwaConnectivity
Test-ImapConnectivity
Test-PopConnectivity
Test-ECPConnectivity
Test-PowerShellConnectivity