Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Prevent logoff

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,49262
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Prevent logoff
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Prevent logoff - 7/10/2007 4:26:56 AM   
  kbern3

 

Posts: 1
Score: 0
Joined: 7/10/2007
Status: offline
This script is designed to prevent a logoff from happening if a specific program is running, otherwise, if the program isn't found, let the logoff process continue.  I don't know everyone's script knowledge level so just in case I need to clarify I use the words process/program/executible interchangeably throughout the following explanation:

When the script is double-clicked it searches through the process list for a specific executible file.  If this process is running on the computer the script will display a message to the user stating "x processes found.  Please close before continuing to logoff". If the process is not found the script will logoff the user.  In order for this to work you need to put a shortcut to this script in the Start menu (and/or desktop) and edit local group policy so that the logoff button no longer appears in the Start or Ctrl+Alt+Del menu.  This will force users to click on the script whenever they want to logoff.  You also need to change where it states insert program name name to whatever program you want the script to search for.  You can also use this script to prevent shutdown and restart.  I made a comment towards the end of the script as to how.



      

< Message edited by kbern3 -- 7/10/2007 4:39:18 AM >
 
 
Revisions: 2 | Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Prevent logoff Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts