How do I find and pass dynamic data to other parts of a VBScript?
Posted on 2011-03-15
I am attempting to do the following via VBScript in a TS/RDS Farm:
At logon, find the currently logged on user.
Find the current default printer for that Remote Desktop session.
Pass those variables to other lines later in the VBScript to use a SetACL process.
Set objScriptExec = objShell.Exec("C:\Support\SetACL\x64\SetACL.exe -on ""<Discovered TS/RDS session default printer>"" -ot prn -actn ace -ace ""n:<domainnamehere>\<discoveredusernamehere>;p:man_printer""")