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

Vinod Survase 4,706 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
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,164 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,735 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,892 questions
Microsoft Configuration Manager
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 0 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,

    0 comments No comments