PSM local drive mapping based on local drive lettering order
Symptom
PSM server leverages the services provided by tsclient to perform local drive mapping at the target server.
The drives were derived from the available letters on the PSM target in descending order manner starting from Drive Z.
The mapping process looks for available letters chronologically, starting from 'Z' to 'A'.
Once it finds an available letter, it is assigned to one of the source drives being mapped.
For example :
PSM connect to target server:
server Local machine
W Z
X Y
Y X
Z K
Drive mapping from direct RDP connection to target server:
| server | Local machine |
| K | K |
| X | X |
| Y | Y |
| Z | Z |
PSM runtime will perform drive mapping redirection based on the following order:
1) Drive K on the local machine and re-direct to drive Z at target
2) Drive X on local machine redirect to drive Y at target
3) Drive Y on local machine redirect to drive X at target
4) Drive Z on local machine redirect to drive W at target (that was because drive Z was already mapped to drive K on the target at step 1)
The reason why PSM redirect drives starting with drive Z is to ensure that availability of drive letters by starting from Z to A as most of the currently in used drives at the target server starts in alphabetical order (eg. C, D, E, F etc).
The above differs from RDP client connecting to target server directly as there is no intermediate drive mapping process (PSM) between a direct RDP connection to target server, this allows RDP client to be able to know the available drive letters at the local machine and the target machine hence able to map the drives according to the right order.
Environment
11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;14.6 Privileged Access Manager (PAM, self-hosted) PSM PSM Other