Solved

Logon script to Map drives

Posted on 2007-11-15
4
2,837 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
4 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now