I have an Exchange script that I want to schedule to run once a month. In our environment we have a server which runs all scripts and scheduled tasks, so for policy reasons I need to run this script remotely from here rather than on the Exchange server itself.
I can set up a scheduled task to run as a user with the correct Exchange roles assigned. How can I get my script to connect to Exchange implicitly using this account, without explicitly specifying credentials? I don't want to save the password in plain text (or the username for that matter).
Is this possible?