Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Using NET USE Command to Connect to Remote Resources

23 Jan 2015   #1
StrongEagle

Win 7 Pro 64 bit
 
 
Using NET USE Command to Connect to Remote Resources

My primary issue is that I have a least a couple of staff members whose PC's simply will not remember drive mappings from one logon to the next. The behavior is erratic. For example, on one user PC, one drive mapping to the local server drops everyday while another to the same server but different folder only drops sometimes.

Also this user logs into a remote server from time to time using Citrix, and drives are mapped to the remote server resources. When not connected, they show up with a red X. However, one of three drive mappings to the remote server also drops everyday while the others remain in place.

I figured I would solve the problem by setting up a logon script to map all the drives. But, this doesn't work for the remote drives... they are not connected at logon the the net use command fails.

How can I go about either using this process or ensuring that the mapped drives don't get lost on the PC?

TIA


My System SpecsSystem Spec
.
23 Jan 2015   #2
ShoTTaS

Windows 7 Pro 32bit
 
 

Hi StrongEagle,

Does this PC connected via DHCP?
if Yes, do the IP's are reserved for each of the PC?
if No, you need to set-up the IP reservations on your DHCP server.
That could also be on the security settings of your mapped drives.
My System SpecsSystem Spec
24 Jan 2015   #3
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hey,

The Net use command will make temporary drive mappings unless you supply the /persistant:yes switch. Once you do, the drive mapping will survive reboots.
My System SpecsSystem Spec
.

27 Jan 2015   #4
StrongEagle

Win 7 Pro 64 bit
 
 

Quote   Quote: Originally Posted by Pyprohly View Post
Hey,

The Net use command will make temporary drive mappings unless you supply the /persistant:yes switch. Once you do, the drive mapping will survive reboots.
That's the problem... they are set to persistent, and they don't show up on reboot. I've done it through the GUI and through the command line interface... it makes no difference.

Out of 20 or so Win 7 PC's about 3 people are experiencing this issue.
My System SpecsSystem Spec
27 Jan 2015   #5
StrongEagle

Win 7 Pro 64 bit
 
 

Quote   Quote: Originally Posted by ShoTTaS View Post
Hi StrongEagle,

Does this PC connected via DHCP?
if Yes, do the IP's are reserved for each of the PC?
if No, you need to set-up the IP reservations on your DHCP server.
That could also be on the security settings of your mapped drives.
All the PC's are DHCP IP assigned and none are reserved. The server, on which the drive mappings reside, is a static IP server.

Why would setting reserved IP's make any difference when the mapping is to the server from the PC? I'm not saying I'm not going to try this, and I would like to understand the logic behind it.

Thanks.
My System SpecsSystem Spec
27 Jan 2015   #6
ShoTTaS

Windows 7 Pro 32bit
 
 

You need to reserved the IP.
Computers connected to DHCP when not reserved, leases an IP and it has a time duration depending on what the administrator allocated on the server.
If that leased IP expires, the next time you turned-on the PC, it will obtain a new IP from your DHCP.
That could be the problem you are facing.

For your reference, here's a link: The TCP/IP Guide - DHCP Lease "Life Cycle" Overview (Allocation, Reallocation, Renewal, Rebinding and Release) and Lease Timers

I hope i have help you.
My System SpecsSystem Spec
27 Jan 2015   #7
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by StrongEagle View Post
I've done it through [...] the command line interface
So you've tried the following command on the staff members' machines?
Code:
net use /persistent:yes

Quote   Quote: Originally Posted by StrongEagle View Post
Out of 20 or so Win 7 PC's about 3 people are experiencing this issue.
If it's just 3 of 20 users experiencing the same issue, you could temporarily evade the problem by placing a simple script (see below) in each of those users Startup folders that will run the net use command at login.

Meanwhile, if you get the chance to do any testing, I would create a new user account on one of the problem PCs and check if the issue persists.


MapDrive.vbs
Code:
Dim objShell, strCommand
strCommand = "net use L: ""\\ComputerName\Share\Location\"""
Set objShell = CreateObject("WScript.Shell")
objShell.Run strCommand,0
Copy the VBScript to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" on all three PCs.
My System SpecsSystem Spec
Reply

 Using NET USE Command to Connect to Remote Resources




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Remote Connect to a DVR
Hello, My network has a Windows Server 2008, a Linksys WRT320N router and a DVR and about 8 other computers. My network connects to the internet via a public ip. My aim is to remote access the DVR. I have used no-ip.com to assign a hostname to my public ip. But I'm not sure how to port forward...
Network & Sharing
Connect to web command opens print dialog instead
Hello, I have been having this problem for about a month now, and I'm not sure why. Whenever I'm in a program and I go to the 'download update' link, or I'm in a program and I click on 'web support', or anything else that would normally launch a browser, I get a prompt to print instead. I have a...
Browsers & Mail
Remote Desktop Client 6.1 Cannot connect to remote computer
We have several remote systems that can all connect fine. I am having an issue with one box. It is a windows 7 home premium machine with netgear wireless nic. When I open mstsc to connect to a remote machine I put in the ip address and click on connect. I receive an immediate failure with the...
Network & Sharing
Windows 7 unable to connect to network resources
I recently moved from an XP machine to Windows 7 Home premium and I am now unable to connect to network shares, printers, etc at work. This is a laptop that I use both at home and at work and it's not in the domain (neither was the XP machine). On the XP machine I just mapped network drives and...
Network & Sharing
Remote Desktop - Local Resources Not Working
Hi everyone - I apologize if this has been addressed; I did a search, and couldn't find an answer that worked. I am attempting to connect two computer via Remote Desktop. Both are running Windows 7 Professional, and they are not on the same network so this is going over the internet. ...
Network & Sharing
Shutdown Command and Remote Desktop
Im having a problem that i just can not figure out. I have two pc's running windows 7 64 bit. One labtop one desk. I have been recently trying to remote desktop but it will not work on neither computer. All the correct options are checked to allow. Firewall has exception for it on both ect. I just...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App