You probably know this but in case you don't, Windows has built in feature for setting up allowed login days and hours for a particular account. It can be done in the following way
net user account_name /times:[{times | ALL}]
but when I used it to restrict