Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Set Logon Time Limits For Any Account in Windows 10 and Windows 11
- @Echo Off
- Cls & Color 0E
- :::
- ::: · ·▐ ▄ ▄▄▄ .▄▄▄ ·▄▄▄▄▪ · ▪
- ::: · •█▌▐█▀▄.▀·▀▄ █·██▪ ██ .
- ::: ▪ ▐█▐▐▌▐▀▀▪▄▐▀▀▄ ▐█· ▐█▌ ▪
- ::: · ▪██▐█▌▐█▄▄▌▐█•█▌██. ██ . .
- ::: ▪ ▀▀ █▪ ▀▀▀ .▀ ▀▀▀▀▀▀• ▪
- ::: ▄▄▄ ▄▄▄ . ▌ ▐· . ▄▄▌ ▐▄▄▄▄▌
- ::: ▀▄ █·▀▄.▀·▪█·█▌▪ ██• •██
- ::: ▐▀▀▄ ▐▀▀▪▄▐█▐█• ▄█▀▄ ██▪ ▐█.▪
- ::: ▐█•█▌▐█▄▄▌ ███ ▐█▌.▐▌▐█▌▐▌ ▐█▌·
- ::: .▀ ▀ ▀▀▀ . ▀ ▀█▄▀▪.▀▀▀ ▀▀▀
- ::: (ccc)2022 by {FreeBooter} @NerdRevolt https://discord.gg/pfmjUJX
- :::
- ::: /// ::: /// ::: /// ::: /// ::: /// :::
- (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
- :_CHOICE
- Cls & Mode CON LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo 1 - Do You Want to Set Time Limit for %UserName%
- Echo.
- Echo 2 - Allow the %UserName% Access at all Times.
- Echo.
- Set /p input=:^>
- If Not %input%==1 (Goto :_Ex) Else (Goto :_Enable)
- :_Ex
- If Not %input%==2 (Goto :_CHOICE) Else (Goto :_Disable)
- :_Enable
- Cls
- Echo.
- Echo Specify the times that users are allowed to use the computer.
- Echo You can use 12-hour or 24-hour notation for hours.
- Echo If you use 12-hour notation, use AM and PM, or A.M. and P.M.
- Echo You can use any of these syntax 08:00 or 8am.
- Echo.
- Echo Type Logoff Hour
- Echo.
- Set /p Start=:^>
- Cls
- Echo.
- Echo Type Login Hour
- Echo.
- Set /p Login=:^>
- Net user %UserName% /times:M-Su,%Start%-%Login%
- Cls & Mode CON LINES=11 COLS=60 & Color 0E & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Denying %UserName% Access to Windows
- Echo.
- Echo.
- Echo.
- Ping -n 4 localhost >Nul
- Exit
- :_Disable
- Net user %UserName% /time:all
- Cls & Mode CON LINES=11 COLS=70 & Color 0E & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Allowing the %UserName% Access to Windows at all Times
- Echo.
- Echo.
- Echo.
- Ping -n 4 localhost >Nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement