Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - log off or lock workstation then unmap drive

Reply
 
Old 01-13-2009   #1 (permalink)
freddy


 
 

log off or lock workstation then unmap drive

I have one account that logs into the workstation and than the user maps a
drive to a shar using their own user id and password. The problem is that
since more than one user uses the computer with the same account and if the
first user never unmaps the drive the 2nd user will keep the drive mapping as
the 1st user.
I would like a script to monitor if the user log off the computer or locked
it than unmap drive to force the next user to map the drive with their user
id and password.

My System SpecsSystem Spec
Old 01-13-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: log off or lock workstation then unmap drive


"freddy" <freddy@xxxxxx> wrote in message
news:C7D43139-F35B-4CCF-91CD-E1CB9B879BBD@xxxxxx
Quote:

>I have one account that logs into the workstation and than the user maps a
> drive to a shar using their own user id and password. The problem is that
> since more than one user uses the computer with the same account and if
> the
> first user never unmaps the drive the 2nd user will keep the drive mapping
> as
> the 1st user.
> I would like a script to monitor if the user log off the computer or
> locked
> it than unmap drive to force the next user to map the drive with their
> user
> id and password.
A logout script can unmap the drive, but I don't know of any way to detect
and run a script when the user locks the machine. Also, what if a second
user logs into the computer before the first logs out?

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 01-14-2009   #3 (permalink)
Al Dunbar


 
 

Re: log off or lock workstation then unmap drive


"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
message news:eCNmyIadJHA.4684@xxxxxx
Quote:

>
> "freddy" <freddy@xxxxxx> wrote in message
> news:C7D43139-F35B-4CCF-91CD-E1CB9B879BBD@xxxxxx
Quote:

>>I have one account that logs into the workstation and than the user maps a
>> drive to a shar using their own user id and password. The problem is that
>> since more than one user uses the computer with the same account and if
>> the
>> first user never unmaps the drive the 2nd user will keep the drive
>> mapping as
>> the 1st user.
>> I would like a script to monitor if the user log off the computer or
>> locked
>> it than unmap drive to force the next user to map the drive with their
>> user
>> id and password.
>
> A logout script can unmap the drive, but I don't know of any way to detect
> and run a script when the user locks the machine. Also, what if a second
> user logs into the computer before the first logs out?
A logon script can also unmap drives. If this were a domain environment the
issue would not arise, as you cannot logon to a workstation that is locked
by another user.

In this case, it appears that all of the users are using the same local
account to logon, so if someone tried to logon while it was locked, he would
simply be unlocking it and accessing the previous user's session.

/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
lock a drive and folders Vista security
Hard Drive activity causes lock up Vista General
Lock CD/DVD Drive? Vista hardware & devices
Split Tokens? - Network Shares - red X's, map/unmap Vista networking & sharing
WLM doesn't unmap UPnP ports on exit Live Messenger


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46