Solved

net use command

Posted on 2013-02-06
2
496 Views
Last Modified: 2013-02-06
I'm setting up a simple batch file to setup my network drives. in the past i have used the /persistent switch. At one of the places i worked, /persistent:no seemed to be better for when laptop users were offsite. I think what was happening was the /persistent:no switch would keep windows from continuously trying to connect to network shares that didn't exist when they where offsite.
So my question is, does the persistent:yes switch make windows keep looking for a share, and does the :no option make windows not look for the share?
0
Comment
Question by:JeffBeall
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 38859687
If a drive is mapped "persistent", it means that if the drive is still mapped when the user logs off, Windows will try to reconnect it automatically when the user logs on the next time.
If persistence is off, Windows will forget about it once the user logs off.
If you're mapping automatically(?) with a batch script anyway, using "/persistent:yes" is sort of redundant.
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 38859826
thank you, that is a good explanation. so i think i'll use persistent:no, so windows doesn't try to connect if I am "offline"
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

757 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

18 Experts available now in Live!

Get 1:1 Help Now