TECHDIIP

  • Tech
  • Windows
  • Powershell
  • Scripts
  • News
  • Games

Net commands in Windows Operating Systems

27 June 2020 admin Leave a Comment

Net commands in Windows Operating Systems, do you know using net commands configure anything from command line? here in this article, we explain some NET commands to perform a specific task. Here is the list of NET commands available in windows operating systems. These commands allow system administrators to manage the windows operations such as configuration, print, user sessions, local groups, and users, one can display, modify add, and remove the groups and users and more this article explains how to use these commands with the right parameters. ACCOUNTS COMPUTER CONFIG CONTINUE FILE GROUP HELP HELPMSG LOCALGROUP NAME PAUSE PRINT SEND SESSION SHARE START STATISTICS STOP TIME USE USER VIEW NET accounts command This command used to control the user logon settings from the command line, let’s list all the user settings of a current user.
C:\Users\Raj>net accounts
Force user logoff how long after time expires?:       Never
Minimum password age (days):                          0
Maximum password age (days):                          42
Minimum password length:                              0
Length of password history maintained:                None
Lockout threshold:                                    Never
Lockout duration (minutes):                           30
Lockout observation window (minutes):                 30
Computer role:                                        WORKSTATION
The command completed successfully.
To change the minimum password length, here is the command.

net accounts /MINPWLEN:8

The above command sets the password length to 8 How to set a never expiry password

net accounts /MAXPWAGE:UNLIMITED

How to set a password expiry days.

net accounts /MAXPWAGE:60

The above command sets the password expiry date to 60 days. Thank you for reading this article, if you have any questions please let us know. Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.

Windows

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Techdiip © 2012 - 2020 | Please Read Our

  • Privacy Policy
  • Disclaimer – User Agreement
  • About Us
  • Contact Us