?
Solved

Logon script to Map drives

Posted on 2007-11-15
4
Medium Priority
?
2,855 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 800 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 400 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 800 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Let's recap what we learned from yesterday's Skyport Systems webinar.
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

752 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