SetDefaultAccount Method

This method specifies the default content access account information for a Domain\User.

Syntax

IBuildServer.SetDefaultAccount(Account, Password)

Parameters

Account

The Domain\Username for the account.

Password

The password for the account.

Example

The following example sets the default account to Test\SSAdmin with the password "PikePlace007".

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer 

Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer

objBuildServer.SetDefaultAccount("Test\SSAdmin", "PikePlace007") 

'Release objects 
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

DefaultAccountName


© 1997-1998 Microsoft Corporation. All rights reserved.