|
Post by wangchung on Oct 31, 2019 21:30:06 GMT
Hi Community, I'm having a great time with UI++ but I am getting random behavior with a couple of variable strings being combined to create OSDComputerName <Action Type="TSVar" Name="OSDComputerName">%ZZModel%-%ZZSerialNumber%</Action> I look to have issues with the prefix before the "hyphen" and preceding "zeros" of the serial number. Any insights would be greatly appreciated. WC Attachments:
|
|
|
Post by deploymental on Nov 1, 2019 9:23:01 GMT
Hi Wangchung
We also have %SiteCode%-%SerialNumber%naming standard,
It's just we have "-" sign as part of %SiteCode%, so its value for instance is "EMOS1-", not "EMOS1".
This lets us make computer names like %SiteCode%%SerialNumber%.
|
|
|
Post by raptor on Nov 1, 2019 17:01:16 GMT
Or you can use the DontEval on the <Action Type="TSVar" Name="OSDComputerName">
So example <Action Type="TSVar" DontEval="True" Name="OSDComputerName">
|
|
|
Post by wangchung on Nov 2, 2019 19:38:19 GMT
raptor Brilliant. thanks for the information, i've actually used both pieces of logic to help me out! thank you so much. WC
|
|