Minus Human Posted December 27, 2005 Posted December 27, 2005 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 rebootedWinXP doesn't have this problemAny suggestions ??Minus Human
nmX.Memnoch Posted December 27, 2005 Posted December 27, 2005 Add /PERSISTENT:NO to the end of each map in your logon script. For example:net use X: \\SERVER\SHARE /PERSISTENT:NOAre you using regular batch files for your logon script?
Minus Human Posted December 28, 2005 Author Posted December 28, 2005 Thanks mmx, yes normal batch files.Will give your suggestion agoThanksMinus Human
InTheWayBoy Posted December 28, 2005 Posted December 28, 2005 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!
nmX.Memnoch Posted December 28, 2005 Posted December 28, 2005 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.
Sonic Posted January 1, 2006 Posted January 1, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now