Feature Req: Possibility to combine UserEntry AND Substitution for Computername #106

Closed
opened 2026-01-19 18:31:33 +00:00 by michael · 1 comment
Owner

Originally created by @raylinger on GitHub.

Goal is to get "$userSelection-%serial%" as Computername

example:

<key>userEntry</key>
	<dict>
		<key>computerNameTemplate</key>
		<dict>
  			<key>options</key>
  			<array>
    			<string>XYZ-%serial%</string>
    			<string>ABC-%serial%</string>
  			</array>
		</dict>

Usecase: "XYZ, ABC" is meant to be the Company Subsidiary Shortname, which then scopes/installs sub specific apps later and ... well the serial Number to differentiate the Devices :).

Originally created by @raylinger on GitHub. Goal is to get `"$userSelection-%serial%"` as Computername example: ``` <key>userEntry</key> <dict> <key>computerNameTemplate</key> <dict> <key>options</key> <array> <string>XYZ-%serial%</string> <string>ABC-%serial%</string> </array> </dict> ``` Usecase: "XYZ, ABC" is meant to be the Company Subsidiary Shortname, which then scopes/installs sub specific apps later and ... well the serial Number to differentiate the Devices :).
michael added the enhancement label 2026-01-19 18:31:33 +00:00
Author
Owner

@scriptingosx commented on GitHub:

This should already work in 1.1. If you provide a department user entry field with the choices XYZ, ABC, etc. ... Then you can use:

<key>computerNameTemplate</key>
<string>%department%-%serial%</string>
@scriptingosx commented on GitHub: This should already work in 1.1. If you provide a department user entry field with the choices `XYZ`, `ABC`, etc. ... Then you can use: ```xml <key>computerNameTemplate</key> <string>%department%-%serial%</string>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jamf/Setup-Manager#106