?
Solved

Disable Ctrl-Break from logon VBScript

Posted on 2004-08-10
4
Medium Priority
?
450 Views
Last Modified: 2012-05-05
Well, I've got this really nifty VBScrip that runs on all domain users.  It enforces Single Logon rules set up by our enterprise, but canny users have discovered that using Control - Break will get them out of the script and bypass the process that prevents them from having multiple logons.

How do I prevent users from using ctrl-break to stop the script from running?  This is a native Windows 2000 Active Directory environment.  All workstations are 2k.

Thanks in advance.
0
Comment
Question by:Ranidae
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 14

Expert Comment

by:dlwyatt82
ID: 11768503
There are many ways to do this. One that I am familiar with is to use AutoIt (available from http://www.hiddensoft.com ) and use the BlockInput function. I'm sure there is probably an API call you can make from within your VB script to accomplish the same result, but I don't personally know which functions to call.

0
 
LVL 2

Author Comment

by:Ranidae
ID: 11776640
Yeah, I'm really hoping someone can tell me what API to call as I really don't want to get into third party solutions.
0
 
LVL 14

Expert Comment

by:dlwyatt82
ID: 11776665
Actually, if you check out the hiddensoft webpage, the C++ source code to AutoIt is available. You could just look at his implementation of the BlockInput function to find out which API calls you should be researching.
0
 
LVL 14

Accepted Solution

by:
dlwyatt82 earned 1400 total points
ID: 11776742
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
New style of hardware planning for Microsoft Exchange server.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

752 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