Table of Contents
Mapadmin Command in Windows is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.
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:
- 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.
- Eventquery command in Windows
- Cmd command in Windows
FAQ
What should you know about 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 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 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 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.
What should you know about parameters start?
Start the User Name Mapping service.
What should you know about stop?
Stop using the User Name Mapping service.
Reader Comments 0
Sign in with email or Google to join the discussion.