[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

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
0
ayha1999
Asked:
ayha1999
1 Solution
 
AnuroopsunddCommented:
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

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now