# Open outlook in specific folder

**URL:** <https://forums.powershell.org/t/open-outlook-in-specific-folder/21274>\
**Category:** PowerShell Help\
**Created:** [January 4, 2023, 9:23am UTC](https://forums.powershell.org/t/open-outlook-in-specific-folder/21274 "2023-01-04T09:23:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KochiThelyx](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@KochiThelyx](https://forums.powershell.org/u/KochiThelyx)\
**Post date:** [January 4, 2023, 9:23am UTC](https://forums.powershell.org/t/open-outlook-in-specific-folder/21274/1 "2023-01-04T09:23:51Z")

</div>

so i found this piece of code

```auto
(new-object -com Outlook.Application).GetNamespace("MAPI").GetDefaultFolder("olFolderInbox").GetExplorer().Display()

```

to open me outlook.

i just want that it doesnt open in one of the many default folders but in one specific mailbox of mine, lets call it “systemmails”

how can i do that ? thanks a lot

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [January 4, 2023, 6:45pm UTC](https://forums.powershell.org/t/open-outlook-in-specific-folder/21274/2 "2023-01-04T18:45:27Z")

</div>

Hi, welcome to the forum 👋

```auto
$outlook = New-Object -ComObject Outlook.Application
$mapi = $outlook.GetNamespace('MAPI')
$folder = $mapi.Folders.Item('systemmails')
$folder.GetExplorer().Display()

```

I recommend using `Get-Member` to explore the `$outlook`, `$mapi`, and `$folder` variables as it will show you the properties and methods you can use to access the various items.

---

<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:16pm UTC](https://forums.powershell.org/t/open-outlook-in-specific-folder/21274/3 "2024-05-16T20:16:06Z")

</div>


