Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Auto Logout Script upon Mouse/Keyboard diconnection

12 Aug 2017   #1
ivanz

windows 7 32bit
 
 
Auto Logout Script upon Mouse/Keyboard diconnection

Hello,

I wish to run this auto-logout script when a Mouse and/or Keyboard gets disconnected.
I tried using Task Scheduler and set to launch the script when computer enters IDLE mode,
But since there are some application running on the background, the computer doesn't always enter IDLE mode.

This script will be used in computers where once an specific time is reach, The Monitor, Mouse and Keyboard will be disconnected from the computer.

And I wish to run this scrip standalone..

by the way, here's the .bat script:

Quote:
:: Don't display commands
@echo off

:: Display message to user
echo.
echo THANK YOU FOR CHOOSING JOLOGS-CAFE.
echo.
echo THIS COMPUTER WILL LOGOUT IN 60 SEC.
echo.
echo CLOSE THIS WINDOW TO STAY LOGGED IN.
echo.

:: Wait 60 seconds
timeout /t 60

:: Log out
shutdown /l
Hope someone could help.. Thanks..


My System SpecsSystem Spec
.
Reply

 Auto Logout Script upon Mouse/Keyboard diconnection




Thread Tools




Similar help and support threads
Thread Forum
Script to auto save work to sd card as well as computer
Was wondering if anyone knows of or could create a Script that saves anything i save to My Computer also saves to my sdcard as a backup,this is mainly for my sons school laptop.Using a USB stick is not a good option as he broke 1 off allready :mad: So i thought the SD Card option would be good,I...
Backup and Restore
Batch Script to Auto Update Sysinternals Tools
. Download it from here : Batch Script to Auto Update Sysinternals Tools :: Sysadmin Geek
Software
Win7 Auto Log In without Keyboard or Mouse
I'm trying to configure a control computer that will log into a customized user account without a keyboard or mouse. I've used the "control userpassports2" procedure from the run prompt, however I get a "Do not attempt to log on to this computer unless you are an authorized user" message which...
Customization
Auto Login Script For Wifi Hotspots?
I've been trying to find a way for the follwoing to happen; My mum and dad have a static caravan and have paid for the sites wifi for the year, which works fine. When you open a browser it autoredirects you to a login page which needs your username and password. This is fine for their...
Network & Sharing
Looking For A auto key-pressing script ?
I`m looking for a script that can press (ENTER) and then press (CTRL + F) right after windows loged on. I'm running windows 7 ultimate 64 bit. please if any one can help or know of something let me know.:cry:
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:11.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App