Mapadmin command in Windows
You can use the mapadmin command to manage the username mapping for Microsoft services for the network file system.
You can use the mapadmin command to manage the username mapping for Microsoft Services (Microsoft services) for Network File System (network file system).
Syntax mapadmin command
mapadmin [] [-u [-p ]] mapadmin [] [-u [-p ]] {start | stop} mapadmin [] [-u [-p ]] config mapadmin [] [-u [-p ]] add -wu -uu [-setprimary] mapadmin [] [-u [-p ]] add -wg -ug [-setprimary] mapadmin [] [-u [-p ]] setprimary -wu [-uu ] mapadmin [] [-u [-p ]] setprimary -wg [-ug ] mapadmin [] [-u [-p ]] delete mapadmin [] [-u [-p ]] list mapadmin [] [-u [-p ]] backup mapadmin [] [-u [-p ]] restore mapadmin [] [-u [-p ]] adddomainmap -d {-y <> | -f } mapadmin [] [-u [-p ]] removedomainmap -d -y <> mapadmin [] [-u [-p ]] removedomainmap -all mapadmin [] [-u [-p ]] listdomainmaps
Describe
The mapadmin command-line utility manages the mapping of usernames on local or remote computers running Microsoft Services for Network File System. If you sign in with an account that doesn't use admin login information, you can specify the account username and password.
In addition to the specific command arguments , the mapadmin command accepts the following arguments and options:
- Specify the remote computer to run the User Name Mapping service (the service that maps the username) that you want to administer. You can specify a computer by using the name of the Windows Internet Name Service (WINS) or the Domain Name System (DNS) name or Internet Protocol (IP) address.
-u - Specify the user name of the user whose login information will be used. You may need to add the domain name to the user name in the domain user name .
-p - Specify user password. If you specify the -u option but omit the -p option , you will be prompted to enter the user's password. The specific action that mapadmin command executes depends on the command argument you specify.
Parameters
start
Start the User Name Mapping service.
stop
Stop using the User Name Mapping service.
config
Specify the common setting for User Name Mapping. The following options are available with this command argument:
- -r :: - Specify the refresh interval to update from Windows and NIS databases by date, hour and minute. Minimum time is 5 minutes.
- no} - Enable ( yes ) or ( no ) simple mapping (simple mapping feature). By default, simple mapping will be enabled.
- add - Create new maps for users or groups. The following options are available with this command argument:
- setprimary - Specifies which mapping is the primary mapping for a user or UNIX group with multiple mappings. The following options are available with this command argument:
- delete - Removes mapping for users or groups. The following options are available for this command argument:
The Windows group whose mapping will be deleted, is specified as. You must specify the -wg or -ug option or both. If you specify both options, the specific mapping identified by the two options will be deleted. If you specify the -wg option , all mappings for the specified group will be deleted.
-uu UNIX user whose mapping will be deleted, is specified as . You must specify the option -wu or -uu or both. If you specify both options, the specific mapping identified by the two options will be deleted. If you specify the -uu option , all mappings for the specified user will be deleted. -ug UNIX group whose mapping will be deleted, is specified as . You must specify the -wg or -ug option or both. If you specify both options, the specific mapping identified by the two options will be deleted. If you specify the -ug option , all mappings for the specified group will be deleted.- list - Displays information about group and user mapping. The following options are available with this command argument:
- backup - Save the data and configure the User Name Mapping to the file specified by .
- restore - Replace data and configure mapping by data from the file (specified by ) created using the backup command argument.
- adddomainmap - Add a simple mapping between Windows domain names and NIS domains or passwords and group files. The following options are available for this command argument:
-n Specify the NIS server for the specified NIS domain with the -y option . -f Specifies the qualified directory path containing the mapped password and group files. Files must be placed on the computer that is being managed and you cannot use the mapadmin command to manage the remote computer for setting passwords based on passwords and group files.
- removedomainmap - Removes a simple mapping between the Windows domain and the NIS domain. The following options and arguments are available for this command argument:
- listdomainmaps - List Windows domains mapped to NIS domains or passwords and group files.
Note
- If you do not specify a command argument, the mapadmin command will display the current settings for User Name Mapping .
- For all options to specify a username or group, the following formats can be used:
- For Windows users, use the form,,, or
- For Windows groups, use the form <>, <>, <>, or <>
- For UNIX users, use the form,, user @PCNFS, or PCNFS
- For UNIX groups, use the form, @, @PCNFS, or PCNFS
See more:
- The dfsrmig command in Windows
- Eventquery command in Windows
- Cmd command in Windows
You should read it
Maybe you are interested
How to use Photoshop CS5 - Part 15: Remove wrinkles with the Healing Brush tool Full body massage chair of any kind? The benefits can not be ignored when using infrared massage cushion 10 tips to help you become beautiful without make-up There was a year when the Earth had no summer and the world history was changed 10 types of food enhance men's vitality