Seeing that my wife sits in front of the computer all day holding our son who is less than one year old to watch movies, I feel sorry. So I installed a TV satellite receiver for my wife so that she can watch TV. However, my wife didn't appreciate it and still did the same. There was no way, so I set a password. But I couldn't completely prevent her from using it, so this trick didn't work. Then I looked up information and wrote the following small batch processing. Put the file in the root directory of drive C, and put the shortcut in the startup. But there is a shortcoming that an initial file for the password must be established, and I always feel it's not convenient. Everyone, see if there is a way to improve it
@echo off
color e
echo =============================================
echo Wife, please pay attention!!!
echo 1、This boot will automatically shut down after 2 hours!!!
echo 2、Next time you start Windows, the login password will be changed!!!
echo =============================================
set /p str=<c:/pass.txt
set /a str=str+16
echo %str% >c:/pass.txt
net user administrator %str%
shutdown -s -t 7200 -c "Dear wife, in order to protect our son from computer radiation, I can only use this way to limit your computer time. The password will be changed when you boot next time!!! If you think the window is in the way, you can drag it to one side!!!"
pause
exit
@echo off
color e
echo =============================================
echo Wife, please pay attention!!!
echo 1、This boot will automatically shut down after 2 hours!!!
echo 2、Next time you start Windows, the login password will be changed!!!
echo =============================================
set /p str=<c:/pass.txt
set /a str=str+16
echo %str% >c:/pass.txt
net user administrator %str%
shutdown -s -t 7200 -c "Dear wife, in order to protect our son from computer radiation, I can only use this way to limit your computer time. The password will be changed when you boot next time!!! If you think the window is in the way, you can drag it to one side!!!"
pause
exit

