Create a user account template?

C

Craig

Hi folks,
I'd like to create a user account "template" with
environment variables. In the user account properties, I
created the home directory path as: \\servername\sharename\
%username%. When I close the template and then re-open the
template...the %username% has been replaced by a real
username! What am I doing wrong? I would welcome any
suggestions on creating a default user account that will
aid me in quickly setting up users in the future.

Thank you,
Craig
 
J

Jerold Schulman

Hi folks,
I'd like to create a user account "template" with
environment variables. In the user account properties, I
created the home directory path as: \\servername\sharename\
%username%. When I close the template and then re-open the
template...the %username% has been replaced by a real
username! What am I doing wrong? I would welcome any
suggestions on creating a default user account that will
aid me in quickly setting up users in the future.

Thank you,
Craig

From a CMD.EXE window:

net user TemplateAccount /profilepath:\\servername\sharename\^%UserName^% /domain
The ^ prevents the environment variable from being immediately interpreted

Also, see tip 7329 in the 'Tips & Tricks' at http://www.jsiinc.com


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top