|
Post by JvH on Jan 22, 2021 14:36:43 GMT
Hi,
i hope someone can give me a hand here with below:
I am in the process of creating a My Computer Information application based on UI for our end-users which they can start within Windows from the start menu. I gives information like: Username, Ip addresses, connected to Wifi or LAN etc.
The standard values of UI++ are working: + Set the task sequence variable 'XOSBuild' to the value '18363' 1-1-1601 00:00:00 0 (0x0000)
+ Set the task sequence variable 'XOSVersion' to the value '10.0.18363' 1-1-1601 00:00:00 0 (0x0000)
One thing which i am not able to get working is the following:
Line in Config.xml
<Action Type="RegRead" Hive="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Value="ReleaseId" Variable="W10Edition" />
<![CDATA[
<b>My User name</b>: %XUserSAMAccountName% <br>
<b>My Computer name</b>: %XCurrentComputerName% <br>
<b>My ip address</b>: %XIPAddress% <br>
<b>Ethernet Cable</b>: %XWiredLANConnected% <br>
<b>Wifi Network</b>: %XWLANSSID% <br>
<b>Laptop Type</b>: %XHWLenovoModel% <br>
<b>Windows 10 Version</b>: %W10Edition% <br>
<b>
]]>
The result is still an empty line of text after Windows 10 Version, when starting the application?
Can someone point me in the correct direction.
|
|
|
Post by mjhelto on Apr 15, 2021 19:03:08 GMT
If you collect OS information during a preflight, you can use %XOSBuild%. Does that work?
|
|
|
Post by drmoreau on Apr 15, 2021 23:30:17 GMT
I ran this code to test, which read the registry and created the variable.
<?xml version="1.0" encoding="utf-8"?> <UIpp Title="UI++" Icon="UI++2.ico"> <Actions> <Action Type="RegRead" Hive="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Value="ReleaseId" Variable="W10Edition" /> <Action Type="Info" Name="myInfo" Title="Windows 10 edition: %W10Edition%"> <![CDATA[ <b>My User name</b>: %XUserSAMAccountName% <b> <b>My Computer name</b>: %XCurrentComputerName% <b> <b>My ip address</b>: %XIPAddress% <b> <b>Ethernet Cable</b>: %XWiredLANConnected% <b> <b>Wifi Network</b>: %XWLANSSID% <b> <b>Laptop Type</b>: %XHWLenovoModel% <b> <b>Windows 10 Version</b>: %W10Edition% <b> <b> ]]> </Action></Actions></UIpp>
If you check the log file it should show what the error is when the value is read from registry. Mine looked like this with the above code.
Found <RegRead> Action: 01/01/1601 00:00:00 0 (0x0000) Initiating <RegRead> Action: 01/01/1601 00:00:00 0 (0x0000) * Loaded registry value from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId : 2009 01/01/1601 00:00:00 0 (0x0000) + Set the task sequence variable 'W10Edition' to the value '2009' 01/01/1601 00:00:00 0 (0x0000)
The code you posted worked fine though when ran, the only issue i had was with the output <br> pushing the information off screen.
Could you post the log file or try running the above code and post the results.
Thanks.
|
|