M365Advisor

2.0.2

M365Advisor is an automation framework to assess and monitor your Microsoft 365 security configuration.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name M365Advisor

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name M365Advisor

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

M365Advisor Team. All rights reserved.

Package Details

Author(s)

  • M365Advisor Team

Tags

Microsoft 365 Cloud Test Pester Entra AzureAD Automation Regression DevOps EntraID

Functions

Add-MtTestResultDetail Test-MtCis365PublicGroup Test-MtCisAdminConsentWorkflowEnabled Test-MtCisAttachmentFilter Test-MtCisAttachmentFilterComprehensive Test-MtCisAuditLogSearch Test-MtCisCalendarSharing Test-MtCisCloudAdmin Test-MtCisCommunicateInitiateExternalTeamsUsers Test-MtCisCommunicateWithUnmanagedTeamsUsers Test-MtCisConnectionFilterSafeList Test-MtCisCreateTenantDisallowed Test-MtCisCustomerLockBox Test-MtCisDevicesWithoutCompliancePolicyMarked Test-MtCisDkim Test-MtCisEnsureGuestAccessRestricted Test-MtCisEnsureGuestUserDynamicGroup Test-MtCisEnsureUserConsentToAppsDisallowed Test-MtCisExoAdditionalStorageProvider Test-MtCisFormsPhishingProtectionEnabled Test-MtCisGlobalAdminCount Test-MtCisHostedConnectionFilterPolicy Test-MtCisInternalMalwareNotification Test-MtCisOutboundSpamFilterPolicy Test-MtCisPasswordExpiry Test-MtCisSafeAntiPhishingPolicy Test-MtCisSafeAttachment Test-MtCisSafeAttachmentsAtpPolicy Test-MtCisSafeLink Test-MtCisSharedMailboxSignIn Test-MtCisSpoB2BIntegration Test-MtCisSpoDefaultSharingLink Test-MtCisSpoDefaultSharingLinkPermission Test-MtCisSpoGuestAccessExpiry Test-MtCisSpoGuestCannotShareUnownedItem Test-MtCisSpoPreventDownloadMaliciousFile Test-MtCisTeamsLobbyBypass Test-MtCisTeamsReportSecurityConcerns Test-MtCisThirdPartyAndCustomApps Test-MtCisThirdPartyApplicationsDisallowed Test-MtCisThirdPartyFileSharing Test-MtCisThirdPartyStorageServicesRestricted Test-MtCisUserOwnedAppsRestricted Test-MtCisWeakAuthenticationMethodsDisabled Test-MtCisZAP Test-MtCisaActivationNotification Test-MtCisaAppAdminConsent Test-MtCisaAppGroupOwnerConsent Test-MtCisaAppRegistration Test-MtCisaAppUserConsent Test-MtCisaAssignmentNotification Test-MtCisaAuthenticatorContext Test-MtCisaBlockHighRiskSignIn Test-MtCisaBlockHighRiskUser Test-MtCisaBlockLegacyAuth Test-MtCisaCloudGlobalAdmin Test-MtCisaCrossTenantInboundDefault Test-MtCisaDiagnosticSettings Test-MtCisaGlobalAdminCount Test-MtCisaGlobalAdminRatio Test-MtCisaGuestInvitation Test-MtCisaGuestUserAccess Test-MtCisaManagedDevice Test-MtCisaManagedDeviceRegistration Test-MtCisaMethodsMigration Test-MtCisaMfa Test-MtCisaNotifyHighRisk Test-MtCisaPasswordExpiration Test-MtCisaPermanentRoleAssignment Test-MtCisaPhishResistant Test-MtCisaPrivilegedPhishResistant Test-MtCisaRequireActivationApproval Test-MtCisaUnmanagedRoleAssignment Test-MtCisaWeakFactor ConvertFrom-MailAuthenticationRecordDkim ConvertFrom-MailAuthenticationRecordDmarc ConvertFrom-MailAuthenticationRecordMx ConvertFrom-MailAuthenticationRecordSpf Get-MailAuthenticationRecord Get-MtExo Get-MtExoThreatPolicyMalware Resolve-SPFRecord Test-MtCisaAntiSpamAllowList Test-MtCisaAntiSpamSafeList Test-MtCisaAttachmentFileType Test-MtCisaAttachmentFilter Test-MtCisaAuditLog Test-MtCisaAuditLogPremium Test-MtCisaAuditLogRetention Test-MtCisaAutoExternalForwarding Test-MtCisaBlockExecutable Test-MtCisaCalendarSharing Test-MtCisaContactSharing Test-MtCisaDkim Test-MtCisaDlp Test-MtCisaDlpAlternate Test-MtCisaDlpBaselineRule Test-MtCisaDlpPii Test-MtCisaDmarcAggregateCisa Test-MtCisaDmarcRecordExist Test-MtCisaDmarcRecordReject Test-MtCisaDmarcReport Test-MtCisaEmailFilterAlternative Test-MtCisaExoAlert Test-MtCisaExoAlertSiem Test-MtCisaExternalSenderWarning Test-MtCisaImpersonation Test-MtCisaImpersonationTip Test-MtCisaMailboxAuditing Test-MtCisaMailboxIntelligence Test-MtCisaMalwareAction Test-MtCisaMalwareZap Test-MtCisaSafeLink Test-MtCisaSafeLinkClickTracking Test-MtCisaSafeLinkDownloadScan Test-MtCisaSmtpAuthentication Test-MtCisaSpamAction Test-MtCisaSpamAlternative Test-MtCisaSpamBypass Test-MtCisaSpamFilter Test-MtCisaSpfDirective Test-MtCisaSpfRestriction Test-MtCisaSpoSharing Test-MtCisaSpoSharingAllowedDomain Clear-MtDnsCache Clear-MtExoCache Clear-MtGraphCache Compare-MtTestResult Connect-M365Advisor Add-MtM365AdvisorAppFederatedCredential Convert-MtResultsToFlatObject Get-MtAdminPortalUrl Get-MtHtmlReport Get-MtM365AdvisorApp Get-MtSafeMarkdown Get-MtSession Import-MtM365AdvisorResult Install-M365AdvisorTests Invoke-MtAzureRequest Invoke-MtAzureResourceGraphRequest Merge-MtM365AdvisorResult New-MtM365AdvisorApp Test-MtConnection Update-M365AdvisorTests Update-MtM365AdvisorApp Disconnect-M365Advisor Test-MtEidscaControl Get-MtAuthenticationMethodPolicyConfig Get-MtConditionalAccessPolicy Get-MtGraphScope Get-MtGroupMember Get-MtLicenseInformation Get-MtRegistrableDomain Get-MtRole Get-MtRoleMember Get-MtSpo Get-MtTestInventory Get-MtUser Get-MtUserAuthenticationMethod Get-MtUserAuthenticationMethodInfoByType Invoke-M365Advisor Invoke-MtGraphRequest Invoke-MtGraphSecurityQuery Test-MtAIAgentAuthorAuthentication Test-MtAIAgentBroadSharing Test-MtAIAgentDormant Test-MtAIAgentEmailExfiltration Test-MtAIAgentHardCodedCredentials Test-MtAIAgentMcpTools Test-MtAIAgentMissingInstructions Test-MtAIAgentNoAuthentication Test-MtAIAgentOrphaned Test-MtAIAgentRiskyHttpConfig Get-MtAzureManagementGroup Test-MtManagementGroupWriteRequirement Test-MtUserAccessAdmin Test-MtVaultSoftDelete Test-AzdoAllowExtensionsLocalNetworkAccess Test-AzdoAllowRequestAccessToken Test-AzdoAllowTeamAdminsInvitationsAccessToken Test-AzdoArtifactsExternalPackageProtectionToken Test-AzdoAuditStream Test-AzdoDisableGlobalPATCreation Test-AzdoDisablePATCreation Test-AzdoEnableLeakedPersonalAccessTokenAutoRevocation Test-AzdoEnforceAADConditionalAccess Test-AzdoExternalGuestAccess Test-AzdoFeedbackCollection Test-AzdoLogAuditEvent Test-AzdoOrganizationAutomaticEnrollmentAdvancedSecurityNewProject Test-AzdoOrganizationBadgesArePrivate Test-AzdoOrganizationCreationClassicBuildPipeline Test-AzdoOrganizationCreationClassicReleasePipeline Test-AzdoOrganizationCreationRestriction Test-AzdoOrganizationLimitJobAuthorizationScopeNonReleasePipeline Test-AzdoOrganizationLimitJobAuthorizationScopeReleasePipeline Test-AzdoOrganizationLimitVariablesAtQueueTime Test-AzdoOrganizationOwner Test-AzdoOrganizationProtectAccessToRepository Test-AzdoOrganizationRepositorySettingsDisableCreationTFVCRepo Test-AzdoOrganizationRepositorySettingsGravatarImage Test-AzdoOrganizationStageChooser Test-AzdoOrganizationStorageUsage Test-AzdoOrganizationTaskRestrictionsDisableMarketplaceTask Test-AzdoOrganizationTaskRestrictionsDisableNode6Task Test-AzdoOrganizationTaskRestrictionsShellTaskArgumentValidation Test-AzdoOrganizationTriggerPullRequestGitHubRepository Test-AzdoProjectCollectionAdministrator Test-AzdoPublicProject Test-AzdoResourceUsageProject Test-AzdoResourceUsageWorkItemTag Test-AzdoRestrictFullScopePersonalAccessToken Test-AzdoRestrictPersonalAccessTokenLifespan Test-AzdoSSHAuthentication Test-AzdoThirdPartyAccessViaOauth Test-AzdoValidateSshKeyExpiration Test-MtMdeArchiveScanning Test-MtMdeBehaviorMonitoring Test-MtMdeCatchupFullScan Test-MtMdeCatchupQuickScan Test-MtMdeCloudBlockLevel Test-MtMdeCloudExtendedTimeout Test-MtMdeCloudProtection Test-MtMdeCpuLoadFactor Test-MtMdeDisableLocalAdminMerge Test-MtMdeEmailScanning Test-MtMdeMappedDriveScanning Test-MtMdeNetworkFileScanning Test-MtMdeNetworkProtection Test-MtMdePuaProtection Test-MtMdeQuickScanTime Test-MtMdeRealtimeMonitoring Test-MtMdeRealtimeScanDirection Test-MtMdeRemovableDriveScanning Test-MtMdeRetainCleanedMalware Test-MtMdeScheduleScanDay Test-MtMdeScriptScanning Test-MtMdeSignatureBeforeScan Test-MtMdeSignatureUpdateInterval Test-MtMdeSubmitSamplesConsent Compare-MtJsonObject Test-MtAppManagementPolicyEnabled Test-MtAppRegistrationOwnersWithoutMFA Test-MtAppRegistrationsWithSecrets Test-MtAuthenticationPolicyReferencedObjectsExist Test-MtCaAgentRiskBlockPolicy Test-MtCaAllAppsExists Test-MtCaApplicationEnforcedRestriction Test-MtCaApprovedClientApp Test-MtCaAzureDevOps Test-MtCaBlockLegacyExchangeActiveSyncAuthentication Test-MtCaBlockLegacyOtherAuthentication Test-MtCaBlockUnknownOrUnsupportedDevicePlatform Test-MtCaDeviceCodeFlow Test-MtCaDeviceComplianceAdminsExists Test-MtCaDeviceComplianceExists Test-MtCaEmergencyAccessExists Test-MtCaEnforceNonPersistentBrowserSession Test-MtCaEnforceSignInFrequency Test-MtCaExclusionForDirectorySyncAccount Test-MtCaGap Test-MtCaGroupsRestricted Test-MtCaLicenseUtilization Test-MtCaMfaForAdmin Test-MtCaMfaForAdminManagement Test-MtCaMfaForAllUsers Test-MtCaMfaForGuest Test-MtCaMfaForRiskySignIn Test-MtCaMisconfiguredIDProtection Test-MtCaReferencedGroupsExist Test-MtCaReferencedObjectsExist Test-MtCaRequirePasswordChangeForHighUserRisk Test-MtCaSecureSecurityInfoRegistration Test-MtCaWIFBlockLegacyAuthentication Test-MtConditionalAccessWhatIf Test-MtDeviceRegistrationLocalAdminsGlobalAdmin Test-MtDeviceRegistrationLocalAdminsRegisteringUser Test-MtDeviceRegistrationMfaConflict Test-MtDomainsDmarcRecordMaturity Test-MtEntitlementManagementDeletedGroups Test-MtEntitlementManagementInactivePolicies Test-MtEntitlementManagementOrphanedResources Test-MtEntitlementManagementValidApprovers Test-MtEntitlementManagementValidResourceRoles Test-MtEntraDeviceJoinRestricted Test-MtEntraIDConnectSsso Test-MtEntraIDConnectSyncSoftHardMatching Test-MtGroupCreationRestricted Test-MtHighRiskAppPermissions Test-MtKrbtgtAzureADNotSynced Test-MtPimAlertsExists Test-MtPrivPermanentDirectoryRole Test-MtSecurityGroupCreationRestricted Test-MtServicePrincipalsForAllUsers Test-MtSpExchangeAppAccessPolicy Test-MtTenantCreationRestricted Test-MtExoDelicensingResiliency Test-MtExoMailTip Test-MtExoModernAuth Test-MtExoMoeraMailActivity Test-MtExoOutlookAddin Test-MtExoRejectDirectSend Test-MtExoSetScl Test-MtLimitOnMicrosoftDomainUsage Test-MtAndroidEnterpriseConnection Test-MtAppleAutomatedDeviceEnrollmentToken Test-MtApplePushNotificationCertificate Test-MtAppleVolumePurchaseProgramToken Test-MtBitLockerFullDiskEncryption Test-MtCertificateConnectors Test-MtDeviceComplianceSettings Test-MtFeatureUpdatePolicy Test-MtIntuneAppControl Test-MtIntuneASRRules Test-MtIntuneDiagnosticSettings Test-MtIntuneLAPSConfiguration Test-MtIntuneManagedInstallerRules Test-MtIntuneRbacGroupsProtected Test-MtManagedDeviceCleanupSettings Test-MtMdmAuthority Test-MtMobileThreatDefenseConnectors Test-MtOperationApprovalPolicies Test-MtTenantCustomization Test-MtWindowsDataProcessor Test-MtTeamsRestrictParticipantGiveRequestControl Test-ORCA100 Test-ORCA101 Test-ORCA102 Test-ORCA103 Test-ORCA104 Test-ORCA105 Test-ORCA106 Test-ORCA107 Test-ORCA108_1 Test-ORCA108 Test-ORCA109 Test-ORCA110 Test-ORCA111 Test-ORCA112 Test-ORCA113 Test-ORCA114 Test-ORCA115 Test-ORCA116 Test-ORCA118_1 Test-ORCA118_2 Test-ORCA118_3 Test-ORCA118_4 Test-ORCA119 Test-ORCA120_malware Test-ORCA120_phish Test-ORCA120_spam Test-ORCA121 Test-ORCA123 Test-ORCA124 Test-ORCA139 Test-ORCA140 Test-ORCA141 Test-ORCA142 Test-ORCA143 Test-ORCA156 Test-ORCA158 Test-ORCA179 Test-ORCA180 Test-ORCA189_2 Test-ORCA189 Test-ORCA205 Test-ORCA220 Test-ORCA221 Test-ORCA222 Test-ORCA223 Test-ORCA224 Test-ORCA225 Test-ORCA226 Test-ORCA227 Test-ORCA228 Test-ORCA229 Test-ORCA230 Test-ORCA231 Test-ORCA232 Test-ORCA233_1 Test-ORCA233 Test-ORCA234 Test-ORCA235 Test-ORCA236 Test-ORCA237 Test-ORCA238 Test-ORCA239 Test-ORCA240 Test-ORCA241 Test-ORCA242 Test-ORCA243 Test-ORCA244 Send-MtMail Send-MtTeamsMessage Test-MtXspmAppRegWithPrivilegedApiAndOwners Test-MtXspmAppRegWithPrivilegedRolesAndOwners Test-MtXspmAppRegWithPrivilegedUnusedPermissions Test-MtXspmCriticalCredentialsOnNonCredGuardProtectedDevices Test-MtXspmCriticalCredentialsOnNonTpmProtectedDevices Test-MtXspmCriticalCredsOnDevicesWithNonCriticalAccounts Test-MtXspmEnabledPrivilegedUsersLinkedToDisabledIdentity Test-MtXspmExposedCredentialsForPrivilegedUsers Test-MtXspmHybridUsersWithAssignedEntraIdRoles Test-MtXspmPendingApprovalCriticalAssetManagement Test-MtXspmPrivilegedUsersLinkedToIdentity Test-MtXspmPublicRemotelyExploitableHighExposureDevices

PSEditions

Core Desktop

Dependencies

Release Notes

https://github.com/m365advisor365/m365advisor/releases

FileList

Version History

Version Downloads Last updated
2.0.2 (current version) 13 7/2/2026
2.0.1 11 7/2/2026
2.0.0 14 7/1/2026