Solved

login vbscript

Posted on 2012-04-08
3
378 Views
Last Modified: 2012-04-09
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
0
Comment
Question by:ayha1999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37821409
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
 
LVL 11

Expert Comment

by:X_layer
ID: 37822664
Or even better, you can set up home folder for domain users. See this link.
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 37824505
Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A safe way to clean winsxs folder from your windows server 2008 R2 editions
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question