Check groups for dead entries?

I have to check all our email groups for dead entries. There are approx 140 groups, which I do not want to check manually. Are there any tools that can compare groups against the a domino directory for dead entries?

Subject: Check groups for dead entries?

If you’re willing to look at 3rd party utilities, take a look at Power Tools from HELP Software. Power Tools includes a utility named “Find Unlisted Group Members” that will do what you want. After finding the unlisted members you can then select any members that you want to delete and press a button to remove all of the selected entries.

You can download a trial version of Power Tools from http://www.helpsoft.com

Subject: Maybe.

Here’s a script that will check all groups. If you can’t modify the script, as least it will tell you which group has the dead entries.

Verify Group Members in NAB

Description: This script verifies the membership in groups in the name and addressbook. It generates a simple report showing exceptions. Put this script in an agent and schedule it or run it manually on command. If it is scheduled, the report will be saved on the server.

Current limitations:

  • Server names and wildcards are reported as exceptions.

  • Agent must reside in the NAB.

Attachment:

Code: Sub Initialize

Dim Session As New NotesSession

Dim DB As NotesDatabase

Dim Group As NotesDocument

Dim Person As NotesDocument

Dim ReadPG As NotesDocument

Dim GView As NotesView

Dim PGView As NotesView

Dim fileNum As Integer

FileNum% = Freefile()

Close

Print “Logging output messages to \APPS\NOTES\GROUP.LOG”

Open “group.log” For Output As fileNum%

Print #FileNum%, "Audit Group Agent ", Now ’ print a header line to log file

Print "Audit Group Agent ", Now ’ print to log db (or to status line if run manually)

Set DB = Session.CurrentDatabase

Set GView = DB.GetView ( “($VIMGroups)” )

Set PGView = DB.GetView ( “($VIMPeopleandGroups)” )

Set Group = GView.GetFirstDocument

Do Until Group Is Nothing

Print #FileNum%, Chr(10) & “Group: " & Group.ListName(0) & " " & Group.ListDescription(0) & " - - - - - -”

Forall i In Group.Members

Set PersonName = New NotesName( i )

Set ReadPG = PGView.GetDocumentByKey( PersonName.Abbreviated )

If ReadPG Is Nothing Then

Print #FileNum%, " Entry does NOT exist - - " & PersonName.Abbreviated

Else

Print #FileNum%, " " & PersonName.Abbreviated

End If

End Forall ’ all members

Set Group = GView.GetNextDocument ( Group )

Loop ’ all groups

Close

End Sub