Delete users safely
A script for deleting users who are no longer valid, but still own content
LANDesk Management Suite collects console user information from the local group where access is initially granted, and then creates entries in the database for each of these users. Delete the user from the local group, and they're no longer valid for the core; but they still exist in the database. Their icons can be distinguished by the red X on them, and you can delete them by right-clicking and choosing delete or clicking the red X on the Users area toolbar.
Only, you can't really delete them if they were real users, because they own all sorts of stuff throughout the database and referential integrity prevents the deletion from succeeding until you hunt down and find everything which that user owned and reassign it to someone else or delete it. This is somewhat time-consuming and annoying, hence this script.
Download here: ldms_deleteusers_1.0.zip.
CHANGELOG
0.0 -- A brutal hack, hardcoded "delete all userid's larger than 10" logic0.5 -- Added user interface, improved handling of customgroup references
0.6 -- Added 8.5 compatibility
0.61 -- Check if they're trying to delete the administrator
1.0 -- help, command line options, and other frippery