For example, if you want to change Maximum password age to 42 days, type the command:
net accounts /maxpwage:42
Set Minimum password age to 2 days, type:
net accounts /minpwage:2
Set Minimum password length to 3 characters, type:
net accounts /minpwlen:3
Log On Event IDs
|
Event |
Event ID |
Event Log |
Session Start/Stop |
|
Logon |
4624 |
Security |
Start |
|
Logoff |
4647 |
Security |
Stop |
|
Startup |
6005 |
System |
Stop |
|
RDP Session Reconnect |
4778 |
Security |
Start |
|
RDP Session Disconnect |
4779 |
Security |
Stop |
|
Unlocked |
4800 |
Security |
Start |
|
Locked |
4801 |
Security |
Stop |