Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, September 24, 2017 2:41 PM
When setting time limits for my child's account, I can successfully change a uniform time across multiple days, but I cannot successfully add a second time limit on the command. Please see an example below. Any tips appreciated!
PS C:\Windows\system32> net user panda /time:M-Su,7pm-8pm
The command completed successfully.
PS C:\Windows\system32> net user
User accounts for \DESKTOP-SE89593
Administrator DefaultAccount Guest
Mama Ho Panda
The command completed successfully.
PS C:\Windows\system32> net user panda
User name Panda
Full Name
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 8/13/2017 9:05:43 AM
Password expires Never
Password changeable 8/13/2017 9:05:43 AM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon 9/23/2017 10:19:33 PM
Logon hours allowed Sunday 7:00:00 PM - 8:00:00 PM
Monday 7:00:00 PM - 8:00:00 PM
Tuesday 7:00:00 PM - 8:00:00 PM
Wednesday 7:00:00 PM - 8:00:00 PM
Thursday 7:00:00 PM - 8:00:00 PM
Friday 7:00:00 PM - 8:00:00 PM
Saturday 7:00:00 PM - 8:00:00 PM
Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.
PS C:\Windows\system32> net user panda /time:M,4AM-5PM;T,1PM-3PM
At line:1 char:33
- net user panda /time:M,4AM-5PM;T,1PM-3PM
- ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
PS C:\Windows\system32>
All replies (1)
Sunday, September 24, 2017 4:29 PM
The PowerShell prompts gets confused by the command it appears (same when I run it in a PS prompt).
From an admin command prompt it works.
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Windows\system32>net user panda /time:M,4AM-5PM;T,1PM-3PM
The command completed successfully.
C:\Windows\system32>net user panda
User name panda
Full Name
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 24/09/2017 17:16:52
Password expires 05/11/2017 17:16:52
Password changeable 24/09/2017 17:16:52
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon Never
Logon hours allowed Monday 04:00:00 - 17:00:00
Tuesday 13:00:00 - 15:00:00
Local Group Memberships *Users
Global Group memberships *None
The command completed successfully.