Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Does your PowerShell logging work? (LogWrite calls)
If they do, show us that log too. But first, make sure you add exception handling to your script and log the exceptions too. See also the official PowerShell example (the try...catch block):
https://winscp.net/eng/docs/library_powershell#example
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
martin

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.
olga

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?