Hi, I created a PS scheduled task to write an HTML report, using ConvertTo-HTML, to a set of IIS web servers. However, I’m wondering if there is an easy way to convert the output to ASP or ASPX. This particular website uses forms authentication, which doesn’t protect static content like HTML, and I’d prefer to just write the file as ASP/ASPX than contact another team to modify the handlers in their web application.
To my knowledge , No. May be you can custom create it by building the page one line at a time. Instead of xreating HTML report, use ForEach object then construct the lines for each element. Or have template kind of aspx file , then do a find/replace operation using a foreach.