Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Server Operating Systems > Windows Server 2008 / 2008 R2
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

Mapped dive gets disconnected

Mapped dive gets disconnected

this thread has 10 replies and has been viewed 970 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd August 2012, 17:18
alexandru1900 alexandru1900 is offline
Casual
Casual
 
 Join Date: Jul 2012
  6 month star
 Posts: 4
 Reputation: alexandru1900 is on a distinguished road (10)
Default Mapped dive gets disconnected

Hi there,

I have a network with about 30 work stations. They all have a drive P mapped
to the server (2008 R).
A few do not get connected to the mapped drive, when the users log in. It does
not happen every tine. Some are running XP SP2 some Windows 7.
When I am in the office I re-mapped them fast but when I'm not in, is a major
problem. Re-mapping requires server's user name and password, and I do not
want to share it with the office.

Any suggestions ? Maybe a script to reconnect .. ?

Thank you, for your consideration and time. Alex
  #2  
Old 22nd August 2012, 18:54
Ossian Ossian is offline
Administrator
 
 Join Date: Nov 2003
  6 month star 12 month star
 Location: Bonnie Scotland
 Posts: 15,110
  Send a message via Skype™ to Ossian
 Reputation: Ossian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud of (1300)
Default Re: Mapped dive gets disconnected

Is this a domain or a workgroup?
You can encrypt credentials in a script:
http://www.google.co.uk/search?hl=en...1c.QMiXyXfa4aQ
__________________
Tom Jones
MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
PhD, MSc, FIAP, MIITT
IT Trainer / Consultant
Ossian Ltd
Scotland

** Remember to give credit where credit is due and leave reputation points where appropriate **
  #3  
Old 23rd August 2012, 02:59
alexandru1900 alexandru1900 is offline
Casual
Casual
 
 Join Date: Jul 2012
  6 month star
 Posts: 4
 Reputation: alexandru1900 is on a distinguished road (10)
Default Re: Mapped dive gets disconnected

It is a domain, and the work stations that give me this problem, connect thru
remote desktop.


[QUOTE=Ossian;263272]Is this a domain or a workgroup?
You can encrypt credentials in a script:
  #4  
Old 23rd August 2012, 10:37
Ossian Ossian is offline
Administrator
 
 Join Date: Nov 2003
  6 month star 12 month star
 Location: Bonnie Scotland
 Posts: 15,110
  Send a message via Skype™ to Ossian
 Reputation: Ossian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud ofOssian has much to be proud of (1300)
Default Re: Mapped dive gets disconnected

If its a domain, why do you need credentials -- just give suitable permissions on the share (NTFS AND Share Permissions) and users will automatically get access
__________________
Tom Jones
MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
PhD, MSc, FIAP, MIITT
IT Trainer / Consultant
Ossian Ltd
Scotland

** Remember to give credit where credit is due and leave reputation points where appropriate **
  #5  
Old 23rd August 2012, 15:52
Kobe 310 Kobe 310 is offline
Junior Member
It's not a coincidence
 
 Join Date: May 2009
  6 month star 12 month star
 Posts: 144
 Reputation: Kobe 310 is on a distinguished road (10)
Default Re: Mapped dive gets disconnected

I feel your pain!!! Used to have that problem myself, pain in the neck, untill i did this below. This will map the drive to anyone that logs into the terminal server. You did say they logged in using remote desktop, so i'm assuming your running TS, But u still have to do what Ossian said.


Use your Domain Controller to map the drive...... If you haven't created your own GPO, then go to Default Domain Policy\User Configuration\Preferences\Window Settings\Drive Maps. If you have your own GPO, go to same location under your GPO.

Right Click and select New Mapped Drive. Map the drive in the "Location Box", and set up "Label As", just don't use A thru D sometimes E.

open up a cmd prompt, and type in gpupdate /force. Log off the terminal server users then back on.

This is how my company is set up, it's a beautiful thing!!!!

Last edited by Kobe 310; 23rd August 2012 at 15:59..
  #6  
Old 27th August 2012, 20:08
alexandru1900 alexandru1900 is offline
Casual
Casual
 
 Join Date: Jul 2012
  6 month star
 Posts: 4
 Reputation: alexandru1900 is on a distinguished road (10)
Default Re: Mapped dive gets disconnected

Thanks for your input, I was trying something else, but it's not working.
I have a bat file, to run when user logs in thru TS. But it's not working.
Here is my file:
ECHO Begin Mapping Drives
net use P: \\SV2\DATAPART1 pass /USER:Administrator\SFNG.LOCAL
exit


P is the drive
SV2 server name
DATAPART1 share name
pass password
Administrator user name
SFNG.LOCAL is the domain



Quote:
Originally Posted by Kobe 310 View Post
I feel your pain!!! Used to have that problem myself, pain in the neck, untill i did this below. This will map the drive to anyone that logs into the terminal server. You did say they logged in using remote desktop, so i'm assuming your running TS, But u still have to do what Ossian said.


Use your Domain Controller to map the drive...... If you haven't created your own GPO, then go to Default Domain Policy\User Configuration\Preferences\Window Settings\Drive Maps. If you have your own GPO, go to same location under your GPO.

Right Click and select New Mapped Drive. Map the drive in the "Location Box", and set up "Label As", just don't use A thru D sometimes E.

open up a cmd prompt, and type in gpupdate /force. Log off the terminal server users then back on.

This is how my company is set up, it's a beautiful thing!!!!
  #7  
Old 27th August 2012, 22:59
uk_network's Avatar
uk_network uk_network is offline
Member
Here to help
 
 Join Date: Sep 2007
  6 month star 12 month star
 Location: UK-North West
 Posts: 496
 Reputation: uk_network will become famous soon enough (91)
Default Re: Mapped dive gets disconnected

With regards to the command to map the drive. See what happens with this below.
The @echo off will hide the rest of the command from the window, so if you test on your desktop first with a batch file then you might not want to include it.

ECHO Begin Mapping Drives
@echo off
net use P: \\SV2\DATAPART1 /USER:SFNG.LOCAL\Administrator password
__________________
Please remember to award reputation points if you have received good advice.

MCSA+Messaging. MCITP -W7, CCNA in progress.

Last edited by uk_network; 27th August 2012 at 23:05..
  #8  
Old 28th August 2012, 11:55
wullieb1 wullieb1 is offline
Moderator
 
 Join Date: Jul 2005
  6 month star 12 month star
 Location: Bris Vegas, Australia
 Posts: 6,384
 Reputation: wullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to behold (684)
Default Re: Mapped dive gets disconnected

I wouldn't ever add an admin account in a script for anything but testing purposes.
  #9  
Old 5th September 2012, 15:53
Kobe 310 Kobe 310 is offline
Junior Member
It's not a coincidence
 
 Join Date: May 2009
  6 month star 12 month star
 Posts: 144
 Reputation: Kobe 310 is on a distinguished road (10)
Default Re: Mapped dive gets disconnected

You don't need a .bat file, just map the drive in the location part. ex. \\ipaddress\share

On your .bat file, you might want to try using the ip address instead of the net bios name, i have that problem ALOT!!!!


net use P: \\192.168.1.100\DATAPART1 pass /USER:Administrator\SFNG.LOCAL

In speaking about Administrators, make sure if you get it to work with the admin, you test a domain user. It may work for Admin, and then i think i have it figured out, and get bubble burst when it doesn't work for domain users because of gp policy.

Last edited by Kobe 310; 5th September 2012 at 16:37..
  #10  
Old 7th September 2012, 13:21
Dumber's Avatar
Dumber Dumber is offline
Moderator
 
 Join Date: Dec 2003
  6 month star 12 month star
 Location: The Netherlands
 Posts: 8,067
 Reputation: Dumber is a splendid one to beholdDumber is a splendid one to beholdDumber is a splendid one to beholdDumber is a splendid one to beholdDumber is a splendid one to beholdDumber is a splendid one to beholdDumber is a splendid one to behold (820)
Default Re: Mapped dive gets disconnected

Just set the correct NTFS and Share permissions for the users, or better a group where the users belong to.
Using an admin account to map a drive is just nuts.
__________________
Marcel
Netherlands
http://www.phetios.com
http://blog.nessus.nl

MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
No matter how secure, there is always the human factor.
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Legacy NIC Disconnected? Kyuuketsuki Microsoft Hyper-V Technology 2 28th September 2009 14:44
Mapped drives show as disconnected. bigalusn Active Directory 26 10th March 2009 18:05
'Disconnected Mapped Drive"... Cyberhypi Windows Server 2000 / 2003 2 18th December 2007 13:02
TS Clients getting Disconnected Mark0 Terminal Services 5 13th July 2006 15:15
disconnected zivw Outlook XP/2003/2007 1 2nd August 2005 09:27


All times are GMT +3. The time now is 00:52.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri