Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Win2K Pro shut down script

Posted on 2002-03-25
3
Medium Priority
?
144 Views
Last Modified: 2010-04-13
I have a batch file that deletes the mapped network drives and I want it to run when the notebook is shutdown/restarted.

Where in the registry do I put it?

Derek.
0
Comment
Question by:dgwest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
geoffryn earned 400 total points
ID: 6894941
Why don't you map the drives with the /persistent:no switch and allow the OS to remove them on shutdown.

NET USE \\servername\share /PERSISTENT:NO
0
 

Author Comment

by:dgwest
ID: 6896535
Well that's a good idea.  I don't do much work with scripts so I didn't know you could do that.  The problem is that the notebook is remote and it seems to stay at the "Restoring Network Connections" box for 30 seconds and I'm assuming it's because it's trying to re-connect to the mapped drives and I want to make sure they are deleted before the machine is powered down.

I'll monitor the situation today to see if it works.

Derek.
0
 

Author Comment

by:dgwest
ID: 7206350
Better late then never I guess.  Sorry for the late response.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Sometimes Administrators rights are not enough. These cases call for the SYSTEM account. The process in this article outlines the steps required to execute commands using the SYSTEM account.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

636 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