Find duplicate account names
Top  Previous  Next


This script lists duplicate GroupWise account names. To list duplicate NetWare account names, change the line that begins with "Set GetProp" to "SET GetProp=container§1§CN§3§".

Copy and paste the script to the editor, enter the name of your tree in the "NDStree" setting.

Requirements

·NetWare client on the local machine, log on as admin  
·Novell controls  
·GroupWare client on the local machine  

Script


[Settings_Begin]
BatchSettings.Delimiter=Tab
BatchSettings.MarkerCol=7
BatchSettings.MarkersAutoremove=Yes

Set NDStree=OAK
// Properties To Get, notice that column three is the one that gets dupe-checked
Set GetProp=container§1§CN§2§NGW Object ID§3§
[Settings_End]

[Init_Batch_Begin]
// Fill [Data] section With properties from NDStree   
Data.Get.ND Container,%NDStree%,user,yes,%GetProp%   
// Delete [Data] section rows With no value   
Data.Loop   
 If %col3%=- Then   
  Data.Row.Delete   
 EndIf   
Data.EndLoop   
// Find duplicates - delete all non-duplicate rows from the [Data] section   
Data.Column.DupeCheck 3,Self,,ListDuplicates   
// Show message If no duplicates   
If %RowsTotal% = 0 Then   
 MessageBox There are no duplicates.   
 QuitBatch   
EndIf   
// Else show duplicates In grid   
Data.Show Duplicates   
[Init_Batch_End]

[Data_Begin]
[Data_End]