I have a simple script that I can't take much credit for. dm4ever wrote it. I'll give you the jist of what it does. I have it running on a thin client and it automatically opens a terminal server session. If that session is closed, it reopens it back up again. Basically I'm trying to keep this thin client as a sort of kiosk that goes to one website. What I'm finding is that users are just minimizing the current session and opening another one. What I want to do is modify the script so that it keeps the terminal server session window open at all times. If a user tries to minimize the window, it simply maximizes it immediately. Here's the current script:
Option Explicit
'On Error Resume Next
Dim objShell
Set objShell = CreateObject("WScript.Shell")
Do
If (objShell.AppActivate("Remote Desktop") = False) Then
objShell.Run "mstsc.exe c:\remotedesktopconnections\default.rdp"
WScript.Sleep 5000
Else
WScript.Sleep 3000
End If
Loop
Thanks for any advice you can give!
Option Explicit
'On Error Resume Next
Dim objShell
Set objShell = CreateObject("WScript.Shell")
Do
If (objShell.AppActivate("Remote Desktop") = False) Then
objShell.Run "mstsc.exe c:\remotedesktopconnections\default.rdp"
WScript.Sleep 5000
Else
WScript.Sleep 3000
End If
Loop
Thanks for any advice you can give!