I need a VBScript to execute at startup on a Windows 2000 computer that executes an RDP (Remote Desktop) file (i.e, "server-1.rdp") (which is associated with "mstsc.exe"). This will pop up a Remote Desktop login window with the RDP file configured to login to a Terminal Server. After the user logs into the Terminal Server and later logs off the Terminal Server and returns to the local computer, I want the VBScript to continue and issue a shutdown command to restart the local computer (i.e, "shutdown -r").
In summary, the script should execute "server-1.rdp", wait for the user to log off the rdp session and then execute "shutdown -r" to restart the computer.
I would greatly appreciate it if somebody would give me the code for this script.
Thanks to anyone who can help me out.
In summary, the script should execute "server-1.rdp", wait for the user to log off the rdp session and then execute "shutdown -r" to restart the computer.
I would greatly appreciate it if somebody would give me the code for this script.
Thanks to anyone who can help me out.