Solved

Permanently map windows share

Posted on 2015-01-27
21
59 Views
Last Modified: 2015-02-05
To make it available to all users not just when specific user logs in. Windows 2008.
0
Comment
Question by:paul williams
  • 11
  • 3
  • 3
  • +2
21 Comments
 
LVL 3

Expert Comment

by:kola12
ID: 40572437
Of course it is posible.  You may use GPO and link it to domain.
In GPO  use script to map windows share
0
 
LVL 3

Expert Comment

by:Waddah Dahah
ID: 40572441
Hi Paul,

if you are using active directory create a GPO using group policy preferences and link it to the domain,


To create a new Mapped Drive preference item
Open the Group Policy Management Console . Right-click the Group Policy object (GPO) that should contain the new preference item, and then click Edit .

In the console tree under User Configuration , expand the Preferences folder, and then expand the Windows Settings folder.

Right-click the Drive Maps node, point to New , and select Mapped Drive .

In the New Drive Properties dialog box, select an update for Group Policy to perform.

Enter drive map settings for Group Policy to configure or remove.

Click the Common tab, configure any options, and then type your comments in the Description box.

Click OK . The new preference item appears in the details pane.

for more information see : https://technet.microsoft.com/en-us/library/cc770902.aspx

or
Using Group Policy Preferences to Map Drives Based on Group Membership
http://blogs.technet.com/b/askds/archive/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership.aspx

i hope this will help.
Waddah
0
 

Author Comment

by:paul williams
ID: 40572514
Tried using startup scripts and this doesnt work. It just gives disconnected drive.

No easier way then editing group policy? In this organisation change approval will be needed for this.

Really need a way that is local to this server and does not touch anything else.
0
 
LVL 3

Expert Comment

by:kola12
ID: 40572522
You can link polisy to specific OU. You can use Grou Policy Preferences and set Drive Map.
In my firm Policy with script works perfect.
0
 
LVL 3

Expert Comment

by:Waddah Dahah
ID: 40572637
Hi paul

have you tried to write the scrip on like the following;

net use j: "\\SERVERNAME\FOLDER\"

and create a schedule to run this script every 1 Min. so whenever the there is a disconnection the schedule will run and create it again.

let me know how it goes.

Thanks,
Waddah
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40572768
Have you tried using the /persistent switch with the net use command in your login script?:

net use N: \\Server\Share /persistent:yes
0
 

Author Comment

by:paul williams
ID: 40572774
Hmmm. No - is this something you know works or jsut might work?
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40572812
It's something that I know works. There could be other factors in your environment that's causing the network drive to show up as disconnected though.

To be safe you can delete the drive first then re-map it in your login script. It's pretty much the norm:
net use N: /delete /y
net use N: \\Server\Share

Open in new window

0
 

Author Comment

by:paul williams
ID: 40572826
Still dont understand how I can use Group Policy so that just this one server maps the drive.
0
 
LVL 3

Expert Comment

by:Waddah Dahah
ID: 40572832
you can use local group policy instead of domain group policy and place the script in the login script.
also did you try schedule the script ?
0
Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

 

Author Comment

by:paul williams
ID: 40572940
Yes put script in local group policy start up script - does not work.
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 40572993
Of course a "Start up" does not work....Start up scripts are for computer related tasks. Mapped drives are "User" related and need to be utilized during Logon(Logon script)
0
 

Author Comment

by:paul williams
ID: 40573038
Problem Im getting now is it works when I log back in after reboot but not for other users.

To clarify - what I've done now is using gpedit.msc add script in computer configuration/windows settings/scripts/startup which should be performing the map.

Notice it was under user configuration also. Whoch should it be? computer configuration or user configuration?
0
 

Author Comment

by:paul williams
ID: 40573076
OK. Getting somewhere. Its just in login script now.
Trouble is its now listed with a red X.

But strangely when you click on the drive it does actually access it.
0
 

Author Comment

by:paul williams
ID: 40573105
Of course trouble with this is it wont work for non-logged in users. For instance, oracle installed on the server needs to see this drive.

Is there any way to make this drive visible from a server point of view?
Will it work in startup script?
0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 500 total points
ID: 40573242
0
 

Author Comment

by:paul williams
ID: 40574736
Thanks. Also, in the comments of the above  - this seems  recommended also
http://en.wikipedia.org/wiki/NTFS_symbolic_link

Not sure how to implement though. Basically, I want F: drive mapped to remote share.
0
 

Author Comment

by:paul williams
ID: 40574746
Another idea.

mklink /d c:\shares\warehouse \\server1\warehouse
Then set up c:\shares\warehouse as share (call it warehouse)

In STARTUP scripts
net use f: \\localhost\warehouse)

(or substr)
0
 

Author Comment

by:paul williams
ID: 40591217
I've requested that this question be closed as follows:

Accepted answer: 0 points for paul williams's comment #a40574746

for the following reason:

This works fine
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 40591218
Pretty sure I lead you to mklink which you confirm in #a40574736
0
 

Author Closing Comment

by:paul williams
ID: 40591226
sorry - great answer
0

Featured Post

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

746 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

13 Experts available now in Live!

Get 1:1 Help Now