Post by markf on Sept 12, 2019 8:58:55 GMT
I wanted to use a new ui++ because i want to check if the machine has a wired connection.
I downloaded the new ui++ version 2.11.1.2
I used my old xml file and added the check wiredlanconnection rule.
Whe i start the exe it starts, i can fill in in my username and password. After that it stops at "Collecting values from system.. Retrieving Security Information..."
The log just stops, it doesn't show any errors.
On the same machine the old UI++ version works fine (2.4.0.0)
Here is the XML file i use (i have anonymised some infomartion with XXX):
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="XXXWindows 1.5">
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="lan.xxx.nl" Group="XXX;Domain Admins;Helpdesk XXX" MaxRetryCount="3"/>
<Action Type="DefaultValues" />
<Action Type="WMIRead" Variable="ComputerName" Namespace="root\cimv2" Class="Win32_ComputerSystem" Property="Name"/>
<Action Type="Preflight" Title="Windows 7/8.1/10 checklist (%XAuthenticatedUser%)">
<Check Text="WLAN Disconnected" CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Wired LAN Connected" CheckCondition='"XWiredLANConnected" = "True"' />
<Check Text="Not on battery" CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 2GB" CheckCondition='%XHWMemory% >= 2048' />
<Check Text="CPU Supports Windows 10" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />
</Action>
<Action Type="Input" Name="DataInput" Title="Gegevens invoeren (%XAuthenticatedUser%)">
<TextInput Prompt="Computernaam" Hint="WRK##### of LAP#####" Variable="OSDComputerName" Question="Computernaam:" Default="%ComputerName%" Required="True"/>
<ChoiceInput Variable="XXXEWinOS" Question="Windows versie?" Required="True" Default="Win10Pro">
<Choice Option="Windows 10 Pro" Value="Win10Pro"/>
</ChoiceInput>
<ChoiceInput Variable="XXXPartitioning" Question="Moet de schijf opnieuw gepartioneerd worden?" Required="True" Default="True">
<Choice Option="Ja (alles wordt GEWIST!)" Value="True"/>
<Choice Option="Nee" Value="False"/>
</ChoiceInput>
</Action>
<Action Type="TSVar" Name="XXXAuthenticatedUser"><![CDATA[Trim("%XAuthenticatedUserDomain%") & "\" & Trim("%XAuthenticatedUser%")]]></Action>
<Action Type="TSVar" Name="XXXImageDate"><![CDATA[Now()]]></Action>
<Action Type="Info" Name="Samenvatting" Title="Weet je het zeker? (%XAuthenticatedUser%)" ShowCancel="True">
<![CDATA[Computernaam: <b>%OSDComputerName%</b><br>Versie: <b>%XXXEWinOS%</b><br>Partitioneren: <b>%XXXEPartitioning%</b>]]>
</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="OSDComputerName" ValueType="REG_SZ">%OSDComputerName%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXWinOS" ValueType="REG_SZ">%XXXWinOS%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXPartitioning" ValueType="REG_SZ">%XXXPartitioning%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXAuthenticatedUser" ValueType="REG_SZ">%XXXAuthenticatedUser%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXImageDate" ValueType="REG_SZ">%XXXImageDate%</Action>
</Actions>
</UIpp>
I start it within Windows 10 (outside of SCCM for testing)
I downloaded the new ui++ version 2.11.1.2
I used my old xml file and added the check wiredlanconnection rule.
Whe i start the exe it starts, i can fill in in my username and password. After that it stops at "Collecting values from system.. Retrieving Security Information..."
The log just stops, it doesn't show any errors.
On the same machine the old UI++ version works fine (2.4.0.0)
Here is the XML file i use (i have anonymised some infomartion with XXX):
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="XXXWindows 1.5">
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="lan.xxx.nl" Group="XXX;Domain Admins;Helpdesk XXX" MaxRetryCount="3"/>
<Action Type="DefaultValues" />
<Action Type="WMIRead" Variable="ComputerName" Namespace="root\cimv2" Class="Win32_ComputerSystem" Property="Name"/>
<Action Type="Preflight" Title="Windows 7/8.1/10 checklist (%XAuthenticatedUser%)">
<Check Text="WLAN Disconnected" CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Wired LAN Connected" CheckCondition='"XWiredLANConnected" = "True"' />
<Check Text="Not on battery" CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 2GB" CheckCondition='%XHWMemory% >= 2048' />
<Check Text="CPU Supports Windows 10" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />
</Action>
<Action Type="Input" Name="DataInput" Title="Gegevens invoeren (%XAuthenticatedUser%)">
<TextInput Prompt="Computernaam" Hint="WRK##### of LAP#####" Variable="OSDComputerName" Question="Computernaam:" Default="%ComputerName%" Required="True"/>
<ChoiceInput Variable="XXXEWinOS" Question="Windows versie?" Required="True" Default="Win10Pro">
<Choice Option="Windows 10 Pro" Value="Win10Pro"/>
</ChoiceInput>
<ChoiceInput Variable="XXXPartitioning" Question="Moet de schijf opnieuw gepartioneerd worden?" Required="True" Default="True">
<Choice Option="Ja (alles wordt GEWIST!)" Value="True"/>
<Choice Option="Nee" Value="False"/>
</ChoiceInput>
</Action>
<Action Type="TSVar" Name="XXXAuthenticatedUser"><![CDATA[Trim("%XAuthenticatedUserDomain%") & "\" & Trim("%XAuthenticatedUser%")]]></Action>
<Action Type="TSVar" Name="XXXImageDate"><![CDATA[Now()]]></Action>
<Action Type="Info" Name="Samenvatting" Title="Weet je het zeker? (%XAuthenticatedUser%)" ShowCancel="True">
<![CDATA[Computernaam: <b>%OSDComputerName%</b><br>Versie: <b>%XXXEWinOS%</b><br>Partitioneren: <b>%XXXEPartitioning%</b>]]>
</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="OSDComputerName" ValueType="REG_SZ">%OSDComputerName%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXWinOS" ValueType="REG_SZ">%XXXWinOS%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXPartitioning" ValueType="REG_SZ">%XXXPartitioning%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXAuthenticatedUser" ValueType="REG_SZ">%XXXAuthenticatedUser%</Action>
<Action Type="RegWrite" Hive="HKLM" Key="Software\XXXE" Value="XXXImageDate" ValueType="REG_SZ">%XXXImageDate%</Action>
</Actions>
</UIpp>
I start it within Windows 10 (outside of SCCM for testing)