Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Build simple HTML with PowerShell

$
0
0

Summary: Here’s how to use the ConvertTo-HTML cmdlet to build basic HTML content.

  Hey, Scripting Guy! Occasionally I need to build basic HTML documents. I heard there was a way to do that with Windows PowerShell.

  There most certainly is! Just use the ConvertTo-HTML cmdlet to save the day! For example:

                          $SampleDoc=@'

                          This is a simple text Document in PowerShell

                          That I am going to make into a Tiny web page

                          🙂

                          '@

                          ConvertTo-Html -InputObject $SampleDoc

              


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>