Advertisement
Guest User

Untitled

a guest
Jan 9th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $homePage = Invoke-WebRequest <ftp https url>
  2. $username = "<username here>"
  3. $password = "<password here>"
  4.  
  5. $form = $homePage.Forms[0]
  6. $form.Fields["username"] = $username
  7. $form.Fields["password"] = $password
  8.  
  9. $portalPage = Invoke-WebRequest -Uri $Form.Action -Method POST -Body $Form.Fields -SessionVariable ftp
  10. Invoke-WebRequest -Uri "<link to Excel Sheet I want to downlaod" -OutFile <output directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement