File: C:/Windows/OEM/ovf-env.xml.xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:wa="http://schemas.microsoft.com/windowsazure"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
xmlns="http://schemas.dmtf.org/ovf/environment/1"
xmlns:script="urn:script"
exclude-result-prefixes="msxsl script">
<xsl:output method="xml" indent="yes" encoding="utf-8" />
<xsl:namespace-alias stylesheet-prefix="oe" result-prefix="#default" />
<xsl:param name="OSDParameters" />
<xsl:param name="PlatformParameters" />
<xsl:template match="/oe:Environment/wa:ProvisioningSection/wa:WindowsProvisioningConfigurationSet">
<xsl:copy>
<xsl:copy-of select="$OSDParameters/wa:EnableAutomaticUpdates"/>
<xsl:copy-of select="$OSDParameters/wa:AdminUsername"/>
<xsl:copy-of select="$OSDParameters/wa:ComputerName"/>
<xsl:copy-of select="$OSDParameters/wa:TimeZone"/>
<xsl:copy-of select="$OSDParameters/wa:ResetPasswordOnFirstLogon"/>
<xsl:copy-of select="$OSDParameters/wa:WinRM"/>
<xsl:copy-of select="$OSDParameters/wa:PageFile"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/oe:Environment/wa:PlatformSettingsSection/wa:PlatformSettings">
<xsl:copy>
<xsl:copy-of select="$PlatformParameters/wa:KmsServerHostname"/>
<xsl:copy-of select="$PlatformParameters/wa:UseAVMA"/>
<xsl:copy-of select="$PlatformParameters/wa:ProvisionGuestAgent"/>
<xsl:copy-of select="$PlatformParameters/wa:GuestAgentPackageName"/>
<xsl:copy-of select="$PlatformParameters/wa:PreprovisionedVm"/>
<xsl:copy-of select="$PlatformParameters/wa:PreprovisionedVMType"/>
<xsl:copy-of select="$PlatformParameters/wa:PreprovisioningReuseType"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>