r/PowerShell • u/No_Manager_7181 • Oct 06 '26
Question Image to excel using copilot
Is there any way I can use PowerShell to make copilot read images and convert its content into an excel, I want to automate this task using copilot only to use LLM’s ability to convert these images. Currently, copilot can only convert images if I manually upload them, it doesn’t read images on its own
0
Upvotes
View all comments
Show parent comment
1
u/thehuntzman Oct 06 '26
Yes your modules are great but I like describing solutions to powershell problems fundamentally instead of telling new users to just rely on third party modules as that doesn't help truly teach them. The Outlook COM interop is probably the most widely documented way to interact with Outlook in Powershell. Exporting as CSV was purely a case of "what is the easiest way to do this" but yes, your PSWriteOffice module would be appropriate here if XLSX was a requirement.
So architectually for the simplest solution it would be: Read from interop -> send image with prompt to AI API -> serialize response and save as csv (or other)
If they're talking about (paid) M365 copilot, they can use the graph api to interact with it.