InitializeEx Method

This method initializes the server under a different user name and password.

Syntax

ReplicationServer.InitializeEx(Server, UserName,Password, Timeout)

Parameters

Server

The server to communicate with. This value can be Empty ("") for the current server.

UserName

The name of the user to log onto the server as.

Password

The password of the user UserName on server Server.

Timeout

The time, in milliseconds, to wait for the server to initialize before timing out. The default is 300000 (5 minutes).

Remarks

You must have Site Server Publishing administrator privileges on the server to call this method.

Example

The following example initializes the current server under user Steveb, with password Oxymoron.

Option Explicit 
On Error Resume Next

dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")

ReplServer.InitializEx("", Steveb, Oxymoron)
...

'Release Server object
set ReplServer = Nothing

See Also

Initialize


© 1997-1998 Microsoft Corporation. All rights reserved.