question

31585653 avatar image
0 Votes"
31585653 asked XiaoweiHe-MSFT answered

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

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-powershellwindows-server-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for your post! We are doing research on this post, if we get any updates, we'll feedback as soon as possible.

Best Regards,
Anne

0 Votes 0 ·

1 Answer

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered

Hi,

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

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

Best Regards,
Anne

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.