Using Powershell to change sftp site passwords
I use WINSCP to exchange files with an AS400 system. I use it via Powershell and have the file transfer integrated into a larger script that does a number of things, all automated.
The password rules on the AS400 for the SFTP account are now changing to require that the password on the AS400 change every 30 days.
I have already updated my Powershell script to generate a new password and assign it to the account on the AS400. Is there a way I can also update the WINSCP password via Powershell?
OR... Is there a way to supply the WINSCP password each time I want to connect with WINSCP? Again, I use WinSCPnet.dll via Powershell and would rather not switch over to doing "scripting".
Thanks.
The password rules on the AS400 for the SFTP account are now changing to require that the password on the AS400 change every 30 days.
I have already updated my Powershell script to generate a new password and assign it to the account on the AS400. Is there a way I can also update the WINSCP password via Powershell?
OR... Is there a way to supply the WINSCP password each time I want to connect with WINSCP? Again, I use WinSCPnet.dll via Powershell and would rather not switch over to doing "scripting".
Thanks.