Post by osd4me on Jun 15, 2019 15:13:06 GMT
Hi Jason and All,
I'm having a problem with OSDComputerName in my LTI SCCM task Sequence.
UI++ is running at the top of the task sequence and prompts to select site location which helps populate the OSD Computer name.
During the task sequence I see that OSDComputerName is set correctly because I see the correct OSDComputerName showing during imaging on the background screen (I have OSDBackground running and applying to the wallpaper).
However after reimaging and domain join the computer is named WIN-xxxxx whatever so somehow the correct OSDComputerName that existed during the first half of the TS is not getting applied by the time the system joins the domain and finishes reimaging.
My working code to get OSDComputerName set to a prefix with serial number is below
Any help with this would be much appreciated as I need the functionality of UI++ for an important project I'm working on.
Thanks in advance for any assistance with this
I'm having a problem with OSDComputerName in my LTI SCCM task Sequence.
UI++ is running at the top of the task sequence and prompts to select site location which helps populate the OSD Computer name.
During the task sequence I see that OSDComputerName is set correctly because I see the correct OSDComputerName showing during imaging on the background screen (I have OSDBackground running and applying to the wallpaper).
However after reimaging and domain join the computer is named WIN-xxxxx whatever so somehow the correct OSDComputerName that existed during the first half of the TS is not getting applied by the time the system joins the domain and finishes reimaging.
My working code to get OSDComputerName set to a prefix with serial number is below
<Action Type="Input" Name="myInput" Title="Enter System Location">
<ChoiceInput Variable="Tier" AlternateVariable="TierB" Question="Please select the location of this system" Required="True" Default="%CurrentTier%">
<Choice Option="Phoenix" Value="USPHXUWD" AlternateValue="A"/>
<Choice Option="Fresno" Value="USFRE" AlternateValue="B" />
</ChoiceInput>
</Action>
<Action Type="TSVar" Name="OSDDomainOUName">LDAP://OU=Win10,OU=Devices,OU=Sites,DC=MYDOMAIN,DC=com</Action>
<!-- This Section sets OSD computer name-->
<Action Type="TSVar" Name="TruncatedSN" >Right(Replace("%XHWSerialNumber%", " " , ""), 7)</Action>
<Action Type="TSVar" Name="OSDComputerName">"%Tier%%TruncatedSN%"</Action>
<!-- <Action Type="TSVar" Name="OSDComputerName">%Tier%%XHWSerialNumber%</Action> -->
<Action Type="Info" Title="System Name" Name="SystemName">
<![CDATA[The name of this system will be <b>%OSDComputerName% </b>. It will be placed in the OU at <b>%OSDDomainOUName%</b>.]]>
</Action>
Any help with this would be much appreciated as I need the functionality of UI++ for an important project I'm working on.
Thanks in advance for any assistance with this