Hi,
It seems your issue is Office related, you may try to aks on Office forum, check if you will get better help.
https://video2.skills-academy.com/en-us/answers/topics/office-itpro.html
Best Regards,
Anne
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Hi,
It seems your issue is Office related, you may try to aks on Office forum, check if you will get better help.
https://video2.skills-academy.com/en-us/answers/topics/office-itpro.html
Best Regards,
Anne