![]() ![]() paste the code into the reddit text box.add the leading line with only 4 spaces.less simple = use reddit code formatting. Please remember to set the file/code type on Pastebin! otherwise you don't get the nice code colorization. simplest = post it to a text site like or and then post the link here. that's the upper left key on an EN-US keyboard layout. Reddit likes to mangle code formatting, so here's some help on how to post code on reddit. $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. ![]() Research Triangle Powershell User Group remote-capable. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |