DSCResources/MSFT_xPackageResource/Examples/Sample1.ps1

param
(
    [String]$OutputPath = "."
)

Configuration Sample
{
    Import-DscResource -Module xPSDesiredStateConfiguration

    xPackage t1
    {
        Ensure="Present"
        Name = "Debugging Tools for Windows (x86)";
        Path = "\\PRODUCTS\PUBLIC\products\Developers\Debugging Tools for Windows\x86\setup_x86.exe"
        ProductId = ""
    }
}

# Create the MOF file using the configuration data
Sample -OutputPath $OutputPath

# Execute the installation of the package
Start-DscConfiguration -Path $outputPath\Sample -Verbose -Wait