Anstelle des Filters kann Du auch über alle Objekte iterieren und die Klasse abfragen, wie bspw. hier beschrieben
http://www.serverwatch.com/tutorials/print.php/1548191Also irgendwie so
Const ComputerName = "srveb01"
Const domain = "//ATEBD1"
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = s.CurrentDatabase
dim UserName as variant
Set UserName = GetObject("WinNT://" & ComputerName & ",computer")
Forall object in UserName
If object.class = "User" Then
On Error Resume Next
user = object.Name
Set oUser = GetObject("WinNT:" & domain & "/" & user)
Set doc = db.CreateDocument
doc.Form = "activedirectory"
doc.ShortName = oUser.Name
doc.FullName = oUser.FullName
doc.Department =oUser.Description
doc.LastLogin = oUser.LastLogin
If oUser.AccountDisabled <> False Then
doc.AccountDisabled = "True"
End If
If oUser.IsAccountLocked <> False Then
doc.AccountLocked = "True"
End If
doc.ValidFrom = Int(oUser.PasswordAge/3600/24)
Call doc.Save(True, False)
End if
End Forall
Andreas