[wpkg-users] shutdown with no users logon.

Tomasz Chmielewski mangoo at wpkg.org
Fri Aug 3 17:42:18 CEST 2007


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


wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list