Power Shell script to Make the Output as HTML File

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Charles Downing Charles Downing 2 years ago.

  • Author
    Posts
  • #20594
    Profile photo of Praba kar.m
    Praba kar.m
    Participant

    I have a code which find the oldest file in a set of folders and is working fine with the loops and what the issue over here is if i want to make the final Output to be displayed in a HTML file not by converting just by adding the output as a table its not reflecting.

    Thanks
    Prabakar M

  • #20597
    Profile photo of Charles Downing
    Charles Downing
    Participant

    It all depends on your code and what you're trying to do, but you can either create the HTML in your script and dump it to a file or you can use the ConvertTo-HTML cmdlet. See this TechNet article or go to the Free eBooks link under the Resources tab at the top of this page and grab the "Creating HTML Reports in PowerShell" book.

You must be logged in to reply to this topic.