You should add the appropriate settings for your environment before running the program.
<?xml version="1.0" encoding="utf-8"?>
<Settings>
<ShellUri>http://schemas.microsoft.com/powershell/Microsoft.Exchange</ShellUri>
<ServerUri>https://outlook.office365.com/powershell-liveid/</ServerUri>
<AutodiscoverUrl>henry@hbuckle.onmicrosoft.com</AutodiscoverUrl>
<ExchangeServiceVersion>Exchange2013</ExchangeServiceVersion>
<UseDefaultCredentials>False</UseDefaultCredentials>
</Settings>
- ShellUri - leave this as is
- ServerUri - the Uri of your Exchange server, e.g. http://<FQDN of Exchange 2010 server>/PowerShell/ The example shown is for connecting to Office365.
- AutodiscoverUrl - this can be any valid email address in your organisation.
- ExchangeServiceVersion - one of the values from here. (Exchange 2007 not supported, use Exchange2013 for Office365.)
- UseDefaultCredentials - If true then the program will use the account it is running as to try and connect, if false you will be prompted for credentials. Leave as false for Office365.