Create a user account template?

  • Thread starter Thread starter Craig
  • Start date Start date
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
 
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
 
Back
Top