I want to print an html file to the default printer with powershell. So lets say I have the file c:\test.html with the text:
<html>
<p> hello <b>world</b></p>
<html>
How could I print test.html to the default printer?
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Print to default printer.
Edit:
if you need print rendered htlm page:
Edit after comments:
I can run this in a testprint.ps1 file: