Post by sccmryan on Nov 19, 2018 14:53:35 GMT
I'm using the new pre-flight options and UEFI isn't evaluating correctly.
I have the below in my XML
This is a snippet of the log.
It ends up showing the warning message even though it is already set to UEFI...?
Thanks,
Ryan
I have the below in my XML
<ActionGroup Name="Preflight">
<Action Type="DefaultValues" ValueTypes="Asset,OS,Network" ShowProgress="True" />
<Action Type="Preflight" Title="Preflight checks" ShowOnFailureOnly="False" ShowBack="True" ShowCancel="True">
<Check Text="WLAN Disconnected" Description="To prevent issues during deployment, a wired connection is required." ErrorDescription="Please disconnect the wireless network from this system." CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Not on battery" ErrorDescription="Please ensure that the system is connected to AC Power." CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 1GB" CheckCondition='%XHWMemory% >= 1024' WarnCondition='%XHWMemory% >= 4096' ErrorDescription="Please ensure that the system has at least 1 GB of memory." WarnDescription="For best results, this system should have at least 4 GB of memory"/>
<!--<Check Text="CPU Supports Windows 8+" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />-->
<Check Text="UEFI Enabled" WarnCondition='"%XSystemUEFI%" = "False"' WarnDescription="For security purposes, UEFI should be enabled."/>
</Action>
</ActionGroup>
<Action Type="DefaultValues" ValueTypes="Asset,OS,Network" ShowProgress="True" />
<Action Type="Preflight" Title="Preflight checks" ShowOnFailureOnly="False" ShowBack="True" ShowCancel="True">
<Check Text="WLAN Disconnected" Description="To prevent issues during deployment, a wired connection is required." ErrorDescription="Please disconnect the wireless network from this system." CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Not on battery" ErrorDescription="Please ensure that the system is connected to AC Power." CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 1GB" CheckCondition='%XHWMemory% >= 1024' WarnCondition='%XHWMemory% >= 4096' ErrorDescription="Please ensure that the system has at least 1 GB of memory." WarnDescription="For best results, this system should have at least 4 GB of memory"/>
<!--<Check Text="CPU Supports Windows 8+" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />-->
<Check Text="UEFI Enabled" WarnCondition='"%XSystemUEFI%" = "False"' WarnDescription="For security purposes, UEFI should be enabled."/>
</Action>
</ActionGroup>
This is a snippet of the log.
+ Set the task sequence variable 'XSystemUEFI' to the value 'True' UI++ 11/19/2018 9:42:40 AM 7864 (0x1EB8)
* Evaluating Condition for <WarnCondition> UEFI Enabled: "%XSystemUEFI%" = "False" ?? "True" = "False" UI++ 11/19/2018 9:42:40 AM 12552 (0x3108)
= Condition evaluated to false UI++ 11/19/2018 9:42:40 AM 12552 (0x3108)
* Evaluating Condition for <WarnCondition> UEFI Enabled: "%XSystemUEFI%" = "False" ?? "True" = "False" UI++ 11/19/2018 9:42:40 AM 12552 (0x3108)
= Condition evaluated to false UI++ 11/19/2018 9:42:40 AM 12552 (0x3108)
It ends up showing the warning message even though it is already set to UEFI...?
Thanks,
Ryan