parental-control
parental-control copied to clipboard
Compatibility for Windows 10/11 HOME editions
Thank you for sharing this tool! It looks perfect and works fine on Windows Pro/Enterprise Editions. For the latter I found one small issue in https://github.com/vasyaod/parental-control/blob/master/schedule-daemon/src/WindowsCommand.hs
The msg command requires '/TIME:10' rather than '/10'. At least on my test system the message would not be displayed otherwise.
A bigger problem would be Windows 10/11 HOME editions, which probably most children will run rather than a Pro or Enterprise Edition: The Windows commands 'query', 'msg' and 'logoff' do not exist in the HOME editions!
There may be ways to substitute them however. The substitutions should work with any edition of Windows, but are a little less powerful in that they only work with the current user (if multiple users are logged in the user with an active desktop is considered the current user):
Instead of 'query': Use 'wmic /node:localhost COMPUTERSYSTEM GET USERNAME'
Instead of 'logoff': Use 'shutdown /l'
Instead of 'msg': Use the vbs method shown here: https://superuser.com/questions/1278006/how-to-display-a-msgbox-directly-from-cmd. Message file can obviously be stored as part of the parental control as it is a static message
Any chance to make this work?