Post by bhethcote on May 18, 2021 19:44:46 GMT
Hi All,
Working with a customer that builds their computer names from combining the serial number with an extension that identifies the system "role".
I'm using an 11 character random number using the following:
<Action Type="RandomString" Name="RandomSN" Length="11" AllowedChars="0123456789ABCDEF" />
5/18/2021 3:09:23 PM Found <RandomString> Action: RandomSN UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM Initiating <RandomString> Action: RandomSN UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Creating a random string of length 11 from the following allowed characters: 0123456789ABCDEF. UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM + Set the task sequence variable 'Random' to the value '0DAA285F925' UI++ 10516 (0x2914)
... and a SystemSuffix using:
<Action Type="Input" Name="WSRole" Title="Workstation Role">
<InputChoice Variable="WSRole" AlternateVariable="SystemSuffix" Sort="False" Question="Choose a Workstation Role for this system" Required="False" AutoComplete="False">
<Choice Option="IT Workstation" AlternateValue="-ITW" />
<Choice Option="LAB Workstation" AlternateValue="-LAB" />
</InputChoice>
</Action>
5/18/2021 3:09:23 PM Found <Input> Action: WSRole UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM Initiating <Input> Action: WSRole UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding Choice: 'IT Workstation', value: 'IT Workstation', alternate value: '-ITW' UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding Choice: 'LAB Workstation', value: 'LAB Workstation', alternate value: '-LAB' UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding <InputChoice> Input: Choose a Workstation Role for this system UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'WSRole' to the value 'IT Workstation' UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'SystemSuffix' to the value '-ITW' UI++ 10516 (0x2914)
Then I've tried a number of different iterations of the line below to combine these two into a single value
<Action Type="TSVar" Name="OSDComputerName" >%Random%+%SystemNameSuffix%</Action>
but it never appends the suffix.
5/18/2021 3:09:26 PM Found <TSVar> Action: OSDComputerName UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM Initiating <TSVar> Action: OSDComputerName UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'OSDComputerName' to the value '0DAA285F925+' UI++ 10516 (0x2914)
Any suggestions would be appreciated
Thanks - BHethcote
Working with a customer that builds their computer names from combining the serial number with an extension that identifies the system "role".
I'm using an 11 character random number using the following:
<Action Type="RandomString" Name="RandomSN" Length="11" AllowedChars="0123456789ABCDEF" />
5/18/2021 3:09:23 PM Found <RandomString> Action: RandomSN UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM Initiating <RandomString> Action: RandomSN UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Creating a random string of length 11 from the following allowed characters: 0123456789ABCDEF. UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM + Set the task sequence variable 'Random' to the value '0DAA285F925' UI++ 10516 (0x2914)
... and a SystemSuffix using:
<Action Type="Input" Name="WSRole" Title="Workstation Role">
<InputChoice Variable="WSRole" AlternateVariable="SystemSuffix" Sort="False" Question="Choose a Workstation Role for this system" Required="False" AutoComplete="False">
<Choice Option="IT Workstation" AlternateValue="-ITW" />
<Choice Option="LAB Workstation" AlternateValue="-LAB" />
</InputChoice>
</Action>
5/18/2021 3:09:23 PM Found <Input> Action: WSRole UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM Initiating <Input> Action: WSRole UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding Choice: 'IT Workstation', value: 'IT Workstation', alternate value: '-ITW' UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding Choice: 'LAB Workstation', value: 'LAB Workstation', alternate value: '-LAB' UI++ 10516 (0x2914)
5/18/2021 3:09:23 PM * Adding <InputChoice> Input: Choose a Workstation Role for this system UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'WSRole' to the value 'IT Workstation' UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'SystemSuffix' to the value '-ITW' UI++ 10516 (0x2914)
Then I've tried a number of different iterations of the line below to combine these two into a single value
<Action Type="TSVar" Name="OSDComputerName" >%Random%+%SystemNameSuffix%</Action>
but it never appends the suffix.
5/18/2021 3:09:26 PM Found <TSVar> Action: OSDComputerName UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM Initiating <TSVar> Action: OSDComputerName UI++ 10516 (0x2914)
5/18/2021 3:09:26 PM + Set the task sequence variable 'OSDComputerName' to the value '0DAA285F925+' UI++ 10516 (0x2914)
Any suggestions would be appreciated
Thanks - BHethcote