Customize shutdown event tracker at user log on, make user state or type a reason

Hi Experts!

I have allready made a question in the Windows 2003 server forum but they thought that I should try here instead.

What I want to do is to have something that appears at log in that forces the user to state or type a reason for logging on to the server. My thought was to customize shutdown event tracker that also loggs in the event viewer but the available tools that I konw of doesnt let me customize it the way I want to like the tool cutreasonedit.exe.

Does anybody in here have any idea how to maybe script this?

Thanks Jim  
Who is Participating?
Here's a basic template for how to do this with VBScript.  To add more bells and whistles (like mandatory entry), you would have to use a more sophisticated language such as one of the .net flavors.
option Explicit
Dim eventText
Dim objShell
eventText = inputBox("Enter reason for logging into this server: ", "Login Reason")
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent 0, eventText

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.