Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting question.

Status
Not open for further replies.

J741

Technical User
Jul 3, 2001
528
CA
I recal reading a thread here a while back that indicated a way to script a user's login for a personal directory.

I think the script line was...
net use <drive letter> \\server\%username%

but that is not correct. the %username% is not a valid variable. I can not remember the correct syntax. Perhaps the variable identifier was %logonname% or something simliar. I'm not sure.

Can anyone help me get the correct variable name?

- James.
 
%HOMEPATH% Gives U full path of the user's home directory
%USERDOMAIN% Gives U domain containing the user's account
%USERNAME% Gives U the user name

Kapil :) Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
 
if you want to set up a home directory, there's provision in user manager for domains. Under the user you can set the user directory using the drive letter and the \\servername\usershare\%username%

user manager will create the user directory for you and assigne the basic permissions etc.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top