Mapadmin command in Windows
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
May be interested
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.