Possible to Build a DSC Package for O365 Apps for Enterprise?

Life-Assist Helpdesk 1 Reputation point
2021-02-22T19:00:06.823+00:00

Hello,

I have recently been learning how to use DSC to deploy and monitor various softwares, settings, logging, etc... However, when I try to deploy Office365 en proplus (365 Apps for Enterprise) Start-DscConfiguration throws an exception on the ProductId attribute:

PowerShell DSC resource MSFT_PackageResource  failed to execute Set-TargetResource functionality with error message: 

Package from (PATH REDACTED) was installed, but the specified ProductId 

and/or Name does not match package details 

    + CategoryInfo          : InvalidOperation: (:) [], CimException

    + FullyQualifiedErrorId : ProviderOperationExecutionFailure

    + PSComputerName        : REDACTED

Here is the configuration I have built:

Configuration OfficeInstallTest{

    Import-DscResource –ModuleName "PSDesiredStateConfiguration"

    [string]$NetworkPath = "PATH REDACTED"



    Node $env:ComputerName{

        Package Office365{

            Ensure = "Present"

            Name = "Microsoft 365 Apps for enterprise - en-us"

            Path = "$($NetworkPath)\Office.exe"

            ProductId = "90160000-008C-0409-1000-0000000FF1CE"

            Arguments = "/configure $($NetworkPath)\Configuration.xml"

        }

    }

}



OfficeInstallTest -OutputPath "c:\DSC\OfficeInstallTest"

I'm pretty new at this and any help would be greatly appreciated. I am using an Office Deployment Configuration Tool generated .exe specific to my organization for the Office install.

Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
421 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaowei He 9,871 Reputation points
    2021-02-24T08:09:51.25+00:00

    Hi,

    It seems your issue is Office related, you may try to aks on Office forum, check if you will get better help.

    https://learn.microsoft.com/en-us/answers/topics/office-itpro.html

    Best Regards,
    Anne

    0 comments No comments