Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Error running initial export command

Open pvinn opened this issue 5 years ago • 10 comments

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

'Export-M365DSCConfiguration: Export command fails with error ' Installed new Powershell 7.1.1 Ran Install-Module Microsoft365DSC -Force -AllowClobber Ran Install-M365DSCDevBranch

Receiving error below .. PowerShell 7.1.1 Copyright (c) Microsoft Corporation.

https://aka.ms/powershell Type 'help' to get help.

PS C:\Program Files\PowerShell\7> Export-M365DSCConfiguration WARNING: The names of some imported commands from the module 'Microsoft.PowerApps.Administration.PowerShell' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. Add-M365DSCTelemetryEvent: C:\Users\adm-pnaccarato\Documents\PowerShell\Modules\Microsoft365DSC\1.21.120.1\modules\M365DSCUtil.psm1:849 Line | 849 | Add-M365DSCTelemetryEvent -Data $data | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | You cannot call a method on a null-valued expression.

Verbose logs showing the problem

N/A

Suggested solution to the issue

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

N/A

The operating system the target node is running

OsName : Microsoft Windows 10 Enterprise OsOperatingSystemSKU : EnterpriseEdition OsArchitecture : 64-bit WindowsVersion : 1809 WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434 OsLanguage : en-US OsMuiLanguages : {en-US}