nis2ad - Windows command-line utility to migrate maps from Network Information Service (NIS) to Active Directory directory service


nis2ad.exe -y NIS_Domain -a AD_domain [options] mapfile


The nis2ad Windows command-line utility transfers the entries in the Network Information Service (NIS) map source file specified by mapfile located in the UNIX NIS domain specified by NIS_domain to the Active Directory domain specified by AD_domain. NIS map source files are the plain text files from which the NIS map databases are compiled.

The -m option must be specified to perform the actual migration; otherwise, nis2ad performs the actions it would perform in an actual migration without actually changing Active Directory, including logging any conflicting entries.

The nis2ad utility accepts the following options and arguments:

Term Definition

-d directoryname

Specifies the name of the directory that contains NIS map source files.

-s server

Specifies the domain controller server hosting Active Directory; otherwise, uses the current server.

-u user

Specifies the name of a user having administrator permissions on this computer; otherwise, uses the current user.

-p password

If a password is needed but is not specified, nis2ad prompts the user for the password.

-f logfile

Specifies the name of the log file. The log file must be on your local computer. The default is %sfudir%\nis\nis2ad.log.

-c conflictfile

Specifies the file where conflict details are written. The default is %sfudir%\nis\conflicts.log.

-r {yes|no}

Replaces the object in Active Directory with the object being migrated. The default is no.


Resolves conflicts by changing the Windows account name in Active Directory. If objects of different types have the same name, the name of both objects is changed before the data is migrated.

-t targetContainer

Specifies the target container name. Applicable only when creating a new NIS domain. If not specified, uses default or uses the container of the target domain.


Performs the migration. If this option is omitted, the program finds and reports conflicts, but does not actually perform the migration.


Displays usage information for the command.


The currently logged on user must have write permissions for the folder that will contain the log and conflict files, even if another user is specified with the -u option. If necessary, modify the permissions on the folder to grant write access to the user who will be running the nis2ad utility before running the utility.

See Also