Hello Guido,
Thank you for your question and for reaching out with your question today.
To automatically populate the UserName field with the PC name and domain when creating an APN Enterprise package using the Windows Configuration Designer tool, you can use a provisioning package with a custom variable. Here's how you can achieve this:
- Open the Windows Configuration Designer tool.
- Create a new provisioning package or open an existing one.
- In the left pane, expand "Runtime settings" and select "Accounts".
- In the right pane, click on "Add an Account".
- Configure the account settings as needed, including the UserName field.
- In the UserName field, enter a custom variable to represent the PC name and domain. For example, you can use
%PCName%@%Domain%
. - Save the provisioning package.
- Install the provisioning package on the target Windows 10 Enterprise PCs.
When the package is installed on a PC, the Windows Configuration Designer will automatically replace the custom variable %PCName%@%Domain%
with the actual PC name and domain during the provisioning process.
Make sure that the PC name and domain are correctly configured on each PC before installing the provisioning package to ensure the variable gets replaced with the correct values.
Note: The Windows Configuration Designer tool may have limitations or specific requirements for custom variables. Make sure to refer to the tool's documentation or consult the official Microsoft support resources for detailed guidance on using custom variables in provisioning packages.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.