Hi all,
i have written alittle script which auto-reboots the machine that my kids use so as to limit their usage to two hours per session, However, I wanted to know if there is way to keep track of how many times someone has logged in on any given day and use this to prevent logons.
Eg child one has had his 2 hours and has been shutout and tries to login again and so needs to be blocked.
I'm playing with the Win32_logonsession class but I think I may have to use some kid of log reading function to check for certain logon types and check that there have not been more than two perhaps. Or add up all the session times for the day.
I know there's software out there that can do this but as I'm saving up for a new mountain bike frame I can't afford to spend the cash! Invention is the mother of necessity etc....
i have written alittle script which auto-reboots the machine that my kids use so as to limit their usage to two hours per session, However, I wanted to know if there is way to keep track of how many times someone has logged in on any given day and use this to prevent logons.
Eg child one has had his 2 hours and has been shutout and tries to login again and so needs to be blocked.
I'm playing with the Win32_logonsession class but I think I may have to use some kid of log reading function to check for certain logon types and check that there have not been more than two perhaps. Or add up all the session times for the day.
I know there's software out there that can do this but as I'm saving up for a new mountain bike frame I can't afford to spend the cash! Invention is the mother of necessity etc....