cancel
Showing results for 
Search instead for 
Did you mean: 

remote desktop not identify user

SOLVED
Highlighted
Valued Contributor

remote desktop not identify user

In a AWS instant need to run test on remote desk top

I used scripts mention hear..link 

 

My script start as ...

 

CLS
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
  %windir%\System32\tscon.exe %%s /dest:console
)

 

 

But I get message ....

 

C:\TestCompleteFiles\AutoRuns>for /F "skip=1 tokens=3" %s in ('query user MY_UserName') do (C:\Windows\System32\tscon.exe %s /dest:console )
No User exists for MY_UserName

 

 

when I go to Task manager Users tab .."MY_UserName" is shown

What could be the problem? 

 

I'm running as Admin..

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: remote desktop not identify user

Hi @NisHera , I found your support case and see that you got a solution from our team.

Let me quote it here:

 

>>

Unfortunately, this is not something I can help you with as this is an issue with Windows, not with TestComplete. I believe your local IT team should be able to help you out with this.
 
However, quite often you don't even need tscon. This method redirects your session to console which has quite a small resolution. Depending on what you are testing, there is a high chance that your app will simply not fit into the console resolution, and your tests will fail. I suggest using SessionCreator to run unattended tests. It is capable of creating sessions for any users in the system. Note that this tool has a set of requirements that you have to meet before you can use it properly. The requirements are the same as for our Jenkins integration. So please go through this article and adjust the necessary settings (ignore Jenkins-related points).

<<


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

9 REPLIES 9
Highlighted
Community Hero

Re: remote desktop not identify user

Can you go to that instance manually and run the test with that user name?

Highlighted
Valued Contributor

Re: remote desktop not identify user

@Marsha_R  yes no problem with running test manually 

and except that error the script also working fine.

 

 

Highlighted
Community Hero

Re: remote desktop not identify user

Does the script work for any other user name?

Highlighted
Community Hero

Re: remote desktop not identify user

Hi,

 

AFAIK, this command requires elevated permissions and I am not sure that membership in the local admins group provides them.

Can you start the script using the Run As Administrator context menu option? (I understand it that this command is executed out of TestComplete test code.) Does it execute with or without the error?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

Re: remote desktop not identify user

Thanks for your help, @AlexKaras@Marsha_R!

 

@NisHera, do the suggestions posted here help you? Please let us know if the issue still persists.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Valued Contributor

Re: remote desktop not identify user

@AlexKaras  yes always I run commands as Administrator.

@TanyaGorbunova  no unfortunately I'm still struggling . I had a AWS instance previously running same OK. This was a new AWS Instance and I'm having admin roll in the machine. our tech guy says, I dont have a role/user in the AWS console yet. Dose that matters?

 

more information............

when I run 

 

 

query user

 

 

  gets Sessionname as rdp-tcp#1

and then I ran 

 

 

%windir%\System32\tscon.exe RDP-Tcp#1 /dest:console

 

 

works fine ...I was successfully disconnected without session being stopped.

 

when Quering user I see...

 

my_userName

 

but error message says

 

MY_UserName

 

is it something to do with case sensitivity ?

if so how could I correct it

Highlighted
Valued Contributor

Re: remote desktop not identify user

Hi,

Anybody out there can solve this???

@TanyaGorbunova 

@AlexKaras 

@Marsha_R 

 

 

Highlighted
Community Manager

Re: remote desktop not identify user

Hi @NisHera,

Sorry for not getting back to your earlier. 

Unfortunately, I cannot give you any clues. This is out of my knowledge. I recommend that you submit a request to our TestComplete Support Team. I'm sure they will do the best to try to find a solution for you. You can reach out to them here:

https://support.smartbear.com/message/?prod=testcomplete

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Community Manager

Re: remote desktop not identify user

Hi @NisHera , I found your support case and see that you got a solution from our team.

Let me quote it here:

 

>>

Unfortunately, this is not something I can help you with as this is an issue with Windows, not with TestComplete. I believe your local IT team should be able to help you out with this.
 
However, quite often you don't even need tscon. This method redirects your session to console which has quite a small resolution. Depending on what you are testing, there is a high chance that your app will simply not fit into the console resolution, and your tests will fail. I suggest using SessionCreator to run unattended tests. It is capable of creating sessions for any users in the system. Note that this tool has a set of requirements that you have to meet before you can use it properly. The requirements are the same as for our Jenkins integration. So please go through this article and adjust the necessary settings (ignore Jenkins-related points).

<<


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors