Get tscon.exe to work via RDP on remote machine as a non-Admin

Discussion in 'alt.windows7.general' started by tr99, Apr 27, 2016.

  1. tr99

    tr99

    Joined:
    Apr 27, 2016
    Messages:
    1
    Likes Received:
    0
    Hello.

    My goal is to restore a remote desktop to the local console so that the user doesn't have to re-enter their password and log back in. While connected remotely to a Windows 7 machine via RDP, I run the following command in a batch file:
    tscon %sessionname% /dest:console

    This works fine if I connect via RDP with an account in the Administrators group. The problem is when I RDP to the remote machine with an account that's not in the Administrators group, I get the following error:

    Could not connect sessionID 1 to sessionname console, Error code 5
    Error [5]:Access is denied.

    The batch file needs to be run as an Administrator for it to work. I don't have the Administrator account password, but I do have credentials for an account that is in the Administrators group on the machine. I've tried a few different things to run the batch file as an Administrator, but I can't get it to work right.

    So my question is how can I get the tscon.exe command to work on this remote machine as a non-Admin?

    Any suggestions would be greatly appreciated. Thanks.
     
    tr99, Apr 27, 2016
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. fishone007
    Replies:
    0
    Views:
    2,732
    fishone007
    Oct 25, 2009
  2. Sycthus
    Replies:
    5
    Views:
    3,735
    Sycthus
    Nov 7, 2009
  3. alanlw
    Replies:
    16
    Views:
    2,064
    alanlw
    Nov 5, 2012
  4. Spydeyrch

    SOLVED rdp tunneling via vpn - not working

    Spydeyrch, Nov 10, 2012, in forum: Networking
    Replies:
    5
    Views:
    1,330
    Spydeyrch
    Dec 5, 2012
  5. Ralf Barth

    Standby-Batch with non-admin account

    Ralf Barth, Jun 27, 2013, in forum: alt.windows7.general
    Replies:
    3
    Views:
    637
    GlowingBlueMist
    Jun 28, 2013
  6. Roland Schweiger
    Replies:
    2
    Views:
    975
    Roland Schweiger
    Aug 25, 2013
  7. b.15101r.14944a

    Win7 restricting DVD and CD to non-admin

    b.15101r.14944a, Mar 24, 2014, in forum: Windows 7 Support
    Replies:
    2
    Views:
    665
    TrainableMan
    Mar 24, 2014
  8. b.15101r.14944a

    Assign Local Admin Rights without local Admin Group

    b.15101r.14944a, Mar 29, 2014, in forum: Windows 7 Support
    Replies:
    1
    Views:
    1,174
    Shintaro
    Mar 31, 2014
Loading...