This article explains how to change WinSCP default advanced settings such as default local directory for all PSM users.
Issue
Hello Supoort teams,
Please tell us about WINSCP.
Customers want to know the difference between the commercial version of WINSCP and WINSCP on PSM.
I think there are many things you can do with the product version that you cannot do with WINSCP used in PAS.
Are there any functions restricted by WINSCP of PAS?
As a concrete example, wouldn't the user be able to adjust advanced settings, such as the attached image?
Is it okay to directly start WINSCP stored in the folder and customize it?
Is there anything that is managed by PSM that the user cannot change?
Are there other features I can't use?
I hope you'll tell me.
Thanks
Kotaro
Environment
PSM Performance
Steps
1. RDP into a server which has standalone WinSCP installed.
2. Launch WinSCP
3. Use the Advanced tab and make the changes as per your business requirements
4. From the Save drop down--> select save as default
5. Launch Registry editor by running "regedit" from command prompt
6. Export [HKEY_CURRENT_USER\SOFTWARE\Martin Prikryl] to local disk and name it
DefaultWinSCP.reg
7. Edit DefaultWinSCP.reg which was created in step 6,
a. clear up the entries under ~\SOFTWARE\Martin Prikryl\WinSCP 2\Configuration\CDCache
These are the previous connected session name. We don't need them for all users.
b. Clear up the entries under HKEY_CURRENT_USER\SOFTWARE\Martin Prikryl\WinSCP 2\SshHostKeys
These are the saved sshhostkey from previous session. We don't need them for all user.
8 Copy the registry file to PSM server.
9. Replace all HKEY_CURRENT_USER\ with HKEY_USERS\DefaultWinSCP\
10. In Registry Editor , load a new hive that points to the default user's NTUSER.DAT by selecting HKEY_USERS then in the File menu the option Load Hive. Browse to and open C:\Users\Default\NTUSER.DAT (You may not be able to see NTUSER.DAT in the folder. Simply type into the filename box from C:\Users\Default and select Open)
11. Name the new hive DefaultWinSCP. The name DefaultWinSCP should be used as it is referring to a name in the exported reg file done previously.
12. Merge (or run) the attached DefaultWinSCP.reg file that was created as per the instructions above. The simplest way is by double clicking on the DefaultWinSCP.reg file.
13. You will now see in the DefaultWinSCP hive in RegEdit and new keys in ~/SOFTWARE/Martin Prikryl.
14. Select the hive name DefaultWinSCP under HKEY_Users then unload it by selecting from the File menu the option Unload Hive. You will see the DefaultWinSCP hive is gone. The changes are applied to the NTUSER.DAT file so new profiles will use the settings.
15. Remove all ShadowUser profile before a new connection test
a. Press Windows key+R to Open the Run dialog box.
b. Type lusrmgr.msc and hit enter.
c. Delete all entries with PSM- and followed by numbers. Do not delete PSMConnect and PSMAdminConnect accounts.
d. Now we can try the PSM-WinSCP connection. The new settings will be inherited.
16. If you have multiple PSM servers, you can copy the DefaultWinSCP.reg to each of them and repeat steps 10 to step 15.