Using Powershell to make a secure connection to Exchange. Why? Because no password should be stored plain text, ANYWHERE!
Powershell: 4.0 or greater
First you have to create a secure string from the password of an account. This should be done on the server/workstation that will make the connection in the future. Do this by executing: