Solved

Logon script to Map drives

Posted on 2007-11-15
4
2,842 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Radius Debug Error 16 55
Administrator Accounts Not Visible from Third Party AD-connected Systems 2 45
ssh setup on Cisco swith 11 44
Network access 4 22
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now