How to hide local PSM Drives

How to hide local PSM Drives

86
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:11 PM


Objective


How to hide the local drives for the PSM local users

Environment


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;14.6

Procedure


You can run the HideLocalDrives.ps1 on the PSM server, which would hide the local drives for the PSM local users, this includes the PSM Shadow users.

The PowerShell script is located in the PSM Installer folder under \InstallationAutomation\Hardening

You can run the following command from an elevated PowerShell to find out more about the command and which command to run to hide specific drives:
> get-help .\HideLocalDrives.ps1 -detailed

You can run the following command from an elevated PowerShell to see if you have any current local drive hidden:
> .\HideLocalDrives.ps1 -Get

You can run the following command from an elevated PowerShell to exclude just the PSM local C drive for all local users, this includes the PSM Shadow users:
> .\HideLocalDrives.ps1 -Set -Drives C

You will need to delete the local PSM Shadow Users for them to be recreated on next login with the policy set.

PSM Server > Computer Management > Local Users and Groups > Users:

PSM Users example: PSM-1F00000000000000


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001ZjiCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail