M
M
MrDZ2018-08-20 15:49:40
PowerShell
MrDZ, 2018-08-20 15:49:40

How to upload a file to Mikrotik using powershell?

Found a script

Set-SCPFile -LocalFile C:\f2.rsc -RemotePath /flash/ -ComputerName 192.168.1.1 -Credential admin

creates a file on Mikrotik, but it is 0 kb. What is the right way to make it copy the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
azarij, 2018-08-20
@MrDZ

https://mcpmag.com/articles/2018/07/19/transfer-fi...
https://m.habr.com/post/314990/
You have not specified remote file.

D
Drno, 2018-08-20
@Drno

Mikrotik has FTP and SSH. Throw through these protocols.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question