Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

20 Apr 2016   #1
tron9901

Windows 7 Enterprise 64-bit
 
 
Get tscon.exe to work via RDP on remote machine as a non-Admin

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.


My System SpecsSystem Spec
.
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
All MS Office Pro features work with Admin but not with admin user
For a long time I've had much difficulty understanding the exact difference between the computer administrator and a user whose type is administrator. On my system there are two administrators - one known as "Administrator" and another with my name, Gary or Gary and Susan. Each administrator has...
Microsoft Office
Turn my PC to remote machine
Hello, I am interested in turning my PC to a remote machine (like a dedicated/rootserver) but to be able to start up and shut down my PC w/e I want remotely. Also I would like not to change my OS (windows) in order to achieve that, if it's possible of course. The whole thing has to do with my...
Network & Sharing
Recovery does not work, admin account does not work
My mom is visiting and brought her computer complaining that she couldn't get online. The problem seems to be much bigger than that. I tried searching the forums and could only get so far. I enabled the hidden admin account and booted into safe mode. Going into the control panel: Clicking on...
General Discussion
Remote Virtual Machine
I have one very powerful PC that I would like to use as a VM server, and then I have a netbook and a HP pavilion dv2000 laptop that I would like access the VMs. My ideal setup would be to have my main machine running Windows 7 and have two virtual machines running Windows 7 that would be accessed...
Virtualization
Remote Virtual Machine
I have one very powerful PC that I would like to use as a VM server, and then I have a netbook and a HP pavilion dv2000 laptop that I would like access the VMs. My ideal setup would be to have my main machine running Windows 7 and have two virtual machines running Windows 7 that would be ...
Network & Sharing
Remote Desktop from Win 7 to XP machine
Hi I cant seem to be able to remote desktop to an XP SP3 machine from my Windows 7 pro desktop. My colleague who has an XP desktop can remote desktop fine to the other XP SP3 machine. I can also remote desktop from the XP SP3 back to my Windows 7 fine but not the other way round. Can...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:55.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App