Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Extracting [EXOAcceptedDomain]...Add-M365DSCTelemetryEvent - 1.21.217.1

Open mimachniak opened this issue 5 years ago • 5 comments

Details of the scenario you tried and the problem that is occurring

Hi team whne I try to export configuration of exchange it stops with issue about null data int Powershell 7.3 in 5.1. just hang.

Verbose logs showing the problem

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

Add-M365DSCTelemetryEvent: C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.21.217.1\modules\M365DSCUtil.psm1:849                                                                                                                   Line |
 849 |      Add-M365DSCTelemetryEvent -Data $data
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

[INFO] You can perform an equivalent unattended Export operation by running the following command:
Export-M365DSCConfiguration -Quiet -ComponentsToExtract @('EXOAcceptedDomain','EXOActiveSyncDeviceAccessRule','EXOAddressBookPolicy','EXOAddressList','EXOAntiPhishPolicy','EXOAntiPhishRule','EXOApplicationAccessPolicy','EXOAtpPolicyForO365','EXOAvailabilityAddressSpace','EXOAvailabilityConfig','EXOCASMailboxPlan','EXOClientAccessRule','EXODkimSigningConfig','EXOEmailAddressPolicy','EXOGlobalAddressList','EXOHostedConnectionFilterPolicy','EXOHostedContentFilterPolicy','EXOHostedContentFilterRule','EXOHostedOutboundSpamFilterPolicy','EXOInboundConnector','EXOIntraOrganizationConnector','EXOMailboxSettings','EXOMailTips','EXOMalwareFilterPolicy','EXOMalwareFilterRule','EXOManagementRole','EXOMobileDeviceMailboxPolicy','EXOOfflineAddressBook','EXOOnPremisesOrganization','EXOOrganizationConfig','EXOOrganizationRelationship','EXOOutboundConnector','EXOOwaMailboxPolicy','EXOPartnerApplication','EXOPolicyTipConfig','EXORemoteDomain','EXORoleAssignmentPolicy','EXOSafeAttachmentPolicy','EXOSafeAttachmentRule','EXOSafeLinksPolicy','EXOSafeLinksRule','EXOSharedMailbox','EXOSharingPolicy') -GlobalAdminAccount (Get-Credential)
[1/43] Extracting [EXOAcceptedDomain]...Add-M365DSCTelemetryEvent: C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.21.217.1\DSCResources\MSFT_EXOAcceptedDomain\MSFT_EXOAcceptedDomain.psm1:373
Line |
 373 |      Add-M365DSCTelemetryEvent -Data $data
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

The operating system the target node is running

OsName : Microsoft Windows 10 Pro OsOperatingSystemSKU : 48 OsArchitecture : 64-bit WindowsVersion : 2009 WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406 OsLanguage : en-US OsMuiLanguages : {en-US, de-DE, es-ES, fi-FI…}

Version of the DSC module that was used ('dev' if using current dev branch)


Microsoft365DSC\1.21.217.1

mimachniak avatar Apr 21 '21 18:04 mimachniak

Hi Michal,

Can you try the latest version of the module (1.21.421.2). There are some changes to the telemetry section in the last build.

RuudGijsbers avatar Apr 25 '21 21:04 RuudGijsbers

I tryed and error is the same

mimachniak avatar Apr 25 '21 22:04 mimachniak

@mimachniak only PowerShell 5.1 is supported at the moment since most of the underlying dependencies (e.g. Security and compliance, Skype for Business, etc.) do not support .NET Core. If 5.1 Hangs, it is probably related to the known GUI issue. Can you please try the following:

In PowerShell 5.1:

$creds = Get-Credential Export-M365DSCConfiguration -Quiet -GlobalAdminAccount $creds

NikCharlebois avatar Apr 26 '21 11:04 NikCharlebois

is working

mimachniak avatar May 10 '21 19:05 mimachniak

Good to hear. Thanks

NikCharlebois avatar May 10 '21 20:05 NikCharlebois