PSM connection does not map local drives
560
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 13:04 PM
Symptom
When connecting to Targets (PSM-RDP or PSM-WINSCP or any other connection component that supports mapping local drives) via PSM, the local drives are not being mapped even though the checkbox was checked during the initial connection
You may see the following in the session log file in the PSM Connection Client logs:
PSMRD032I Mapping terminal services drives
PSMRD033I Searching for available drive letter
PSMRD035I Found available drive letter [Z:]
PSMRD034I Trying to map terminal services drive [\\TSCLIENT\Y]
PSMRD036I Drive [Z:] mapped to [\\TSCLIENT\Y]
....
PSMRD048I Drive [Y:] was mapped and will try to be redirected
PSMRD025I Checking if drive [Y:] was redirected by terminal services
PSMRD027I Drive [Y:] was redirected by terminal services
....
PSMRD165I Retrying TS Drives Mapping and Redirection (0 tries left)
PSMRD032I Mapping terminal services drives
PSMRD044I No terminal services drives were found to map
Environment
9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;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;14.2;14.6 PAS
PSM
Cause
1. There are manual steps to enable the "Hide these specific drives in My Computer" rule in the GPO. This rule sometimes cause to the redirection of the local drives to fail in PSM-RDP connections (can be in other connection components as well), even though according to our logs everything succeeds and works well.
We enable this GPO rule in order to hide from the end-users the local drives of the PSM machine. This is especially relevant to connection clients that give access to the file system (such as WinSCP), and it is more a functionality aspect rather than a security one. This rule just hides the drives but trying to access the drives directly is still possible.
We are preventing the end-users from accessing to the local drives by giving limited authorization to the PSMConnect and the Shadow users.
2. Drive redirection is not allowed/disabled in GPO
3. Network is not fast enough, and more time is needed for the drives to be redirected.
Resolution
== For Scenario 1==
Choose to enable this rule only on specific drives letters, not on every local drive that includes mapped network drives (such as the //tsclient/) by doing the following:
Choose to enable this rule only on specific drives letters, not on every local drive that includes mapped network drives (such as the //tsclient/) by doing the following:
1. Open the Microsoft Management Console (MMC).
2. From the File menu, select Add or Remove Snap-ins; the Add or Remove Snap-ins window appears.
3. From the Available snap-ins area, select Group Policy Object Editor, and then click Add. The Select Group Policy Object window appears.
4. Click Browse; the Browse for a Group Policy Object window appears.
5. Click the Users tab, then select the group Non-Administrators, and then click OK; the Select Group Policy Object window appears.
6. Click Finish; the Add or Remove Snap-ins window reappears.
7. Click OK to close this window; the main MMC window reappears and displays the User configurations for the Non-Administrators group.
8. Navigate to User Configuration\Administrative Templates\Windows Components, then:
■ For Windows Server 2012: Select File Explorer, then in the Settings pane, double-click Hide these specified drives in My Computer, and then select the Enabled radio button and select "Restrict A, B, C and D drives only
■ For Windows Server 2008: Select Windows Explorer, then in the Settings pane, double-click Hide these specified drives in My Computer, and then select the Enabled radio button and select "Restrict A, B, C and D drives only
**In addition, check if this configuration is being applied through GPO in any way (Check the Domain policy as well).
== For Scenario 2 ==
1. Disable Do not allow Drive Redirection policy for the PSM servers.
== For Scenario 2 ==
1. Disable Do not allow Drive Redirection policy for the PSM servers.
(Note: This is located in either the local GPO or Domain GPO. Depending on the environment's configuration.)
Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection
2. Ensure the policy is updated on all PSM servers
3. Force GPO update and try again.
== For Scenario 3 ==
1. To increase the retries and interval for drives redirection for the connectors:
==
In PVWA go to: ADMINISTRATION--> Options--> Connection Components--> PSM-RDP--> Target Settings--> Client Specific
In the Client Specific section right-click and add the following 2 parameters:
RedirectDrivesRetryInterval with value 30000
RedirectDrivesRetries with value 6
==
2. Restart the Privileged Session Manager service on each PSM
3. Verify in the logs\component\ .log file whether the timestamps for the redirection retry attempts actually increases
4. When establishing PSM session, allow time up to the specified retries for the mapped drives to show up. (180s in this example)
==
3. Force GPO update and try again.
== For Scenario 3 ==
1. To increase the retries and interval for drives redirection for the connectors:
==
In PVWA go to: ADMINISTRATION--> Options--> Connection Components--> PSM-RDP--> Target Settings--> Client Specific
In the Client Specific section right-click and add the following 2 parameters:
RedirectDrivesRetryInterval with value 30000
RedirectDrivesRetries with value 6
==
2. Restart the Privileged Session Manager service on each PSM
3. Verify in the logs\component\ .log file whether the timestamps for the redirection retry attempts actually increases
4. When establishing PSM session, allow time up to the specified retries for the mapped drives to show up. (180s in this example)
==
Note:
If you are on version 10.4 or higher please see the following When running Execute-stage.ps1 for Hardening stage (While "AfterHardening" step is Enabled in HardeningConfig.XML), Map local drives will be allowed only for shadow users.
It will take effect only on shadow users that are created after script run. Therefore, if shadow users were created on the machine before running the script, delete them and let them be created upon next PSM connection.
It will take effect only on shadow users that are created after script run. Therefore, if shadow users were created on the machine before running the script, delete them and let them be created upon next PSM connection.
Additional Information
Details
SYMPTOM:
When connecting to Targets (PSM-RDP or PSM-WINSCP or any other connection component that supports mapping local drives) via PSM, the local drives are not being mapped even though the checkbox was checked during the initial connection
You may see the following in the the session log file in the PSM Connection Client logs:
PSMRD032I Mapping terminal services drives
PSMRD033I Searching for available drive letter
PSMRD035I Found available drive letter [Z:]
PSMRD034I Trying to map teminal services drive [\\TSCLIENT\Y]
PSMRD036I Drive [Z:] mapped to [\\TSCLIENT\Y]
....
PSMRD048I Drive [Y:] was mapped and will try to be redirected
PSMRD025I Checking if drive [Y:] was redirected by terminal services
PSMRD027I Drive [Y:] was redirected by terminal services
....
PSMRD165I Retrying TS Drives Mapping and Redirection (0 tries left)
PSMRD032I Mapping terminal services drives
PSMRD044I No terminal services drives were found to map
PROBLEM:
There are manual steps to enable the "Hide these specific drives in My Computer" rule in the GPO. This rule sometimes cause to the redirection of the local drives to fail in PSM-RDP connections (can be in other connection components as well), even though according to our logs everything succeeds and works well.
We enable this GPO rule in order to hide from the end-users the local drives of the PSM machine. This is especially relevant to connection clients that give access to the file system (such as WinSCP), and it is more a functionality aspect rather than a security one. This rule just hide the drives but trying to access the drives directly is still possible.
We are preventing the end-users from accessing to the local drives by giving limited authorization to the PSMConnect and the Shadow users.
SOLUTION:
Choose to enable this rule only on specific drives letters, not on every local drive that includes mapped network drives (such as the //tsclient/) by doing the following:
1. Open the Microsoft Management Console (MMC).
2. From the File menu, select Add or Remove Snap-ins; the Add or Remove Snap-ins window appears.
3. From the Available snap-ins area, select Group Policy Object Editor, and then click Add. The Select Group Policy Object window appears.
4. Click Browse; the Browse for a Group Policy Object window appears.
5. Click the Users tab, then select the group Non-Administrators, and then click OK; the Select Group Policy Object window appears.
6. Click Finish; the Add or Remove Snap-ins window reappears.
7. Click OK to close this window; the main MMC window reappears and displays the User configurations for the Non-Administrators group.
8. Navigate to User Configuration\Administrative Templates\Windows Components, then:
■ For Windows Server 2012: Select File Explorer, then in the Settings pane, double-click Hide these specified drives in My Computer, and then select the Enabled radio button and select "Restrict A, B, C and D drives only
■ For Windows Server 2008: Select Windows Explorer, then in the Settings pane, double-click Hide these specified drives in My Computer, and then select the Enabled radio button and select "Restrict A, B, C and D drives only
In addition, check if this configuration is being applied through GPO in any way (Check the Domain policy as well).
Note:
If you are on version 10.4 or higher please see the following
When
running Execute-stage.ps1 for Hardening stage (While "AfterHardening"
step is Enabled in HardeningConfig.XML), Map local drives will be allowed only
for shadow users.
It will take effect only on shadow users that are created after script run. Therefore, if shadow users were created on the machine before running the script, delete them and let them be created upon next PSM connection.