Windows Shadow command to interact/connect with a user Remote Desktop Session

By | November 26, 2013

Windows Shadow command to interact/connect with a user Remote Desktop Session

Purpose of Shadow Utility

This Window feature allows a remote (RDP) user to interact with another remote user of the same server. Shadow allows both the users to view and interact with the remote desktop session.

For example: if don’t have Gotomeeting, WebEx to call the user for a meeting and the user is having less bandwidth, to view the problem that user facing in the remote desktop session, shadow the user session, view the issue and recommend the fix.

Shadow Remote Desktop Session on the terminal server

Scenario describes with two users O and M, where O wants to shadow M Remote Desktop session.

  1. Both user need to login the terminal server using Remote Desktop Connection.
  2. User O need to open Window “Task Manager” and identify the remote Session ID used by M.

  3. User need to open command prompt with Administrator privilege and enter the command
    “Shadow rdp-tcp#0″
  4. User M is prompted with a wizard for allowing access for O, after granting the access user session of M is shadowed.

Remote desktop shadow command line in Windows 8.1

An administrator can also run the following command line on a machine with the Windows 8.1 MSTSC.EXE package.

Mstsc.exe [/shadow:sessionID [/v:Servername] [/u:[Username]] [/control] [/noConsentPrompt]]

/shadow:IDStarts shadow with the specified sessionID.

/v:servernameIf not specified, will use the current server as the default.

/u:usernameIf not specified, the currently logged on user is used.

/controlIf not specified, will only view the session.

/noConsentPromptAttempts to shadow without prompting the shadowee to grant permission.

Before running mstsc.exe /shadow, it is assumed that the administrator would have found the user’s session ID using some other mechanism, such as qwinsta.exe.

Shadow desktop of users using Windows 2012 Remote Desktop Service

Select Remote Desktop Services, Choose the user, right click and select Shadow



Query Remote Desktop Session details using Command line

query session [<SessionName> | <UserName> | <SessionID>] [/server:<ServerName>] [/mode] [/flow] [/connect] [/counter]

Parameter Description
<SessionName> Specifies the name of the session that you want to query.
<UserName> Specifies the name of the user whose sessions you want to query.
<SessionID> Specifies the ID of the session that you want to query.
/server:<ServerName> Identifies the RD Session Host server to query. The default is the current server.
/mode Displays current line settings.
/flow Displays current flow-control settings.
/connect Displays current connect settings.
/counter Displays current counters information, including the total number of sessions created, disconnected, and reconnected.
/? Displays help at the command prompt.

Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More
Category: Windows

About Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More