Share via


Setting user time limits in powershell

Question

Sunday, January 7, 2018 6:25 PM

Hi,

Can you give me a line of code for use in Windows 10 powershell which will limit the times my kids can log on,

say m-f 6pm to 9pm and s-s 4pm to 10pm

Thanks

All replies (2)

Tuesday, January 9, 2018 7:10 AM

Hi Nicola,

Please try to run the following command line in Power Shell(replace test with your kids user account):

cmd.exe /c "net user test /time:M-F,6pm-9pm;s-s,4pm-10pm"

Bests,

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, January 12, 2018 4:59 AM

Hi,

Any update?

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].