![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Get a folder in Outlook I'm using Powershell v2 CTP and Outlook 2003. I have a folder \\Personal Folders\Inbox\collect which I want to search through. I am unsure of the method to assign this folder to an object using Get-Item; can anyone suggest the correct way? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Get a folder in Outlook Hello sluice, Try: $olFolderInbox = 6 $outlook = new-object -com outlook.application $ns = $outlook.GetNameSpace("MAPI") $collect= $ns.GetDefaultFolder($olFolderInbox).Folders.Item("collect") $collect.items.count --- Shay Levy Windows PowerShell MVP http://blogs.microsoft.co.il/blogs/ScriptFanatic s> I'm using Powershell v2 CTP and Outlook 2003. I have a folder s> '\\Personal' (file://\\Personal) Folders\Inbox\collect s> which I want to search through. I am unsure of the method to assign s> this folder to an object using Get-Item; can anyone suggest the s> correct s> way? |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Where is the Outlook 07 folder? | Microsoft Office | |||
| Location of personal folder in Outlook with VBS | VB Script | |||
| Script to view Outlook OLK folder | VB Script | |||
| Outlook - Folder could not be displayed | Vista mail | |||
| Outlook Folder tree | PowerShell | |||