AddServerToAddressBook (NotesRegistration - LotusScript®)

Creates a Server record in a Domino® Directory based on a server ID file and optionally attaches the ID file.

Defined in

NotesRegistration

Syntax

variant = notesRegistration .AddServerToAddressBook( idfile$, server$, domain$ [ , userpw$ [ , network$ [ , adminname$ [ , title$ [,location$ [ , comment$]]]]]])

Parameters

idfile$

String. The ID file for the server to be added to the Domino® Directory; specify the full path, for example, c:\notes\data\server.id.

server$

String. The name of the server to be added to the Domino® Directory.

domain$

String. The domain of the server to be added to the Domino® Directory.

userpw$

String. The password for the server ID file.

network$

String. The Notes® named network (NNN) on which the server runs.

adminname$

String. The full name of the administrator of the server.

title$

String. A value for the title field of the Domino® Directory record.

location$

String. A value for the location field of the Domino® Directory record.

comment$

String. A value for the comment field of the Domino® Directory record.

Usage

Set StoreIDInAddressBook True to attach the ID to the Domino® Directory record.

This method acts on the Domino® Directory (names.nsf) for the server specified by RegistrationServer, or names.nsf in the local Domino® data directory if this property is not set.

This method occurs automatically with RegisterNewUser if UpdateAddressBook is True.

Example