0

Functionality: I have a server where Microsoft Outlook is configured/Rules defined in such a way that based on email received it run particular programs/scripts.

Issue: server is scheduled to reboot every week for maintenance. Every time it reboot I have to manually login to server and open Outlook to enable above functionality.

Question: Is there any way in windows(program/command) using which I can automatically RDP to server and open outlook program?

Sam
  • 392
  • 1
  • 6
  • 18

2 Answers2

1

You can try PsExec utility from microsoft.

C:\PsTools\PsExec.exe \\remote-computer-name or IP address -u "username" -p "password" "path_to_outlook.exe_on remote_computer"

Example:

C:\temp\PsTools\PsExec.exe \\192.168.0.88 -u "Admin" -p mypass "C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE"

r3ap3r
  • 2,775
  • 2
  • 17
  • 16
  • Hi, Can you please check below and help on this http://stackoverflow.com/questions/24203577/launch-notepad-exe-using-psexec-sysinternal-tool – Sam Jun 13 '14 at 10:57
0

The above quote C:\PsTools\PsExec.exe \\remote-computer-name or IP address -u "username" -p "password" "path_to_outlook.exe_on remote_computer"requires you to be logged in to the server first. Otherwise it would launch Outlook but new emails would not be downloaded.

coded
  • 1