Forum Discussion

NisHera's avatar
NisHera
Valued Contributor
6 years ago
Solved

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..

  • Does the thread you mentioned help? Otherwise, you may need to check with customer service.