PSM - How to make Chrome prompt for download after PSM server has been hardened

PSM - How to make Chrome prompt for download after PSM server has been hardened

183
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 13:02 PM


Objective


How to make Chrome prompt for download after PSM server has been hardened?


Environment


10.1;10.2;10.3;10.4;10.5;10.6;10.7;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.0;14.2;14.6

Procedure


After PSM hardening script had been applied, Chrome hardening policies would be applied. As part of the policy, DownloadDirectory, is set to the following:
 
${profile}\Downloads
 
As such when the user attempts to download a file in Web application session in PSM, it would download to the PSM shadow user profiles's download folder. This is because PSM shadow user account is used to start the session. 
 
Example:
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
To work around this, please perform the following steps:
1. Log into the PSM server
2. Launch Registry editor
3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
4. Delete DownloadDirectory key
5. Add the following key
Data type: REG_DWORD
Value name: PromptForDownloadLocation
Value data: 0x00000001
6. Restart PSM server
7. Test the web application and verify. 

If the changes above do not persist through a reboot or gpupdate /force, here is an alternative method to update them:

a. Download the “policy_templates.zip” file from Google and copy it to the PSM server.  

https://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip

b. Extract the zipped file containing the Google Chrome templates

c. Go to policy_templates\windows\admx folder

d. Copy Chrome.admx file to C:\Windows\PolicyDefinitions

e. Return to \policy_templates\windows\admx\en-US

f. Copy Chrome. adml to C:\Windows\PolicyDefinitions\en-US

g. Run gpedit.msc command from commandline

h. Navigate to Computer Configuration | Administrative Templates | Google Chrome  

i. Set “Set download directory” to “Disabled” and it will be removed from the registry.

j. Set “Ask where to save each file before downloading” to EnabledNote: Setting names in step

i and j may vary depending on the installed version of Chrome.


Note: Setting names in step i and j may vary depending on the installed version of Chrome.


Additional Information


Details

Q:
 
How to make Chrome prompt for download after PSM server has been hardened?
 
A:
 
After PSM hardening script had been applied, Chrome hardening policies would be applied. As part of the policy, DownloadDirectory, is set to the following:
 
${profile}\Downloads
 
As such when the user attempts to download a file in Web application session in PSM, it would download to the PSM shadow user profiles's download folder. This is because PSM shadow user account is used to start the session. 
 
Example:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
To work around this, please perform the following steps:
1. Log into the PSM server
2. Launch Registry editor
3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
4. Delete DownloadDirectory key
5. Add the following key
Data type: REG_DWORD
Value name: PromptForDownloadLocation
Value data: 0x00000001
6. Restart PSM server
7. Test the web application and verify. 


If the DownloadDirectory key returns or the PromptForDownloadLocation key does not retain the correct setting after reboot or when running gpupdate /force, there is an alternative way to update them:

a. Download the attached file "chrome.adm" and copy it to the PSM server.  
b. Open gpedit.msc  
c. Navigate to Computer Configuration | Administrative Templates  
d. Right click Administrative Templates and choose "Add/Remove Templates"  
e. Click the Add button  
f. Navigate to the "chrome.adm" file and click Open.  
g. Click close on the window  
h. Navigate to Computer Configuration | Administrative Templates | Classic Administrative Templates (ADM) | Google | Google Chrome  
i. Depending on which version of Chrome you have installed, the setting may be named differently:

Ask where to save each file before downloading  (PromptForDownloadLocation key)
Set download directory (DownloadDirectory key)

h. Set "Set download directory" to "Not Configured" and it will be removed from the registry.
i. Set "Ask where to save each file before downloading" to Enabled



Actions
  • Print
  • Copy Link

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