Logon Scripts - Mapped Drives - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 09-22-2006, 07:05 AM   #1 (permalink)
Newb Techie
 
Join Date: Sep 2006
Posts: 9
Default Logon Scripts - Mapped Drives

Hi,

I am trying to map network drives for a few users via Group Policy. I have created a new OU within and created 4 test users. I want to map some drives to these users rather than doing them manually as a lot more users will join this OU. I have created a batch file as follows:

net use m \\<servername>\Moscow
net use w \\<servername>\AE1

I have copied it to the appropriate folder e.g. C:\WINDOWS\SYSVOL\sysvol\<domain name>\Policies\{86F42B79-1847-4B86-8A32-94550702F40F}\User\Scripts\Logon

I didn't specify any parameters, so I am unsure if that is a problem. I created the GP anyway. When I logged in as a new user, nothing happened no drives were mapped. Does anyone know what the problem is?

I have run the file whilst logged in as this user and the drives are then mapped. Any help will be greatly appreciated.
__________________

robbied69 is offline  
Old 09-22-2006, 08:15 AM   #2 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

you need this:

http://www.kixtart.org/
__________________

__________________
Osiris is offline  
Old 09-23-2006, 12:00 AM   #3 (permalink)
Junior Techie
 
Join Date: Apr 2005
Posts: 67
Default

When I had to login into my server at work, I just made put a batch file into the start up menu. I would see if that works for you.
mestizo122 is offline  
Old 09-23-2006, 12:28 AM   #4 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

i would copy the batch to a server share and set everyone read access. i'd prolly setup a gpo with the batch file executing as a logon script, i think its located at User config| Windows settings | scripts | logon. Apply the gpo to the needed users and check permissions for use.
office politics is offline  
Old 09-23-2006, 05:39 AM   #5 (permalink)
Master Techie
 
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher
Default

We just use the logon scripts in the netlogon folder. Would this not work for you? Just throw all your batch files into said folder and simply point there AD account to point to said batch file.
Win2kpatcher is offline  
Old 09-23-2006, 05:34 PM   #6 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default

Which aspect of the GPO are you applying the logon script? The user or the computer?

You're going to want to make sure it's in the user portion of the logon script if you want it mapped when they logon.

Also, make sure they have read permissions on the script.
__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 09-25-2006, 06:00 AM   #7 (permalink)
Newb Techie
 
Join Date: Sep 2006
Posts: 9
Default

Hi, thanks for all your responses. For some reason it took a good 10 mins for the policies to be applied. I did do it through user config btw.
robbied69 is offline  
Old 09-25-2006, 09:13 AM   #8 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default

Sweet, if you ever want them to update immediately you can use this command on the client machines.

gpupdate /force
__________________

__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Closed Thread

« Wga | Audits »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 04:00 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.