例: MoveRoamingUser method

Sub Initialize
  Dim session As New NotesSession
  Dim adminp As NotesAdministrationProcess
  Set adminp = _
  session.CreateAdministrationProcess("Home_Server") 
  adminp.CertifierFile = _
  "c:¥lotus¥domino¥data¥cert.id" 
  Dim ws As New NotesUIWorkspace
  adminp.CertifierPassword = _
  ws.Prompt(PROMPT_PASSWORD, "Password", _
  "Type certifier password.")
  noteid$ = adminp.MoveRoamingUser("CN=Joe Salesman", _
  "Roaming_Server", "Salesman")
  If noteid$ <> "" Then
    Dim db As New NotesDatabase("Home_Server", "admin4") 
    Call ws.EditDocument(False, db.GetDocumentByID(noteid$))
  End If
End Sub