DSCResources/MSFT_xPackageResource/Examples/Sample2.ps1
param ( [String]$OutputPath = "." ) Configuration Sample { Import-DscResource -Module xPSDesiredStateConfiguration xPackage t1 { Ensure="Present" Name = "Application Verifier (x64)"; Path = "\\products\public\PRODUCTS\Applications\User\ApplicationVerifier\ApplicationVerifier.amd64.msi" ProductId = "{DE35C574-79E7-497D-A303-62A5C60A131E}" } } # Create the MOF file using the configuration data Sample -OutputPath $OutputPath # Execute the installation of the package Start-DscConfiguration -Path $outputPath\Sample -Verbose -Wait |