Discussion Locked

Logon Script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,
I'm running a winnt4.0 enviornment w/95&98 clients. I have a logon script running that will map them to there home directory and a couple of other stuff. I hope this does not sound to odd. But is it possible to run a script for when a user logs off..You see, I made a registry change,that part of the logon script refers to, but when this one particular user logs off I would like this registry change to be put back the way it was. For the next user who logs on, who ever it might be....
Thank You

5 replies

by haissam

Hello There,

I don't know any way to run scripts at logoff (it might exist though!) but you can get around your problem by starting the logon script file by clearing the Registery entries. This will get rid of what the last user logon added then you can go on readding them as usual.

Hope this does the trick!

by mackem

You could try adding atrib -r to the end of your script.
This should make it read only. The changes can be made during a session but will revert back to the original settings after loggong off.
May be attrib -r. not sure of spelling.
best of luck
JV

This discussion is closed to new replies.