locked
Out Grid View Use RRS feed

  • Question

  • Where might we use Out-GridView?

    When requester wants an Excel report

    When you want to show data in a website

    When presenting data to end user live, in meeting or presentation




    Thursday, May 30, 2019 7:36 PM

All replies

  • Sorry...  You asked a question, but then provided answers (examples) to that question?
    Thursday, May 30, 2019 7:39 PM
  • You must first learn PowerShell then learn to use the help system

    help out-gridview -online


    \_(ツ)_/

    Thursday, May 30, 2019 8:55 PM
  • Out-gridview is primarily used when you want to view a list of objects with a selected group of attributes included in a way that is more graphical, easier to manipulate, and allows you to modify your query without having to re-write your powershell code. Out-Gridview will not work well for the first two situations you note, as the data cannot be easily exported to either of those using Out-Gridview. You would use export-csv and import the data to Excel if you wanted it that way, and if you wanted it in a website view, you would need to export the data with headers and formatted for HTML. Out-Gridview does neither. It would be useful for your last situation, though.
    Thursday, May 30, 2019 9:02 PM