Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-M365DSCReportFromConfiguration Asking to Update, even on latest version #4618

Open
dbroussa opened this issue Apr 29, 2024 · 0 comments
Open

Comments

@dbroussa
Copy link

Description of the issue

Executing New-M365ReportFromConfiguration against a config file I generated using 1.24.417.1 I got an error that said:

There is a newer version of the 'Microsoft365DSC' module available on the gallery. To update the module and it's dependencies, run the following command: Update-M365DSCModule

I ran Update-M365DSCModule and eventually got it only have 1.24.424.1 installed, but I still get the same error when I execute the New-M365ReportFromConfiguration cmdlet

Microsoft 365 DSC Version

1.24.424.1

Which workloads are affected

Office 365 Admin, OneDrive for Business, Planner, Power Platform, Security & Compliance Center, SharePoint Online, Teams

The DSC configuration

# Generated with Microsoft365DSC version 1.24.417.1
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
    [parameter()]
    [System.Management.Automation.PSCredential]
    $Credential
)

Configuration M365TenantConfig
{
    param (
        [parameter()]
        [System.Management.Automation.PSCredential]
        $Credential

        [parameter()]
        [System.Management.Automation.PSCredential]
        $Credential
    )

    if ($null -eq $Credential)
    {
        <# Credentials #>
        $Credscredential = Get-Credential -Message "Credentials"

    }
    else
    {
        $CredsCredential = $Credential
    }

    $OrganizationName = $CredsCredential.UserName.Split('@')[1]

    if ($null -eq $Credential)
    {
        <# Credentials #>
    }
    else
    {
        $CredsCredential = $Credential
    }

    $OrganizationName = $CredsCredential.UserName.Split('@')[1]

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.24.417.1'

    Node localhost
    {
        O365OrgCustomizationSetting "O365OrgCustomizationSetting"
        {
            Credential           = $Credscredential;
            Ensure               = "Present";
            IsSingleInstance     = "Yes";
            TenantId             = "[tenant].onmicrosoft.com";
        }
        O365OrgSettings "O365OrgSettings"
        {
            AdminCenterReportDisplayConcealedNames                = $False;
            AppsAndServicesIsAppAndServicesTrialEnabled           = $False;
            AppsAndServicesIsOfficeStoreEnabled                   = $False;
            CortanaEnabled                                        = $True;
            Credential                                            = $Credscredential;
            DynamicsCustomerVoiceIsInOrgFormsPhishingScanEnabled  = $True;
            DynamicsCustomerVoiceIsRecordIdentityByDefaultEnabled = $True;
            DynamicsCustomerVoiceIsRestrictedSurveyAccessEnabled  = $False;
            FormsIsBingImageSearchEnabled                         = $True;
            FormsIsExternalSendFormEnabled                        = $True;
            FormsIsExternalShareCollaborationEnabled              = $True;
            FormsIsExternalShareResultEnabled                     = $True;
            FormsIsExternalShareTemplateEnabled                   = $True;
            FormsIsInOrgFormsPhishingScanEnabled                  = $True;
            FormsIsRecordIdentityByDefaultEnabled                 = $True;
            InstallationOptionsAppsForMac                         = @("isSkypeForBusinessEnabled","isMicrosoft365AppsEnabled");
            InstallationOptionsAppsForWindows                     = @("isVisioEnabled","isSkypeForBusinessEnabled","isProjectEnabled","isMicrosoft365AppsEnabled");
            InstallationOptionsUpdateChannel                      = "current";
            IsSingleInstance                                      = "Yes";
            M365WebEnableUsersToOpenFilesFrom3PStorage            = $True;
            PlannerAllowCalendarSharing                           = $True;
            TenantId                                              = "[tenant].onmicrosoft.com";
            ToDoIsExternalJoinEnabled                             = $True;
            ToDoIsExternalShareEnabled                            = $False;
            ToDoIsPushNotificationEnabled                         = $True;
            VivaInsightsDigestEmail                               = $True;
            VivaInsightsOutlookAddInAndInlineSuggestions          = $True;
            VivaInsightsScheduleSendSuggestions                   = $True;
            VivaInsightsWebExperience                             = $True;
        }
        O365SearchAndIntelligenceConfigurations "O365SearchAndIntelligenceConfigurations"
        {
            Credential                          = $Credscredential;
            IsSingleInstance                    = "Yes";
            ItemInsightsIsEnabledInOrganization = $True;
        }
[removed for length]
        TeamsWorkloadPolicy "TeamsWorkloadPolicy-Global"
        {
            AllowCalling         = $True;
            AllowCallingPinned   = $True;
            AllowMeeting         = $True;
            AllowMeetingPinned   = $True;
            AllowMessaging       = $True;
            AllowMessagingPinned = $True;
            Credential           = $Credscredential;
            Ensure               = "Present";
            Identity             = "Global";
            TenantId             = "[tenant].onmicrosoft.com";
        }
    }
}

M365TenantConfig -ConfigurationData .\ConfigurationData.psd1 -Credential $Credential

Verbose logs showing the problem

PS C:\users\david\OneDrive - Cambay Consulting LLC\Downloads\UHNJ> New-M365DSCReportFromConfiguration -ConfigurationPath 'c:\tmp\M365TenantConfig.ps1' -OutputPath 'c:\tmp\uhnj.html' -type 'HTML' -Verbose > c:\tmp\dsc.txt
VERBOSE: Loading file 'c:\tmp\M365TenantConfig.ps1'
PS C:\users\david\OneDrive - Cambay Consulting LLC\Downloads\UHNJ>

I exported the logs using the Export-M365DSCDiagnosticData but it didbn't have any content.

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Home
OsOperatingSystemSKU : WindowsHome
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Key   : PSVersion
Value : 5.1.22621.2506
Name  : PSVersion

Key   : PSEdition
Value : Desktop
Name  : PSEdition

Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0...}
Name  : PSCompatibleVersions

Key   : BuildVersion
Value : 10.0.22621.2506
Name  : BuildVersion

Key   : CLRVersion
Value : 4.0.30319.42000
Name  : CLRVersion

Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion

Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant