PoshUtils, PowerShell, Scripting
comments 6

PoshUtils: Export Visio pages in PowerShell

A while ago, I published a post on exporting Visio pages to PNG format. This is something I do quite often. This post received good amount of views and I had a couple of people reaching out to me asking if I can extend that function to export visio pages to other formats as well.

It turns out that it is a very easy thing to do. I took this opportunity to extend the function I created and added a few enhancements. Here is the updated function:

Now, this is how you use it:

The -fileName and -destinationFolder parameter accept only absolute paths. The -To parameter has a validation set containing whatever I have tested. You can extend it easily if you know what other extensions can be used while exporting Visio pages to other formats. Just add the extensions to -To validation set. That is it.

Do let me know if you have any feedback on this and any other changes you want to see.

Filed under: PoshUtils, PowerShell, Scripting


Ravikanth is a principal engineer and the lead architect for Microsoft and VMware virtualized and hybrid cloud solutions within the Infrastructure Solutions Group at Dell EMC. He is a multi-year recipient of Microsoft Most Valuable Professional (MVP) award in Windows PowerShell (CDM) and Microsoft Azure. Ravikanth is the author of Windows PowerShell Desired State Configuration Revealed (Apress) and leads Bangalore PowerShell and Bangalore IT Pro user groups. He can be seen speaking regularly at local user group events and conferences in India and abroad.