Good day.
There is Exchange 2013, a terminal server with users and the need to send mail to external addresses from the terminal using the PS script. At the same time, it is extremely reluctant to force Exchange to send messages from the terminal only with IP authorization.
Tell me how to log in to the exchange server with the credentials with which the user logged on to the terminal server?