Can Sessions store in LOCAL_MACHINE instead of CURRENT_USER

Advertisement

dohertk
Joined:
Posts:
1
Location:
Spokane, WA

Can Sessions store in LOCAL_MACHINE instead of CURRENT_USER

We are calling WINSCP using a batch file in a scheduled SQL job. It is failing on not finding session configuration if more than one user happens to be remotely logged into the server during the sql job run.

Is there any way to change WINSCP to use the Session definitions under HKEY_LOCAL_MACHINE instead of the HK_CURRENT_USER, so that it will work no matter who is logged into the server?

this is the batch file call:
"C:\Program Files (x86)\WinSCP\winscp.com" PT5Stage /script="F:\Projects\PT5 Stage\PT5 Stage\PT5BCIN_Stage.txt"


WINSCP log:
. 2012-06-17 20:12:32.927 --------------------------------------------------------------------------
. 2012-06-17 20:12:32.927 WinSCP Version 5.0.6 (Build 2074) (OS 6.1.7601 Service Pack 1)
. 2012-06-17 20:12:32.927 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-06-17 20:12:32.928 Local account: IRMPS\administrator
. 2012-06-17 20:12:32.928 Login time: Sunday, June 17, 2012 8:12:32 PM
. 2012-06-17 20:12:32.928 --------------------------------------------------------------------------
. 2012-06-17 20:12:32.928 Session name: StagePT5 (Modified stored session)
. 2012-06-17 20:12:32.928 Host name: StagePT5 (Port: 22)
. 2012-06-17 20:12:32.928 User name: (Password: No, Key file: No)
. 2012-06-17 20:12:32.928 Tunnel: No
. 2012-06-17 20:12:32.928 Transfer Protocol: SFTP (SCP)
. 2012-06-17 20:12:32.928 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2012-06-17 20:12:32.928 Proxy: none
. 2012-06-17 20:12:32.928 SSH protocol version: 2; Compression: No
. 2012-06-17 20:12:32.928 Bypass authentication: No
. 2012-06-17 20:12:32.928 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2012-06-17 20:12:32.928 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2012-06-17 20:12:32.928 SSH Bugs: -,-,-,-,-,-,-,-,-,-
. 2012-06-17 20:12:32.928 SFTP Bugs: -,-
. 2012-06-17 20:12:32.928 Return code variable: Autodetect; Lookup user groups: -
. 2012-06-17 20:12:32.928 Shell: default
. 2012-06-17 20:12:32.928 EOL: 0, UTF: 2
. 2012-06-17 20:12:32.928 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2012-06-17 20:12:32.928 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2012-06-17 20:12:32.928 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2012-06-17 20:12:32.928 Cache directory changes: Yes, Permanent: Yes
. 2012-06-17 20:12:32.928 DST mode: 1
. 2012-06-17 20:12:32.928 --------------------------------------------------------------------------
. 2012-06-17 20:12:32.928 Looking up host "StagePT5"


I saw that I might be able to move the Session/WINSCP configuration to an .ini file, but I haven't been able to find exactly how to do that. If there is a link you could provide me in the documentation about how to create/format that .ini file, that would be great if that's the way I should be going about this. Thank you.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum