Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2009-04-21
2
Medium Priority
?
454 Views
Last Modified: 2012-05-06
Hi Experts!

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

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_24227482.html

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  
0
Comment
Question by:jimloa
1 Comment
 
LVL 22

Accepted Solution

by:
Paka earned 780 total points
ID: 24292660
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

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question