[3/28/2023 1:54:33 PM] - END start-sleepProgess
[3/28/2023 1:54:33 PM] - ****
Write-ErrorMessage : Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'd2fed596-8883-4d3c-8df6-9a283286c4e4' couldn't be found on 'DB6PR06A001DC06.EURPR06A001.prod.outlook.com'. At C:\Users\test\AppData\Local\Temp\2\tmpEXO_jzwkrfob.men\tmpEXO_jzwkrfob.men.psm1:1121 char:13 + Write-ErrorMessage $ErrorObject + ~~~~~~~
FullyQualifiedErrorId : [Server=AM6PR06MB5795,RequestId=743c1f34-d44f-96cd-be48-d1e62eca1517,TimeStamp=Tue, 28 M
ar 2023 13:54:33 GMT],Write-ErrorMessage
[3/28/2023 1:54:33 PM] - END TEST-CLOUDDLPRESENT
Line : 86
} while (get-o365Recipient -identity $groupSMTPAddress)
Please Replace with
} while (get-o365Recipient -identity $groupSMTPAddress -ErrorAction SilentlyContinue)
Script: test-CloudDLPresent
[3/28/2023 1:54:33 PM] - END start-sleepProgess [3/28/2023 1:54:33 PM] - **** Write-ErrorMessage : Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'd2fed596-8883-4d3c-8df6-9a283286c4e4' couldn't be found on 'DB6PR06A001DC06.EURPR06A001.prod.outlook.com'. At C:\Users\test\AppData\Local\Temp\2\tmpEXO_jzwkrfob.men\tmpEXO_jzwkrfob.men.psm1:1121 char:13 + Write-ErrorMessage $ErrorObject +
~~~~~~~[3/28/2023 1:54:33 PM] - END TEST-CLOUDDLPRESENT
Line : 86
} while (get-o365Recipient -identity $groupSMTPAddress)
Please Replace with
} while (get-o365Recipient -identity $groupSMTPAddress -ErrorAction SilentlyContinue)