Manage XP and Vista users using dos commands

Last update on April 18, 2009 09:14 AM by deri58
Published by deri58

Manage XP and Vista users using dos commands







Here is how to manage users with DOS in XP and Vista. You will say, why go through DOS if you can go through gpedit.msc?
The simple answer is no gpedit.msc in Vista is family and family in XP, DOS commands work for all versions.

Before you begin, you need to know where to enter commands. First, log on as administrator. Then:
For XP: Start Menu-> Run ... -> Type cmd and press enter

For Vista: Start Menu-> in the search module type cmd-> right click cmd and run as administrator.

Enabling or disabling a user


What is it?

This enables a user or not. If a user is active, it can connect, if it is inactive, it will not connect.
how?

to disable the user in the DOS window, type:

net user user_name /active:no


or, to enable, type:

net user user_name /active:yes

Set a password


• What is it?

This command defines a new password to a user

• How to do it?

You need to type:

net user user_name password

Requiring a user to change password at next logon


• What is it?

This defines whether a user must change password at next logon.

• How to do it


to change his password at next logon type:

net user user_name /logonpasswordchg:yes

Specify if the user has the right to change his password


• What is it?

This defines whether a user can change his password or not

• how?

to allow, type:

net user user_name /passwordchg:yes


to forbid, type:

net user user_name /passwordchg:no

Set the minimum length of a password for all users


• What is it?

This defines the minimum size of a password

• how?

Type:

net accounts /minpwlen: length

Choose the minimum period before a user can change password


• What is it?

This selects the number of days before a user can change a password

• how?


Type:

net accounts / minpwage: Days

Prevent a user from reusing the same password


• What is it?

This prevents a user from reusing the same password. So that it can reuse the same password, it will change how many times you decide

• how?

Type:

net accounts / uniquepw: Number range1 and 24
Best answers for « Manage XP and Vista users using dos commands » in :
[Vista]Copying the results of a DOS command Show [Vista]Copy the results of a DOS command Intro Implementation Shortcuts: How to Copy the results to a text file? Intro Under Windows Vista and Windows Server 2003, the CLIP command allows you to copy the results of command in the DOS...
Basic MS-Dos commands ShowBasic MS-Dos commands Intro The command prompts: Intro Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the...
Know everything about DOS commands ShowKnow everything about DOS commands References from A to Z of the command lines Go to Start - Run andtype: %windir%\hh.exe ms-its:%windir%\Help\ntcmds.chm::/ntcmds.htm
Command to detect your IP address! ShowCommand to detect your IP address! Command for Windows 2000 / XP / Vista Command for Windows 95/98 Command for Linux IP address (Internet Protocol) is a numerical identification to detect your computer on a network. It is used to...
Download Intel® PROSet/Wireless for XP and Vista ShowIntel PROSet Wireless Intel is the driver necessary for handling wireless networks. The list of chipsets supported are: Intel ® WiFi Link 5100 Intel ® WiFi Link 5300 Intel ® Wireless WiFi Link 4965AGN Intel ® PRO / Wireless 3945ABG...
Operating Systems - MS-DOS - Commands ShowCommand Description dir lists the contents of a folder cd changes folder cd .. parent folder md or mkdir creates a new folder deltree deletes a folder and all sub-folders copy, xcopy copies...
Operating Systems - Customising DOS ShowThe DOS start-up procedure is defined in the autoexec.bat and config.sys files located in the root of your "C:\" drive. We highly recommend making back up copies of these files before modifying them. To deactivate a line of command in either file...
Using Telnet ShowIntroduction to Telnet Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it...