Automate WinSCP Deployment with ConfigMgr

This will automate the install of WinSCP and Disable Updates.

Create your Folder Structure:


Download WinSCP here:

Scripts & Files available here:
Download the EXE into the folder (Delete the blank place holder)

Create your Install & Uninstall Scripts:

Load_WinSCP.cmd Script:

SET loc=%~dp0

REM Using FOR Loop to find any EXE file and run it with these arguments
for %%i in (*.exe) do cmd /c %%i  /VERYSILENT /NORESTART /LOADINF=”%~dp0conf.inf” /NOCANDY /LOG=”C:\InstallLogs\winscp.log”

REM Disable Updates
REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Martin Prikryl\WinSCP 2” /v “DefaultUpdatesPeriod” /t REG_DWORD /d 00000000 /f



“C:\Program Files (x86)\WinSCP\unins000.exe” /SILENT



conf.inf file (Options selected for Silent Install)

Dir=C:\Program Files (x86)\WinSCP


I’m going to skip some of the pictures, and go right to the deployment type & detection methods, look at previous posts for a template to go from.


In the Content Tab, make sure it is pointing to your ConfigMgr Content Source.




For Detection Method, File System.  Each time it updates, I only have to change the Version Value, which makes it quite easy to update to the new version.
I have two detection methods, one for x86 machines and one for x64.  I’m showing the one for x64

That should do it.  You can now deploy the app.

As you can see, by setting that registry value in the install script, it sets the check for updates to NEVER




Happy Deployments!

3 thoughts on “Automate WinSCP Deployment with ConfigMgr”

  1. Hello … I’m having a problem with WinSCP 5.17.3 trying to use this script, prior versions worked fine. Now when trying to install the app it asks me if I want to install for the current user.

    I have tried to add /currentuser as well as /allusers to the command line but it doesn’t make a difference. Any Ideas?


  2. This batch files are working great, but only for that specific version, when you need to update you need to test again, i prefer using vendor information and just use this in a script based package.

    “WinSCP-5.17.5-Setup.exe” /VERYSILENT /ALLUSERS

    For all the parameters check the WinSCP notes


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.