login vbscript

Hi,

I have a shared home folder on windows 2003 server. How can I write a vbscript to map a network drive and create a folder inside the home folder with the logged in users' name using vbscript?

Please help.

ayha
LVL 7
ayha1999Asked:
Who is Participating?
 
AnuroopsunddConnect With a Mentor Commented:
just save below in .bat file and put in the login script.
change servername to your servername and sharedfolder of the server.
%username% will create a folder in the sharedfolder with username of the user.

net use u: \\servername\sharedfolder\%username%
0
 
X_layerCommented:
Or even better, you can set up home folder for domain users. See this link.
0
 
ayha1999Author Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.