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

Re: A null key is not allowed in a hash literal.

I assume you did not initialize the $sessionOptions variable.

Show us your complete script.
Tolly

A null key is not allowed in a hash literal.

I am automating my directories sync but when I try to connect using .Net assembly via powershell to the external SFTP site I get this: A null key is not allowed in a hash literal.
Is this because I am using IP adddress in here: $sessionOptions.HostName = "x.x.x.x"
I am using Version 5.7.6 (biild 5874)

Thank you,
T.