# How to download attachment using powershell script

**URL:** <https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660>\
**Category:** PowerShell Help\
**Created:** [February 23, 2022, 10:48am UTC](https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660 "2022-02-23T10:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guvera](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guvera](https://forums.powershell.org/u/Guvera)\
**Post date:** [February 23, 2022, 10:48am UTC](https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660/1 "2022-02-23T10:48:32Z")

</div>

Hello,

I am new to powershell script. Do you know, how to write script to download attachment using powershell script?

Thanks!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [February 23, 2022, 4:46pm UTC](https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660/2 "2022-02-23T16:46:27Z")

</div>

Ashok,  
Welcome to the forum. 👋🏽

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

We expect you to make own attempt to solve your problems first.

And BTW:

> [@Guvera](#):
>
> how to write script to download attachment

What exactly do you mean with _attachment_?

---

<div class="post-metadata">

**Author:** ![Guvera](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guvera](https://forums.powershell.org/u/Guvera)\
**Post date:** [February 28, 2022, 10:58am UTC](https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660/3 "2022-02-28T10:58:16Z")

</div>

Sure Olaf,

Thanks for writing and I am attempting to solve my problem using script. I will post the question if any exception will occur.

Thanks!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:18pm UTC](https://forums.powershell.org/t/how-to-download-attachment-using-powershell-script/18660/4 "2024-05-16T20:18:13Z")

</div>


