Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows 2003 .: How to Map drives with logon scripts

How to Map drives with logon scripts

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  

Solution:

  It is just a question of permissions, really, but I'm guessing that under the share there have been exclusives set?

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

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


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


How helpful was this article to you?

Related Articles

article How to recover defunct disk drives (DDD)
Source Retain tip H026736 Affe

(No rating)  7-7-2008    Views: 80   
article How to alter one or all GPOs using Microsoft GPMC scripts.
There are times when the Group Policy...

(No rating)  4-28-2008    Views: 115   
article Miscellaneous Errors in IIS 6.0 : Cannot locate /Scripts or /Msadc directory
By default, the /scripts and /msadc...

(No rating)  2-19-2008    Views: 118   

User Comments

Add Comment
No comments have been posted.