How to use tscon on Windows7?

Posted by Radek on Server Fault See other posts from Server Fault or by Radek
Published on 2012-09-17T02:15:52Z Indexed on 2012/09/19 3:40 UTC
Read the original article Hit count: 3430

I need to run overnight automation testing using RFT and IE on Windows7 virtual machine. I found that restarting the Windows box before the testing starts helps.

I am moving the production environment from Windows XP to Windows 7. RFT used to complain when running RFT scripts that CRFCN0557E: Activation failed when running under a Terminal Services environment. This may be caused by using a minimized terminal window - try playing back without minimizing the terminal window (it does not need to be full-screen).

Running tscon.exe 0 /dest:console prior starting any RFT script fix the error on Windows XP. But not on Windows7.

I did some research and was trying for hours to fix that but nothing helped. There is no screen saver turned on on Windows7.

I tried to run both but nothing helped.

tscon.exe 0 /dest:console
tscon.exe 1 /dest:console

On Windows7 tscon returns

{ErrorPrintf(): LoadString failed, Error 15105, (0x00003B01)}
Error [15105]:The resource loader cache doesn't have loaded MUI entry.
Error [0]:The operation completed successfully.

On Windows XP tscon returns

Could not connect sessionID 0 to sessionname console, Error code 7045
Error [7045]:The requested session access is denied.

I just double checked that running tscon.exe 0 /dest:console on Windows XP solves the issue. Cannot understand the output of the tscon command then.

Any idea how I can run RFT scripts after I restart the Windows box automatically? Preferably without involving any other computer. I was even thinking to use the old Windows XP to make remote desktop session to make RFT happy. I hope there is other better solution to that.

© Server Fault or respective owner

Related posts about windows-7

Related posts about remote-desktop