Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Microsoft Networking Services > Active Directory
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

help on net user add

help on net user add

this thread has 3 replies and has been viewed 13844 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th November 2005, 07:36
netwarbler netwarbler is offline
Casual
Casual
 
 Join Date: Nov 2005
  6 month star 12 month star
 Posts: 1
 Reputation: netwarbler is on a distinguished road (10)
Default help on net user add

hi members

I am having trouble understanding the command line net user /add

I can add a username but don't know how to use teh other options. I need an exampel in plain english used MS site and its all greek to me.

Not sure of the rules

can anyone help?

thanks

netwarbler
  #2  
Old 18th November 2005, 11:37
ghemant's Avatar
ghemant ghemant is offline
Junior Member
It's not a coincidence
 
 Join Date: Aug 2005
  6 month star 12 month star
 Location: Surat,Gujarat,INDIA
 Posts: 123
  Send a message via MSN to ghemant Send a message via Yahoo to ghemant
 Reputation: ghemant has a little shameless behaviour in the past (-1)
Default Re: help on net user add

Hi,
pleaser refer windows help , open help -> search (with keyword net user) their is net user command and its various options are their :

Quote:
Net user
Adds or modifies user accounts or displays user account information.

net user [username [password | *] [options]] [/domain]

net user username {password | *} /add [options] [/domain]

net user username [/delete] [/domain]

Parameters

none

Used without parameters, net user displays a list of the user accounts on the computer.

username

Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.

password

Assigns or changes a password for the user's account. A password must satisfy the minimum length set with the /minpwlen option of the net accounts command. It can have as many as 127 characters. However, if you're using Windows 2000 on a network that also has computers using Windows 95 or Windows 98, consider using passwords not longer than 14 characters. Windows 95 and Windows 98 support passwords of up to 14 characters. If your password is longer, you may not be able to log on to your network from those computers.

*

Produces a prompt for the password. The password is not displayed when you type it at a password prompt.

/domain

Performs the operation on the primary domain controller of the computer's primary domain.

This parameter applies only to Windows 2000 Professional computers that are members of a Windows 2000 Server domain. By default, Windows 2000 Server computers perform operations on the primary domain controller.

Note

This action is taken on the primary domain controller of the computer's primary domain. This may not be the logged-on domain.
/add

Adds a user account to the user accounts database.

/delete

Removes a user account from the user accounts database.

options

Specifies the following options:

/active:{no | yes}

Enables or disables the user account. If the user account is not active, the user cannot access resources on the computer. The default is yes (active).

/comment:"text"

Provides a descriptive comment about the user's account. This comment can have as many as 48 characters. Enclose the text in quotation marks.

/countrycode:nnn

Uses the operating-system Country/Region codes to implement the specified language files for a user's Help and error messages. A value of 0 signifies the default Country/Region code.

/expires:{date | never}

Causes the user account to expire if date is set; does not ever set a time limit on the user account. Expiration dates can be in mm/dd/yy, dd/mm/yy, or mmm,dd,yy format, depending on the Country/Region code. Note that the account expires at the beginning of the date specified. Months can be a number, spelled out, or abbreviated with three letters. Years can be two or four numbers. Use commas or slashes to separate parts of the date (no spaces). If yy is omitted, the next occurrence of the date (according to your computer's date and time) is assumed. For example, the following date entries are equivalent if entered between Jan. 10, 1994, and Jan. 8, 1995:

jan,9
1/9/95
january,9,1995
1/9

/fullname:"name"

Specifies a user's full name rather than a user name. Enclose the name in quotation marks.

/homedirath

Sets the path for the user's home directory. The path must exist.

/passwordchg:{yes | no}

Specifies whether users can change their own password. The default is yes.

/passwordreq:{yes | no}

Specifies whether a user account must have a password. The default is yes.

/profilepath:[path]

Sets a path for the user's logon profile. This path points to a registry profile.

/scriptpathath

Sets a path for the user's logon script. The path value cannot be an absolute path; path is relative to %systemroot%\System32\Repl\Import\Scripts.

/times:{times | all}

Specifies the times the user is allowed to use the computer. The times value is expressed as day[-day][,day[-day]] ,time[-time][,time[-time]], limited to 1-hour time increments. Days can be spelled out or abbreviated (M,T,W,Th,F,Sa,Su). Hours can be 12- or 24-hour notation. For 12-hour notation, use AM, PM, or A.M., P.M. The value all means a user can always log on. A null value (blank) means a user can never log on. Separate day and time with commas, and units of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not use spaces when designating times.

/usercomment:"text"

Specifies that an administrator add or change the "User comment" for the account. Enclose the text in quotation marks.

/workstations:{computername[,...] | *}

Lists as many as eight workstations from which a user can log on to the network. Separate multiple entries in the list with commas. If /workstations has no list, or if the list is *, the user can log on from any computer.

HTH
Regards
  #3  
Old 18th November 2005, 21:59
roguecoolman roguecoolman is offline
Junior Member
It's not a coincidence
 
 Join Date: Aug 2004
  6 month star 12 month star
 Posts: 139
 Reputation: roguecoolman is on a distinguished road (22)
Default Re: help on net user add

if your running windows server 2003,

use this command instead:

DSADD

http://www.microsoft.com/technet/pro...2dc36b54b.mspx

it offers much more flexibility and options.
  #4  
Old 18th November 2005, 22:27
guyt's Avatar
guyt guyt is offline
[MSFT]
Guru
 
 Join Date: Nov 2003
  6 month star 12 month star
 Location: Israel
 Posts: 1,766
  Send a message via MSN to guyt
 Reputation: guyt is a name known to allguyt is a name known to allguyt is a name known to allguyt is a name known to allguyt is a name known to allguyt is a name known to all (592)
Default Re: help on net user add

Quote:
Originally Posted by roguecoolman
if your running windows server 2003,

use this command instead:

DSADD

http://www.microsoft.com/technet/pro...2dc36b54b.mspx

it offers much more flexibility and options.
You can run dsadd from XP workstation too
__________________
Guy Teverovsky
http://blogs.technet.com/b/isrpfeplat/
"Smith & Wesson - the original point and click interface"
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I add user into mailbox right using script? PingMonster Exchange 2000 / 2003 3 7th February 2006 02:13
Add pictures to an Exchange User Orblivian Exchange 2000 / 2003 2 26th January 2006 10:59
System Error 5 when trying to use Net User command CMTech Forgot Administrator Password 0 12th December 2005 22:22
Can't add user to domain: password andrena Windows Server 2000 / 2003 3 18th August 2005 17:57
add coputer account to AD plus add user account avivh Active Directory 1 25th December 2004 22:25


All times are GMT +3. The time now is 05:16.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri