PSM Live monitoring error: Shadow error - Access Denied or "Unspecified Error" or The interface is unknown
263
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 12:59 PM
Symptom
1. After moving the PSMAdminConnect user to the domain, when trying to do Live Monitoring during the PSM session, the RDP window opens with the following error:
"Shadow error Access denied"
2. PSMAdminConnect user is a local user, and you try to do a Live Monitoring during the PSM session, the RDP window opens with the following error:
"Shadow error Access denied"
or
"Shadow error The interface is unknown
"Shadow error Access denied"
2. PSMAdminConnect user is a local user, and you try to do a Live Monitoring during the PSM session, the RDP window opens with the following error:
"Shadow error Access denied"
or
"Shadow error The interface is unknown
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8 Privileged Access Manager (PAM, self-hosted) PSM;Privileged Session Management (PSM) PSM
Live Monitoring
Cause
Incorrect GPO, User Permission, or missing MS Updates.
Resolution
* Check Steps 1-5 when PSMAdminConnect is a Domain user
* If PSMAdminConnect is a local user, Please check Step 5
Step 1: Check if the Shadowing feature works fine on the OS level:
Option 1: Run the PSM session as usual. After it is established, log in manually to the PSM server (manual RDP) with an admin user.
Afterward, use this guide which will tell you how to examine Shadowing on the OS from the Server Manager:
https://techcommunity.microsoft.com/t5/ask-the-performance-team/windows-8-1-windows-server-2012-r2-rds-shadowing-is-back/ba-p/375405
Option 2: If it's not working, you may use the CMD instead of the Server Manager feature. This can be done in 2 steps:
1. Open CMD as a different user and use PSMAdminConnect, run the command: query session
(this will tell you the session ID of the PSMConnect user)
2. Run in CMD the following command (replace "{SESSIONID}" with the output which you just found):
mstsc.exe /f /Shadow:{SESSIONID} /NoConsentPrompt
This should open a Live Monitoring session (Shadowing session) of the PSM session.
Step 2: Check Shadowing with PSMAdminConnect user:
If step 1 is working (either by options 1 or 2), now you can check that the PSMAdminConnect user is also capable of running Live Session (Shadowing):
Retrieve the password of the PSMAdminConnect user from the Account in the PVWA - the account name is "PSMAdmin"
Then again, run a standard PSM session, and connect manually to the PSM server with RDP while the PSM session is still alive.
Then run in CMD "query session" to get the PSMConnect user session ID
And then open CMD again, this time with 'runas' the PSMAdminConnect user and credentials you retrieved from the Vault.
In the new CMD window, run: mstsc.exe /f /Shadow:{SESSIONID} /NoConsentPrompt
Step 3: Allow Remote Control at the domain level:
Following the Microsoft solution (https://support.microsoft.com/en-us/kb/292190 ), the customer needs to ask the Windows team to perform the following in the Domain Controller:
1. Open Group Policy Editor (Gpedit.msc) on the server that is running Terminal Services.
2. Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Terminal Services.
3. Right-click "Sets rules for remote control of Terminal Services user sessions" and click Properties.
4. Select the Enabled option.
5. Under Options, click Full Control without the user's permission.
6. Click OK, and then quit Group Policy Editor.
7. To update the local policy immediately afterward, go to a command prompt and run the following command:
gpupdate /force
Step 4: Set Shadowing permissions to the PSMAdminConnect user:
Configuring RDS, as required in the PAS installation guide, section: "To Configure the RDS Directly on a Windows 2012R2 Server" (these instructions applies on Windows Server 2012, for Windows server 2008, check the Installation guide).
1. Configure the RDS from a command line, using the wmic tool to connect to the PSM
server:
2. Add the DOMAIN\PSMAdminConnect object to the PermissionsSetting in the RDP-Tcp options, using the following command:
wmic.exe /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSPermissionsSetting WHERE (TerminalName="RDP-Tcp") CALL AddAccount "DOMAINNAME\PSMAdminConnect",0
3. Add the Remote Control permission for the PSMAdminConnect user, using the following command:
wmic.exe /namespace:\\root\cimv2\TerminalServices PATH Win32_TSAccount WHERE "TerminalName='RDP-Tcp' AND AccountName='DOMAINNAME\\PSMAdminConnect'" CALL ModifyPermissions TRUE,4
4. Restart the Remote Desktop Services Service for the change to take effect.
Do this in one of the following ways:
i. Running the following commands:
Net stop termservice
Net start termservice
-Or
ii. Reboot the PSM server machine.
Step 5: Install Microsoft updates
Please install KB4057401 (Windows Server 2012 R2) and reboot the PSM server.
Note: If there are several PSM servers in the environment, you need to isolate the issue and make sure the problem is not related to the LB.
Issue / DetailsDescribe in the requestor's words - what are they trying to do, what is not working, or what are they are looking for?
1. Due to lack of permissions to the PSMAdminConnect user, or settings in the Domain/server the PSMAdminConnect user is prevented from using the "Shadowing" feature (as called by Microsoft), which is what we call "Live Monitoring".
2. It seems that a previous MS update from January (KB4056890 - Windows Server 2012 R2), aimed at mitigating the Spectre and Meltdown vulnerabilities, is breaking the mstsc shadowing feature which we utilize for live-session monitoring
Additional Information
Details
SYMPTOM:1. After moving the PSMAdminConnect user to the domain, when trying to do Live Monitoring during the PSM session, the RDP window opens with the following error:
"Shadow error Access denied"
2. PSMAdminConnect user is a local user, and you try to do a Live Monitoring during the PSM session, the RDP window opens with the following error:
"Shadow error Access denied"
or
"Shadow error The interface is unknown
SOLUTION:
* Check Steps 1-5 when PSMAdminConnect is a Domain user
* If PSMAdminConnect is a local user, Please check Step 5
Step 1: Check if the Shadowing feature works fine on the OS level:
Option 1: Run the PSM session as usual. After it is established, log in manually to the PSM server (manual RDP) with an admin user.
Afterward, use this guide which will tell you how to examine Shadowing on the OS from the Server Manager:
https://techcommunity.microsoft.com/t5/ask-the-performance-team/windows-8-1-windows-server-2012-r2-rds-shadowing-is-back/ba-p/375405
Option 2: If it's not working, you may use the CMD instead of the Server Manager feature. This can be done in 2 steps:
1. Open CMD as a different user and use PSMAdminConnect, run the command: query session
(this will tell you the session ID of the PSMConnect user)
2. Run in CMD the following command (replace "{SESSIONID}" with the output which you just found):
mstsc.exe /f /Shadow:{SESSIONID} /NoConsentPrompt
This should open a Live Monitoring session (Shadowing session) of the PSM session.
Step 2: Check Shadowing with PSMAdminConnect user:
If step 1 is working (either by options 1 or 2), now you can check that the PSMAdminConnect user is also capable of running Live Session (Shadowing):
Retrieve the password of the PSMAdminConnect user from the Account in the PVWA - the account name is "PSMAdmin"
Then again, run a standard PSM session, and connect manually to the PSM server with RDP while the PSM session is still alive.
Then run in CMD "query session" to get the PSMConnect user session ID
And then open CMD again, this time with 'runas' the PSMAdminConnect user and credentials you retrieved from the Vault.
In the new CMD window, run: mstsc.exe /f /Shadow:{SESSIONID} /NoConsentPrompt
Step 3: Allow Remote Control at the domain level:
Following the Microsoft solution (https://support.microsoft.com/en-us/kb/292190 ), the customer needs to ask the Windows team to perform the following in the Domain Controller:
1. Open Group Policy Editor (Gpedit.msc) on the server that is running Terminal Services.
2. Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Terminal Services.
3. Right-click "Sets rules for remote control of Terminal Services user sessions" and click Properties.
4. Select the Enabled option.
5. Under Options, click Full Control without the user's permission.
6. Click OK, and then quit Group Policy Editor.
7. To update the local policy immediately afterward, go to a command prompt and run the following command:
gpupdate /force
Step 4: Set Shadowing permissions to the PSMAdminConnect user:
Configuring RDS, as required in the PAS installation guide, section: "To Configure the RDS Directly on a Windows 2012R2 Server" (these instructions applies on Windows Server 2012, for Windows server 2008, check the Installation guide).
1. Configure the RDS from a command line, using the wmic tool to connect to the PSM
server:
2. Add the DOMAIN\PSMAdminConnect object to the PermissionsSetting in the RDP-Tcp options, using the following command:
wmic.exe /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSPermissionsSetting WHERE (TerminalName="RDP-Tcp") CALL AddAccount "DOMAINNAME\PSMAdminConnect",0
3. Add the Remote Control permission for the PSMAdminConnect user, using the following command:
wmic.exe /namespace:\\root\cimv2\TerminalServices PATH Win32_TSAccount WHERE "TerminalName='RDP-Tcp' AND AccountName='DOMAINNAME\\PSMAdminConnect'" CALL ModifyPermissions TRUE,4
4. Restart the Remote Desktop Services Service for the change to take effect.
Do this in one of the following ways:
i. Running the following commands:
Net stop termservice
Net start termservice
-Or
ii. Reboot the PSM server machine.
Step 5: Install Microsoft updates
Please install KB4057401 (Windows Server 2012 R2) and reboot the PSM server.
Note: If there are several PSM servers in the environment, you need to isolate the issue and make sure the problem is not related to the LB.