Topic "Lock Client Settings"

Author Message


I would like to preconfigure an ini for the client and prevent the enduser from changing what I have set. Is this possible? Confused
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Well techically, you can't prevent user from doing anything unless you deny him right to modify the INI file or registry. It is out of scope of WinSCP, you should use features of operating system (file system).

But anyway, WinSCP3 has "hidden" feature, which might help you: Each stored session has additional configuration parameter "Special", which does two things. First: it highlights the session in the list. Second: it prevents user from modifing the session parameters. Note, that user can add new session, which includes possibility, that he loads the special session, modify its options and saves it under new name.

How to include the 'special' option:
For registry:
[HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Sessions\My Special Session]

For ini file:
[Sessions\My Special Session]

Note that WinSCP3 uses INI file winscp3.ini, but registry key "WinSCP 2".

Resume: If your purpose is to prevent user from accidentaly changing session options, this feature is right one for you. If you want to prevent user from changing anything, you must use features of the operating system.

Let me know if this helps.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License