Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 25525

Unique RDremoteApp Batch to Powershell query issue

$
0
0

I'm running a 2016 RDS environment.  I have a unique app that requires a antiquated OS.  I've provisioned a Remoteapp which is just a .bat file that calls a Powershell script.  The Powershell script simply queries a list of OS's to see if a user is logged on.  (not sure if this is a Powershell question or not but i'll start here).   Now as an admin launching the remoteapp (bat file) the query works fine, it successfully gets a list of who's logged on to these antiquated servers. When launching the app as a regular user it never successfully returns data.  I've tried this script from technet which works great as an admin.  I've also used the qwinsta tool which also works fine as an admin.  For testing, UAC is off as well as Firewall and still no dice.  With auditing on i do see a failure on the RDSH in regards to  a sensitive privilege use SeTcbPreivilege which is the act as part of the OS user right.  Even if i explicitly give the user this right it doesnt execute right and always just returns that no users are logged on.  I know its the interesting way in which this solution is being implemented and how its calling powershell, but I'm just not sure on my next steps here.  Looking for some input.

  Note that i can publish a shortcut file to the script or batch and it exhibits the same behavior

Viewing all articles
Browse latest Browse all 25525

Trending Articles



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