Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Mapped drives on xp

I have a client with Server 2008 r2 and 10 workstarions with Win 7 and XP. 2 of the xp machises will not hold the mapped drives. These are simple maps to a fileserver supporting dental practice applications. One of the machines will hold 1 of 2 maps and the other will not hold either on reboot.
I do not have scripts on the local or server yet. As stated, 8 of the machines work fine, does not seem to be server issue.
There is a domain, maps are lost on reboot but are not auto disconnected while logged on.
0
IT2Dr
Asked:
IT2Dr
  • 3
  • 2
  • 2
1 Solution
 
Kruno DžoićSystem EngineerCommented:
try command line:

net use z: \\share /persitent:yes
0
 
Hendrik WieseInformation Security ManagerCommented:
As it is only 2 machines you could always add the following script into their startup to ensure that the drives does get mapped:
Option Explicit
Dim objNetwork, objShell 
Dim strDriveLetter, strRemotePath, strUserName

strDriveLetter = "U:" 
strRemotePath = "\\YOURSERVERNAME\YOURNETWORKDIRECTORY\" 

Set objNetwork = WScript.CreateObject("WScript.Network") 

On Error Resume Next

strUserName = objNetwork.UserName 
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath & strUserName
objNetwork.MapNetworkDrive "S:" , "\\scends01\IEMASDfs\Centurion Public Data"

WScript.Quit

Sub ShowExplorer()
Set objShell = CreateObject("WScript.Shell") 
objShell.run ("Explorer" & " " & strDriveLetter & "\" )
End Sub

Open in new window


Hope this helps!!!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Hendrik WieseInformation Security ManagerCommented:
You can save my example script as FILENAME.vbs

Cheers!!
0
 
IT2DrAuthor Commented:
will net use need logon script?
0
 
Kruno DžoićSystem EngineerCommented:
no, open command promt and enter command
0
 
IT2DrAuthor Commented:
Thanks,
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now