ホーム 暮らし How to solve the issue where Steam Link shows 'Secure Desktop Input' and becomes unresponsive after an RDP connection

How to solve the issue where Steam Link shows 'Secure Desktop Input' and becomes unresponsive after an RDP connection

真鍋 千夏 真鍋 千夏 • 更新: • 公開: • 読了約 17 分
目次
nbbbc3db07d55

This is a memo on how I resolved an issue where I couldn't connect to my home PC via Steam Link over Tailscale while visiting my parents' house during the Obon holidays.

After connecting to a Windows PC via RDP from outside, switching to Steam Link can sometimes cause the following dialog to appear, making it impossible to operate.

Would you like to accept secure desktop input from Steam?
You must respond to this dialog while sitting at the PC.

In Japanese, this translates to: 'Would you like to allow input from Steam to the Secure Desktop? You must respond to this dialog while in front of the PC.'

Even though I want to use Steam Link from outside, I am effectively stuck because I cannot press 'OK' on the physical PC.

Situation where this occurs

In my environment, the problem occurred following this sequence.

Connect via RDP from a smartphone while away
↓
Log in to Windows
↓
Launch Steam
↓
Disconnect RDP
↓
Connect via Steam Link
↓
“Would you like to accept secure desktop input from Steam?”


There is no problem with Steam Link on its own.

The key point was that I had used RDP immediately before.

Cause

RDP and Steam Link handle Windows user sessions differently.

When you run the following while connected via RDP:

query session


you will see a state like the following, for example:

SESSIONNAME USERNAME ID STATE
services 0 Disc
console 3 Conn
>rdp-tcp#0 username 4 Active
rdp-tcp 65536 Listen

In this state,

RDP session
ID 4
username
Active

and

console
ID 3

exist separately.

Steam is running on the RDP session side.

If you close the RDP app normally or disconnect with tsdiscon, the RDP session does not disappear but remains in a 'Disconnected' state.

The image looks like this:

During RDP connection
[ RDP session : username ]
↑
Steam
↑
Active
Normal RDP disconnection
[ RDP session : username ]
↑
Steam
↑
Disconnected
[ Console session ]

Steam is alive, but it has not returned to the Windows local console side.

When Steam Link connects in that state, due to the Windows lock screen or Secure Desktop, the following may appear:

Would you like to accept secure desktop input from Steam?

This can occur.

There are reports on the Steam Community and elsewhere of the same phenomenon occurring after using RDP.

logoff does not solve it

The first thing I tried was logging off the RDP session.

For example,

logoff 4


is what I used.

When you run this, the RDP session itself disappears, so it seems good at first glance.

However, there is a problem.

Since it is a Windows logoff, Steam running in that user session also terminates.

In other words,

RDP
↓
Launch Steam
↓
logoff
↓
Steam also terminates
↓
Cannot connect from Steam Link

is the result.

For this use case, logoff cannot be used.

tsdiscon alone is also insufficient

The next thing to consider is

tsdiscon


is what I used.

This disconnects the RDP connection without logging off.

Therefore, Steam does not terminate.

However, the RDP session where Steam exists remains in a Disconnected state.

RDP session
username
Steam
Disc

In this state, you may not be able to switch to Steam Link normally.

This did not solve it this time either.

Solution: tscon /dest:console

What finally worked was the method of switching the RDP session to the console side.

First, run the following while connected via RDP.

query session


For example, if it displays:

console 3 Conn
>rdp-tcp#0 username 4 Active

then the current RDP session ID is 4.

From an administrator-privileged command prompt or PowerShell, run:

tscon 4 /dest:console


is what I executed.

When executed, the RDP connection drops at that instant.

This is not an error; it is the expected behavior.

After that, when connecting from Steam Link, I was able to connect normally in this environment.

The flow is:

RDP from smartphone
↓
Launch Steam
↓
query session
↓
Check RDP Session ID
↓
tscon 4 /dest:console
↓
RDP disconnects
↓
Launch Steam Link
↓
Normal connection

is the result.

Why does this fix it?

The important thing is that

tscon 4 /dest:console

is not just a simple RDP disconnection.

It is an action that takes over the Windows session used in the RDP session to the console side.

Therefore,

Steam on the RDP session

is not terminated, and it becomes available as

Steam on the local console side

.

The image is as follows:

Before change
Smartphone
│
RDP
│
▼
[ RDP Session ]
│
Steam
tscon /dest:console
↓
After change
[ Console Session ]
│
Steam
│
▼
Steam Link

is the result.

Since it is not a logoff, Steam continues to run as is.

If checking the session ID every time is troublesome

The session ID is not always 4.

Therefore, you need to check with

query session

and then run

tscon 4 /dest:console

.

If you run it every time, you can automate it with a batch file.

For example, the following:

@echo off
for /f "tokens=2,3" %%i in ('query session ^| findstr ">"') do (
tscon %%j /dest:console
)

Since a > is attached to the current session line during an RDP connection, it retrieves that session ID and runs tscon.

If you place it on your desktop as

SteamLinkSwitch.bat

, you can operate it as follows:

Access PC via RDP
↓
Launch Steam
↓
Run SteamLinkSwitch.bat
↓
RDP disconnects
↓
Launch Steam Link

Note that in some environments, administrator privileges are required to run tscon. In that case, run the batch file as 'Administrator'.

Changing Secure Desktop settings is not recommended

If you search, you will also find a workaround to

disable UAC Secure Desktop

.

This is a way to avoid the issue where Steam cannot input to the Secure Desktop itself.

However, this weakens Windows security mechanisms.

In this case, the cause of the problem is the session state when switching from RDP to Steam Link, so there was no need to disable Secure Desktop or UAC.

It is more appropriate to correctly return to the console using tscon.

Conclusion

If

Would you like to accept secure desktop input from Steam?

appears on Steam Link after an RDP connection, instead of simply disconnecting RDP, you can sometimes resolve it by returning the RDP session to the console with

tscon <RDP session ID> /dest:console

before connecting to Steam Link.

In my environment, I confirmed

rdp-tcp#0 username 4 Active

with

query session

and resolved it by running

tscon 4 /dest:console

.

The final operation is:

1. Connect via RDP from outside

2. Launch Steam
3. tscon <ID> /dest:console
4. RDP disconnects
5. Connect from Steam Link
For the purpose of 'wanting to launch Steam via RDP and then switch to Steam Link', tscon /dest:console was the key, not logoff or a simple RDP disconnection.



同じカテゴリの記事

真鍋 千夏
デジタルマーケター 真鍋 千夏
プロフィールを見る →

美容と暮らしの話題を担当。メーカーの公式発表、商品成分の公表資料、専門家の監修記事をもとに事実を整理します。

おすすめの関連記事