Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.24k stars 214 forks source link

HasCloudMX function incorrectly returns True #29

Closed maxgrim closed 2 years ago

maxgrim commented 2 years ago

The HasCloudMX function should check whether the "*.mail.protection.outlook.com" MX record exists. However, in case this record does not exist, "False" is returned. When .Count is taken from this result this returns 1, which is greater than 0 and returns the whole function as True.

afbeelding afbeelding
maxgrim commented 2 years ago

https://github.com/Gerenios/AADInternals/pull/30

NestoriSyynimaa commented 2 years ago

Thanks for reporting and PR!