Richard de Vos schrieb: > Hello, > > Does anybody knows how i can detect if a user has logd in on a system. > > I use de psshutdown command but if a user still hasn't logs on i would > be great to have a immediate restart and not a 10 minute wait.
"tasklist /v" will display a list of all tasks and their users. If there is no DOMAIN\user or THIS_WORKSTATION\user, you can assume noone is using the machine. In other words: parse the output of "tasklist /v", and decide the action. -- Tomasz Chmielewski http://wpkg.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wpkg-users