levi
Junior Member

Posts: 57
|
Post by levi on Feb 25, 2019 21:10:28 GMT
Just sharing a snippet I used where I needed to change my UI prompts for known versus unknown devices. In the case of known devices, display a custom info box and not giving the tech the option to change the name.
<!-- Determine if known device -->
<Action Type="TSVar" Name="ClientState">Known</Action>
<Action Type="TSVar" Name="ClientState" Condition='"%_SMSTSx64UnknownMachineGUID%" = "%_SMSTSClientGUID%"'>Unknown</Action>
<Action Type="TSVar" Name="ClientState" Condition='"%_SMSTSx86UnknownMachineGUID%" = "%_SMSTSClientGUID%"'>Unknown</Action>
<!-- Set Computername known -->
<Action Type="TSVar" Name="OSDComputerName" Condition='"%ClientState%" = "Known"'>%_SMSTSMachineName%</Action>
<Action Type="Info" Name="Known" Title="Known System" ShowBack="True" ShowCancel="True" Condition='"%ClientState%" = "Known"'>
<![CDATA[
This system %XHWModel% - %XHWSerialNumber% is a known computer: %_SMSTSMachineName%.
<br>
Proceed to image the machine with the same name.
<br>
To change the name, please delete the SCCM record and retry.
]]>
</Action>
|
|
adamp
New Member
Posts: 10
|
Post by adamp on Mar 5, 2020 16:06:00 GMT
I don't see _SMSTSClientGUID as a variable when I select ctrl+f2 so all PCs are showing as Known. Does this work in the pxe prestart enviroment?
|
|
|
Post by Jason on Mar 23, 2020 0:04:51 GMT
No systems are ever known during prestart because the site has not yet been contacted at this stage in the process. If you need to know the known or unknown state of a system during prestart, you need to make a call to the site using a web service. This is all external to UI++.
|
|
|
Post by dunzee on Sept 3, 2022 17:19:40 GMT
Does this mean that I only need to deploy a preferred TS to "All unknown computers" and when I use the SMSTSPreferredAdvertID it will always launch that one? I thought that since I had 2 deployments for my TS (All Unknown and Workstation All for reimage) - I needed somehow to swich between the two... but the info above suggests, that I really only need ONE deployment 
|
|