net user administrator | findstr /B /C:"Last logon" Last logon 6/30/2010 10:02 AM C:>** and this would be helpfull To be able to open an elevated Command Prompt window, either a) your Windows user account must already have administrator privileges, or b) you must know the password to another account on the computer that … That’s it you are done, now you can easily set up a time limit by entering this command. I want a script or a utility that I can use on the command line. NET PASSWORD: ... Windows NT, Windows 95, or NetWare time server. C:\> net user administrator | findstr /B /C:"Last logon" Last logon 6/30/2010 10:02 AM C:>. January 28, 2016 January 28, 2016 / thebashline. The exact command is given below. This will most likely be overridden by PAM, since the default pam_unix module has its own built in of 3 retries. At such times, using the command line is the best way to achive the goal. 4. There are many reasons why net time may fail to synchronize with a time server the first time (for example, there may be too many concurrent server requests). Achtung. You can also create a child account on Windows 10 to restrict the logged-in time. Beginning in Windows 8, command line task scheduling should instead be completed with the schtasks command… I used these commands on different Windows versions, from Windows XP up to Windows 10 and Server 2016. The command for setting time limits for a user follows this syntax: net user /time:,