Reputation: 13
How do I export the output in powershell screen and save it as a image? To save the output as a text file I use the command below:
script.ps1 >> output.txt
I would want the output to be saved as a screenshot or image. Tried exporting as:
script.ps1 >> output.png
The image doesn't open
Upvotes: 1
Views: 2111
Reputation: 218
This might point you in the right direction. Although it does not it does not directly output the console to a png file you could output the console to a txt file and then using Get-Content export this to a png file
https://www.reddit.com/r/PowerShell/comments/8rg3hc/exportpng/
Upvotes: 1