Download csv file (written in powershell) in user interface by stakeholders

Welcome Forums General PowerShell Q&A Download csv file (written in powershell) in user interface by stakeholders

Viewing 2 reply threads
  • Author
    Posts
    • #256427
      Participant
      Topics: 1
      Replies: 0
      Points: 13
      Rank: Member

      Hi All,

      I am new to powershell and so here.

      Perhaps my question looks so ease for the experts but still I need your help.

      I have a below script from the following link : https://support.microsoft.com/en-us/office/export-yammer-group-members-to-a-csv-file-201a78fd-67b8-42c3-9247-79e79f92b535

      whenever I run it from Powershell ISE it exports csv to my local folder, but for stakeholders I should arrange user interface with button click to download the csv report.

      Can someone help to achieve this?

      Thanks in advance.

      • This topic was modified 5 days, 21 hours ago by grokkit. Reason: code formatting
    • #256697
      Participant
      Topics: 13
      Replies: 1753
      Points: 3,136
      Helping Hand
      Rank: Community Hero

      Simply search for “Powershell GUI”. There are many options, however, you’re still going to have a Powershell script that has to be run to start a gui to then push a button. You could just download the file to the same location as the script and skip the gui part. Here is a link for one option:

      How to Build a PowerShell GUI for your Scripts

    • #256712
      Senior Moderator
      Topics: 10
      Replies: 161
      Points: 871
      Helping Hand
      Rank: Major Contributor

      whenever I run it from Powershell ISE it exports csv to my local folder, but for stakeholders I should arrange user interface with button click to download the csv report.

      Make sure that you test your script outside of PowerShell ISE before you let other people use it. The ISE console is an emulation – it’s not “real” or necessarily consistent with execution in the actual operating system. It’s fine for testing while you’re working on the script, but not trustworthy as a complete test. The PowerShell team wrote up a list of differences which will give you a better understanding of the limitations of the ISE console.

      Rob makes a good point – if the only function of this script is to download the report file, you could just do that when the user executes the script and skip the button entirely. Is there more to your script?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.