Jump to content

Recommended Posts

Posted

:hello:

Hi hope you guys can help,

I'm using net use to map a local drive to my LPT1 ports via login script.

How can i get windows 2000 to reset any drives mapped with net use when i log off.

It only resets when the PC is rebooted

WinXP doesn't have this problem

Any suggestions ??

Minus Human


Posted

Add /PERSISTENT:NO to the end of each map in your logon script. For example:

net use X: \\SERVER\SHARE /PERSISTENT:NO

Are you using regular batch files for your logon script?

Posted

You may also want to look into implimenting a logoff script. You could configure it with commands to delete the mapped drives. More work, but might be just what you need to ensure those pesky mapped drives don't stick around. If you are using AD, then there is a GPO just for scripts! Gives you four runtime options, one of them being log-off. Good luck!

Posted

The /PERSISTENT:NO should take care of it...but yeah, having a log off script just to be sure doesn't hurt either.

Personally, I use KiXtart scripts for my logon scripts. It allows you to do much more than just mapping drives. You can have a single script for your entire organization and still map drives depending on what group they're in. KiXtart gives you plenty of functionality. I'll post a cleaned up copy of my logon script if you're interested in seeing what you can do with it.

http://www.kixtart.org/

A lot of people actually copy KIX32.EXE to all of the workstations but this isn't necessary if you're in a pure Windows 2000/XP environment. You can just call it from your NETLOGON share.

Posted

you can delete mapped drive by command line like

...
rem Go to local drive to allow disconnect mapped drive ...
%systemdrive%
cd \
rem Disconnect ...
net use X: /DELETE /YES

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...