Show PSM local drives hidden by hardening
Objective
In the default configuration, the PSM hardening process will modify the PSM server machine so that no local drives appear in the Windows Explorer against the default user profile, which applies to new logged in users, including the dynamically created, sandboxed PSM shadow user sessions.
This is accomplished in the HideLocalDrives.ps1 installation automation script that sets a Windows registry key "NoDrives", located at HKEY_USERS\defaultuser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer , which uses a mask to hide specific local drives.
"Hide Physical Drives in Windows Explorer" - https://support.microsoft.com/en-us/help/555438
"Hide PSM Local Drives" - https://community.cyberark.com/s/article/00003645
Windows Administrators of the PSM servers that did not have local profiles already on the server may wish to restore the ability to view the local drive letters with Windows Explorer to carry out administrative tasks after logging in for the first time, requiring unhiding the drive letters.
Environment
9.10;10.5;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;14.2;14.6 Privileged Access Manager (PAM, self-hosted) PSM;Privileged Session Management (PSM)
Procedure
To re-enable the display of local drives on a hardened PSM server for a currently logged in local administrator:
1. Open the Windows Registry Editor
2. Browse to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
3. Double click the "NoDrives" entry that appears in the right of the window
4. Update the value of "NoDrives" to 0 (zero)
5. Log off and log back on.
To re-enable the display of local drives on a hardened PSM server globally (not recommended, proceed with caution):
1. Open the Windows Registry Editor (regedit.exe) as an administrator
2. Browse to HKEY_USERS\defaultuser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
3. Double click the "NoDrives" entry that appears in the right of the window
4. Update the value of "NoDrives" to 0 (zero)
5. Restart the machine