AD -> Create User (Template) -> Home/Profile Path -> %username%

Dennis Hultin 1 Reputation point
2020-11-29T10:04:50.833+00:00

Hello!

I'm making a user template for new Active Directory users.
But I have a problem.

When specifying paths to profiles and home I use the %username% sys variable - since it's a template.
When applying the changes to my user template the sys variable converts into actual username.

Profiles: \\servername\Profiles\%username%
Home: \\servername\Home\%username%

How do I make the sys variable %username% stay a variable, and not convert into a username? - Since, again, it's a template.

I'm running Windows Server 2012 R2 in Azure virtual machine.

Thanks in advance.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,060 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Fan Fan 15,306 Reputation points Microsoft Vendor
    2020-11-30T03:42:48.667+00:00

    Hi,
    Welcome to share here!
    Based on my research and test , it is the default thing when applying the changes to my user template the sys variable converts into actual username.
    When you copy the template ,the new user will converts into new username also.
    Here is the screenshot of the template :
    43573-11301.jpg
    new user using the template:
    43466-11303.jpg
    Best Regards,

    0 comments No comments