Why I am not able to export tenant configuration via M365DSC PowerShell cmdlets?

Vinod Survase 4,781 Reputation points
2023-02-03T08:56:50.07+00:00

Why I am not able to export tenant configuration via M365DSC PowerShell cmdlets?

I have run all required cmdlets but still its not exporting completely and showing partially exported.

Import-module Microsoft365DSC

Export-M365DSCConfiguration

I am getting below message on PowerShell

PS C:\Users\username> Export-M365DSCConfiguration

cmdlet Get-Credential at command pipeline position 1

Supply values for the following parameters:

Exporting Microsoft 365 configuration for Mode: Default

Authentication methods specified:

  • Credentials

The term 'Save-Credentials' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was includ

ed, verify that the path is correct and try again.

Partial Export file was saved at: C:\Users\username\AppData\Local\Temp\xxxxxxx-xxxx-xxx67-cxxxxb7-xxxxxxxab3.partial.ps1

Microsoft Teams | Development
Microsoft Security | Intune | Configuration Manager | Other
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Ruud Gijsbers Rademakers 551 Reputation points
    2023-02-03T13:16:25.95+00:00

    Hi Vinod,

    I suggest to browse to https://export.microsoft365dsc.com There you can select which workloads you would like to export and select the authentication method you would like to use.

    Make sure you read through the prerequisites section of the documentation: https://microsoft365dsc.com/user-guide/get-started/prerequisites/

    Let me know if you have some additional questions.

    Regards,

    Ruud

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Y P 5 Reputation points
    2023-09-05T03:43:11.6833333+00:00

    Hi Vinod,

    Once I updated the module and dependencies, it ran successfully.

    I used the commands below:

    Update-Module Microsoft365DSC

    Update-M365DSCDependencies

    Cheers,

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.