I am trying to do the following:
Instead of disabling a user, I want to display to the user a custome message that says why his account is disabled by reading from a directory that contains a txt file under his/her name, eg user1.txt, user2.txt. If user1 logins gets the message under his name, if user2 logis gets the message under his loginname then the script automatically logs off the user. I can do this by moving the user to a diff OU, but since I have 4 OU, I will not know where to put him back ones user is enabled. Instead I want to display a message to him and log him off and he will act on what the messge says.
Thanks
eyob
Feel free to email to eyob2002000@yahoo.com
Help with vbscript to display a message
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Help with vbscript to display a message
I am trying to do the following:
Instead of disabling a user, I want to display to the user a custome message that says why his account is disabled by reading from a directory that contains a txt file under his/her name, eg user1.txt, user2.txt. If user1 logins gets the message under his name, if user2 logis gets the message under his loginname then the script automatically logs off the user. I can do this by moving the user to a diff OU, but since I have 4 OU, I will not know where to put him back ones user is enabled. Instead I want to display a message to him and log him off and he will act on what the messge says.
Thanks
eyob
Feel free to email to eyob2002000@yahoo.com
Instead of disabling a user, I want to display to the user a custome message that says why his account is disabled by reading from a directory that contains a txt file under his/her name, eg user1.txt, user2.txt. If user1 logins gets the message under his name, if user2 logis gets the message under his loginname then the script automatically logs off the user. I can do this by moving the user to a diff OU, but since I have 4 OU, I will not know where to put him back ones user is enabled. Instead I want to display a message to him and log him off and he will act on what the messge says.
Thanks
eyob
Feel free to email to eyob2002000@yahoo.com
Help with vbscript to display a message
Well, first question. Why ARE you disabling the account? How are planning on displaying this message? When the user attempts to login, they're going to get a standard windows message that their account has been disabled and to contact the administrator. They won't run any login scripts, so how do you even intend to populate such a message?