Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a mapped network drive P: on many client machines. I want the drives to show up as disconnected every time the machine starts. (so that a user has to give credentials to login to that drive) Most of the time it shows up disconnected without a hitch. But at other times the drives show up as connected... I am not sure how the students/users are making this happen. There are other network drives on the machine mapped to other locations.
I have seen custom software for maping at a few college web sites....but nothing you can configure yourself.
What would be the best way to attack this with a script or have someone make me a VB program with a simple interface?
thanks in advance,
Rob

i assume your a sys admin or something like that? i am kinda stupified that if ure in a school or workplace situation that you would let every1 log on under 1 ID and map their network drives from there.. Wat i suggest is that u invest (or downlaod if u really want) a version of windows 2000 server or something like that so u can set this things up automatically..
but to your problem now.. i suggest u make a simple logon script (a batch *.bat file) which would disconnect and reconect the netowrk drive therefore making the past credentials to be cleared (you could even make a logoff script as well to save hassles)
here it is.."net use /delete /y"
"net use p: \\<computer>\<share name> /persistant:no"and thats all u do ( add more lines for other drives..) (the " represent lines leave them out but make sure everything inbetween them are on the same line)
ok..
you caop and paste that (without the "'s) into notepad and save a .bat file now comes the hard part..
u have to make it so windows XP will run the batch file.. wat u need to do is save it in C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon..
fianlly u need to click run > type in gpedit.msc (window will pop up) > click user configuration > windows settings > Scripts (logon logoff)double click the logon in the right window pane.. and a dialogue box will popup, u then will need to click add, and you will see the file you put in the C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon folder before.. click it and leave the parameters blank click ok.. and it will execute every time someone logs onto that computer..
now if you have 20 or less computers this would be considerably easy.. but over 20 computers would be a waste of time.. you can also do this from one master computer (afetr u have put the files on each computer) through mmc but im not going to explain that here..
thats about it.. email and tell em how you get on, i will be very glad to help you with this if you get stuck

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |