running ps script that uses winscp.dll asembly

Advertisement

olga
Joined:
Posts:
1

running ps script that uses winscp.dll asembly

I am trying to automate an sftp connection using ps script. When i run the ps script under my user - it runs ok, when i run under service user the script fails at session.open command.
In the script i have specified the username and password for user to connect to sftp, but i thing when the script runs under service user configuration is looking in user profile for .rnd file.
How could i run the script using a user that does not have this file?
  • ps.txt (2.15 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,034
Location:
Prague, Czechia

Re: running ps script that uses winscp.dll asembly

How does it "fail"? What error do you get?

Please post session log file (Session.SessionLogPath) from both machines.

Reply with quote

Guest

When i run the windows task under my user it creates the session log (attached). When i run under service username it does not create any session log file. Is there any configuration parameters i have to add into the script? I have read about .ini file - but i am not sure how to use it

Reply with quote

Advertisement

You can post new topics in this forum