PowerShell: Connect to Outlook, Download Email Attachments, Move email to subfolder.

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • In this video I demonstrate how to use PowerShell to connect to an Outlook Mailbox, target emails with attachments, download those attachments to a local folder, and then move those emails to a different folder within the Outlook Mailbox. Please email us at hello@aipsolutions.tech for any questions, and new subscribers get access to the full source code.
    Same thing accomplished via
    Python: • Python: Connect to Mai...
    Power Automate: • Power Automate Desktop...
    ‪@AIPSolutions‬
    aipsolutions.tech

Комментарии • 12

  • @leolisboa00
    @leolisboa00 Год назад +2

    Super cool!

  • @abelgnonsoa9194
    @abelgnonsoa9194 Год назад +2

    Thanks

  • @rohitghoderao6701
    @rohitghoderao6701 11 месяцев назад +2

    Hi can you share the PowerShell script here it will be really great

  • @techdiver6074
    @techdiver6074 7 месяцев назад

    Don't you have to release the COM object you've acquired (in the case of Outlook not already running) with ReleaseComObject? I do that regularly in C#; but I'm still new to Powershell

    • @AIPSolutions
      @AIPSolutions  7 месяцев назад

      Yes, you are correct. The object should have been quit.

  • @alexrowson9161
    @alexrowson9161 7 месяцев назад

    How would you handle folders under folders within the Inbox. For example Inbox/Report/2023/Topic

    • @AIPSolutions
      @AIPSolutions  7 месяцев назад

      The line referencing your target folder you can try changing to $targetfolder = $inbox.Folders | where-object {_.name -eq "Topic" }

  • @shahbaz7231
    @shahbaz7231 Год назад

    great video, I have sent a mail I need your help regarding one project in outlook mails automation. please revert back when you get it

  • @superdave1466
    @superdave1466 9 месяцев назад

    I am using PowerShell 7 with VS Code and followed this tutorial but get this error: "Unable to find type [Microsoft.Office.Interop.Outlook.olDefaultFolders] I spent hours on GOOGLE trying to find an answer but have not had any luck. Please help. Thanks!!

    • @AIPSolutions
      @AIPSolutions  9 месяцев назад

      You will need to have outlook installed on the computer that will be running the script. Also make sure this line at that start of your script " Add-Type -assembly "Microsoft.Office.Interop.Outlook" " and that should be it.

  • @awanturnik978
    @awanturnik978 Год назад

    I guess you can't do that to other website email service ? :D