Solved

Logon script to Map drives

Posted on 2007-11-15
4
2,848 Views
Last Modified: 2010-05-18
When my logon script to map drives runs for end users, it prompts them for a password.  It does not do that for me.  What can it be?
NET USE Z: /delete
NET USE Z: "\\cscuadmin\e$\Home folders" /PERSISTENT:YES  
0
Comment
Question by:shannon_1680
[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
4 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 200 total points
ID: 20289661
The e$ share is an administrative share that is only accessible to Domain Administrators (or local administrators on a file server) by default.  Create a share for your users and grant Everyone-->Full Control to the share.
0
 

Author Comment

by:shannon_1680
ID: 20290060
Ok, that worked, the cmd to enter in a password does not show up anymore; however; this logon to map this drive is to access their personal folders.  Now they can see everyone's folder.  This didnt happen before.
0
 
LVL 58

Assisted Solution

by:tigermatt
tigermatt earned 100 total points
ID: 20290196
Really, you should only be using the E$ share for administrative purposes. Standard non Domain Admins have no access to this share.

I assume there are subfolders below the "Home folders" directory named as each user's username. What I suggest you do is migrate to a VBS based script, and map the Z: drive directly to each user's subfolder based on their username. I've attached an example (with a persistent drive) which shows how to do this.

-tigermatt
on error resume next
 
' Logon Script to map network drives
 
' Objects
Dim Network
Set Network = CreateObject("WScript.Network")
 
' User's username
Dim Username
Username = Network.UserName
 
Network.MapNetworkDrive "N:", "\\server\UserData\" & Username, true

Open in new window

0
 
LVL 1

Assisted Solution

by:Telstar-Networks
Telstar-Networks earned 200 total points
ID: 20290967
The above should work fine, though simply adding username to the bat script should also work.  It is just a question of permissions, really, but I'm guessing that under the share there have been exclusives set?

Anyway,

NET USE Z: /delete
NET USE Z: "\\cscuadmin\e$\Home folders\%username%" /PERSISTENT:YES  

should work fine.  If you run into permissions problems since e$ is typically just admin usage, preface it with another line to grant permissions.

cacls \\server\e$\Home folders\%username% /e /t /g %username%:f
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 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