logo elektroda
logo elektroda
X
logo elektroda

Windows XP-10: Check Password Last Changed, User Login History & 30-Day Policy via Command Line

fraksipon 4641 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16425589
    fraksipon
    Level 14  
    Please let me know if you can check it from the command line
    1) who logged on to the computer when
    2) when the password was last changed
    3) is there a security policy that forces the user to change the password every 30 days.

    I have different versions of windows from xp to 10 and I wonder if there is a command to check the above information and if it will work in every version of windows.
    Please reply.
  • ADVERTISEMENT
  • #2 16425727
    morfeusz9510
    Level 9  
    net user {nazwa_uzytkownika}
    will show the basic statistics about the account, in terms of filtering you can use the find command after this command
  • #3 16425822
    dt1
    Admin of Computers group
    Additionally:
    net accounts
    will show the current account security settings (whether password changes are forced, every how many days, etc.). You can also configure these parameters from the command line (probably with administrator privileges) - we will see the description of the parameters after giving the command:
    net help accounts
ADVERTISEMENT