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.

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)


Topic review


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):

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

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.

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 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?