How to code this powershell? RRS feed

  • General discussion

  • Thanks, to everyone very much for suggestions (^v^)
    • Edited by oemMicrosoft Monday, July 29, 2019 1:36 PM
    • Changed type Bill_Stewart Wednesday, October 16, 2019 4:55 PM
    • Moved by Bill_Stewart Wednesday, October 16, 2019 4:55 PM Help vampire
    Thursday, June 27, 2019 2:42 AM

All replies

  • Just use the WebClient "DownloadFile" method.   No need to click any buttons or thingies.

    You cannot automate web triggered file downloads for security reasons.

    You cannot automate Ajax components.


    • Edited by jrv Thursday, June 27, 2019 3:58 AM
    Thursday, June 27, 2019 3:55 AM
  • The Ajax code triggers this when a global callback request is sent.  By the time the page is loaded that information is not available. The button does not send a request.  It's event is referenced to the Ajax code.  In almost all cases this cannot be synthesized in a web page download.


    Thursday, June 27, 2019 4:25 AM
  • It cannot be done with PowerShell.


    Thursday, June 27, 2019 5:04 AM
  • Thank you very much for suggestions (^v^)

    Thanks in advance for any suggestions

    Thursday, June 27, 2019 9:35 PM
  • First you have to learn what Ajax is then you will understand why no one is answering your question.  Ajax cannot normally be automated unless it is designed to allow this.  IN most cases the page controls do not respond to normal events.  The events are handled at the page level and you would need to decompose the JavaScript to see how the page does its callbacks to the server.

    The answer is that there is no canned answer, command or simple technique that answers you question.  You would have to analyze the page and the Ajax code to see how to do this if it is possible.

    What is Ajax?

    Ajax Programming


    Monday, July 8, 2019 11:22 PM
  • This is not the right forum for your project.

    -- Bill Stewart [Bill_Stewart]

    Tuesday, July 9, 2019 3:34 PM