Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Problems with VBScript

$
0
0

Hello everyone!

I got a bunch of Windows 10 LTSC 2019 systems that operate like a Thin Client. I have a Custom User Interface GPO set currently that launches a custom RDP file on login and it works fine. The issue i'm having is when users log off of that... it goes to a black screen. I'd like the RDP session to start at login but also logout of the local system once they logoff or kill the RDP instance. I created a VBScript to do that but it doesn't appear to be working. Thoughts? Thanks!

My Script:

Set objShell = WScript.CreateObject("WScript.Shell")    
objShell.Run "C:\Windows\System32\MSTSC.exe C:\Comp\Shortcuts\RDP\TS.rdp", 1, True
objShell.Run "C:\Windows\System32\Shutdown.exe /l", 0, False


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>