![]() $Contact.Move($tempFolder) | foreach-object | Out-Null $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 Here is a script that I'm working with but still need to figure out how to get the duplicate contacts based on creation date and then delete them. ![]() ![]() I'm not coming across anything with my google-fu and am looking to see if anyone here has done anything similar. I'm trying to find a way to script this cleanup where I can run the script to get the endpoints outlook contacts and if it finds any duplicates with a creation date of mm/dd/yyyy then delete that contact. My company is running exchange 2019 and due to an error from a CRM upgrade all my users now have duplicate contacts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |