Hi Lukas,
There are actually two keys have to be set together:
GetGroupFromDHCP: 0 | 1
PreAssignGroups:
The value in PreAssignGroups will be used only when GetGroupFromDHCP is set to 0.
Instead of using script, I would suggest you
- Prepare a sample unit
- Set Agent Preassign properties with Agent Configuration UI
- Capture the specific registry key from sample unit using File & Registry Template
- Use the result template generated in step 3 for deployment.