5

Instead of:

Get-ChildItem -Path C:\ -Force | ConvertTo-Html -Body "<H2>C Drive Details</H2>" >> $OutFile

I want the output in pdf format not html

3

1 Answer 1

1

If you go to this website http://www.powertheshell.com/modules/

You can download the PDFTools module and extract the contents to your modules path and then Import-Module PDFTools, this will give you a new command Out-PTSPDF which you can pass your results to.

@JamesC is right there is no "native" way to complete this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.