|
Post by knightz on Jan 17, 2019 17:19:07 GMT
Hi guys,
I am trying to use UI++ to prompt the techs to enter the below. Is there anyone has code already I could use as sample. I will be applying the network settings and other settings using SCCM conditions based steps in TS.
Computer Name OS language Keyboard TimeZone
I have not used this tool before so any help will be greatly appreciated. the current wizard looks like this. Once the user select their site the computer is name Site code+ serial number something like LON-123456.
|
|
|
Post by Jason on Jan 18, 2019 1:25:01 GMT
The documentation has a complete example that contains some of this. It includes a detailed, line-by-line explanation also.
|
|
|
Post by knightz on Jan 21, 2019 14:59:40 GMT
Thank you Jason I am able to create the code with the help of doc I am testing it now..
|
|
|
Post by knightz on Jan 21, 2019 17:09:35 GMT
I tried creating package but TS failed. the package command lines are UI++64.exe /config:UI++.xml. Is there anything I am doing wrong here..
<?xml version="1.0" encoding="utf-8"?> <UIpp Title="sSAMPLE" Icon="UI++.ico"> <!--Preflight checks--> <Action Type="DefaultValues" /> <Action Type="Preflight" Title="Preflight checks"> <Check Text="WLAN Disconnected" CheckCondition='"%XWLANDisconnected%" = "True"' /> <Check Text="Not on battery" CheckCondition='"%XOnBattery%" = "False"' /> <Check Text="Minimum memory > 1GB" CheckCondition='%XHWMemory% >= 1024' /> <Check Text="CPU Supports Windows 8+" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' /> </Action> <!--Computer Name & Site--> <?xml version="1.0" encoding="utf-8"?> <UIpp Title="SAMPLE" Icon="UI.ico"> <Action Type="DefaultValues" /> <Action Type="WMIRead" Variable="ComputerName" Namespace="root\cimv2" Class="Win32_ComputerSystem" Property="Name"/> <Action Type="WMIRead" Variable="SerialNumber" Namespace="root\cimv2" Class="Win32_SystemEnclosure" Property="SerialNumber"/> <Action Type="Input" Name="LocationChoice" Title="System Location"> <ChoiceInput Variable="MyLocation" Question="Please select a location for this computer:" Required="True" > <Choice Option="Location 1" Value="CAM"/> <Choice Option="Location 2" Value="BRI"/> </ChoiceInput> </Action> <Action Type="TSVar" Name="OSDComputerName">%MyLocation%-%SerialNumber%</Action>
|
|
|
Post by knightz on Jan 22, 2019 21:05:57 GMT
Can any1 check this code or provide me a code that simply name computer with location + serial number? Thank you in advance..
|
|
|
Post by easyrimka on Jan 22, 2019 22:52:07 GMT
your xml seem wrong. first, download a good editor, like notepad++ or visual code , this way, you'll see that there is something wrong. Also, read the manual, i did everything by reading the manual.. and finally, you have ?> <UIpp Title="SAMPLE" Icon="UI.ico"> 2 times and no </UIpp> at the end. and finally, if you want to check that your XML have the good structure, just open it using a browser, you must see the content of the file. If the file is not good, you will see a blank page.
|
|
|
Post by knightz on Jan 23, 2019 14:08:12 GMT
Thank you i am actually using notepad++ and used the code from manual. As i dont know much of coding. All i need it do it ask location then set computer name based on location code & serial number. I corrected the duplicate but still no dice
<?xml version="1.0" encoding="utf-8"?> <UIpp Title="SAMPLE" Icon="UI.ico"> <Action Type="DefaultValues" /> <Action Type="WMIRead" Variable="ComputerName" Namespace="root\cimv2" Class="Win32_ComputerSystem" Property="Name"/> <Action Type="WMIRead" Variable="SerialNumber" Namespace="root\cimv2" Class="Win32_SystemEnclosure" Property="SerialNumber"/> <Action Type="Input" Name="LocationChoice" Title="System Location"> <ChoiceInput Variable="MyLocation" Question="Please select a location for this computer:" Required="True" > <Choice Option="Location 1" Value="CAM"/> <Choice Option="Location 2" Value="BOS"/> </ChoiceInput> </Action> <Action Type="TSVar" Name="OSDComputerName">%MyLocation%-%SerialNumber%</Action> </UIpp>
|
|
|
Post by knightz on Jan 23, 2019 14:11:33 GMT
update in browser it loads just fine but when i try to use it with command line it does not..
UI++64.exe /config: xml
|
|
|
Post by easyrimka on Jan 23, 2019 16:16:12 GMT
UI++64.exe /config: xml seem wrong too, you need the complete filename like ui++64.exe /config:filename.xml
|
|
|
Post by knightz on Jan 23, 2019 18:43:16 GMT
Hi easyrimka that i used as an example of course i am using the file name.
|
|
|
Post by knightz on Jan 26, 2019 5:08:03 GMT
The documentation has a complete example that contains some of this. It includes a detailed, line-by-line explanation also. I tried the code still missing something
|
|
|
Post by knightz on Jan 28, 2019 18:41:48 GMT
I got the code working TS prompt for computer name & site. The Install image screen shows MINIT- is that expected ? still waiting for TS to complete.
|
|
|
Post by Jason on Feb 3, 2019 3:35:58 GMT
I don't know what Install image screen you are talking about so I can't answer the question. Can you be more specific? Is this something in UI++? If so, can you pst the XML configuration snippet here for what you are referring to?
|
|