0
I am trying to limit an account on my computer. It is an admin account (standard account is too restrictive to be useful), not the local admin. I ran:
Found a way. Just run Command Prompt as administrator, then use the
net
command:REM run Command Prompt as administrator REM set restrictions net user joe /times:M-F,3pm-9pm;Sa-Su,9am-11am REM remove restrictions net user joe /times:all REM see current status net user joe
than did:
To lock user session after logon hours expire, run the Local Group Policy Editor and set action to take when logon hours expire:
Press Win+R, then type gpedit.msc. Under User Configuration -> Administrative Templates -> Windows Components -> Windows Logon Options, click on Set Action to take when logon hours expire. Choose Enabled, then set the action to Lock or Logoff, depending on your needs.
but it seemingly did nothing and user experiences nothing. What am I missing? Is it just because it is an admin account?
if it is a Microsoft account vs a local account, would that make a difference?. – Brent – 2016-06-26T11:55:47.953
1Why are you trying to restrict an Administrator account, as an Administrator account, it can remove any restrictions placed on it. – Ramhound – 2016-06-26T14:02:14.003
so would work if standard account? – Brent – 2016-06-26T17:34:52.730
if it is a standard account, you can just use the builtin Family Safety tools. – None – 2016-11-10T13:59:08.287
Perhaps you could make it a power user? Also note, the time can be changed in the BIOS to bypass this. And if the BIOS is PW-protected, there are ways around that, too. Keep that in mind if this is important. – InterLinked – 2020-01-23T12:32:03.600