PS C:\Windows\system32> $m圜ontacts = $olSession.GetDefaultFolder($contactsFolder).Items PS C:\Windows\system32> $tempFolderName = 'temp_folder_' (get-date -Format ddmmyyyhhmmss) PS C:\Windows\system32> $contactsFolder = 10 PS C:\Windows\system32> $olSession.Logon('Outlook') #Outlook is the profile name PS C:\Windows\system32> $olSession = (New-Object -ComObject Outlook.Application).Session $Contact.Move($tempFolder) | foreach-object Ĭopyright (C) 2009 Microsoft Corporation. $uniqueContacts = $m圜ontacts | Sort FullName -Unique $tempFolder = $olSession.GetDefaultFolder($contactsFolder).Folders.Add($tempFolderName) $m圜ontacts = $olSession.GetDefaultFolder($contactsFolder).Items $tempFolderName = 'temp_folder_' (get-date -Format ddmmyyyhhmmss) $olSession.Logon('Outlook') #Outlook is the profile name $olSession = (New-Object -ComObject Outlook.Application).Session # Remove Duplicate Outlook Contacts by Jean Louw # Just looking for some input, or ideas, as to why this bombs-out at. I'm no Powershell expert, nor do I claim to be proficient with it, so I'm stumbling my way through this. I have had success with this script, however, recently started getting errors. So I have this script I've been using to find/delete duplicate Outlook contacts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |