Search found 353 matches

by localpct
Mon Sep 20, 2021 7:21 am
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

easy to read
easy to implement
thanks so much for this.
by localpct
Sat Sep 18, 2021 5:32 am
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

Now that I’ve figured this out

Do you have any enhancements or different ways your script would look?
by localpct
Fri Sep 17, 2021 10:54 pm
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

Final answer: $outlook = New-Object -ComObject Outlook.Application $namespace = $outlook.GetNameSpace("MAPI") $inbox = $namespace.Folders.Item('some@email.com').Folders.Item('REPORTS') for ($item = $inbox.Items.Count; $item -ge 1; $item--) { $($inbox.items.item($item).attachments).SaveAsFile((Join-P...
by localpct
Fri Sep 17, 2021 8:08 pm
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

mail item id, is that entry ID?

found some links that pointed me here
https://docs.microsoft.com/en-us/office ... tem.Delete

Helps with more of the puzzle
by localpct
Fri Sep 17, 2021 7:00 pm
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

appreciate the fwp and you're willingness to walk through this with me

looks like this is my key
for($item = $inbox.Items.Count; $item -ge 1; $item--) {
$inbox.Items.Item($item).Delete()
}

really do appreciate you.
by localpct
Fri Sep 17, 2021 2:19 pm
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

AFter re reading and thinking about this. I do understand what you're saying so I moved the script to something like this $Ol = New-Object -comobject Outlook.Application $namespace = $Ol.GetNameSpace("MAPI") $Folder = $namespace.Folders.Item('some@email.com').Folders.Item('REPORTS') $Folder.Items | ...
by localpct
Tue Sep 07, 2021 7:59 am
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

I dont understand all of what you're saying. Sorry.
by localpct
Tue Sep 07, 2021 6:47 am
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

Discovered I needed to add in a start-sleep for some reason our exchange couldn't handle it lol
by localpct
Tue Aug 31, 2021 7:16 am
Forum: PowerShell GUIs
Topic: Remote Training Needed
Replies: 2
Views: 3056

Re: Remote Training Needed

I think he was promoting a service. I could be wrong, but it seems that way.
by localpct
Fri Aug 27, 2021 2:44 pm
Forum: PowerShell
Topic: Outlook COM Mark email as read
Replies: 19
Views: 9031

Re: Outlook COM Mark email as read

$inbox.Items | ForEach-Object {$_.UnRead = $false}