Video Screencast Help

Current Connected Client Name To VBScript

Created: 26 Aug 2008 • Updated: 22 May 2010 | 1 comment

To preface, I'm not very learned in RDP 3.00 but I am competent in VBS and Batch files.

The problem I'm running into is that I need to pass the current client name to a VBS.

From what I understand of RDP is that the client names are stored in an SQL database and they can be returned from there, but I am unable to find any differentiation between any of them.

My end goal is to connect several clients (between 20 and 40) and add them to the job. For each client I need to pull information from a flat file that will populate a start up script for the client. The population script is complete, but I have no way (in my limited knowledge) to pass the current client name to the VBScript.

Thanks for the input!

Comments 1 CommentJump to latest comment

SWD Squire's picture


If your VBS can handle DS Tokens, %COMPNAME% is the token that you seem to be looking for. Check it out in the documentation to see if that will work for you.