Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bulk Deleting of User Accounts and Files



It won't do all that you want, but I have a little app on my website that will search a directory and remove the folders for non-existent users. Then you could just remove the users from WGM and run the app to remove the folders. You can get it from web.mac.com/bancher and the program is called Purge Home Folders.

Mark Gabrenas
Apple Certified Systems Administrator



On Aug 7, 2006, at 12:07 PM, Adam Gerson wrote:

We have to delete about 100 users from our directory of around 1000. I need
to delete the OD user records as well as the home folders. Given a text file
with short names does anyone have a script that could accomplish this task?

I could even write my own if I knew the command line code for deleting a
user account. In the command line user guide I see that it explains how to
use dscl in interactive mode to do this. To include it in a script I need a
non-interactive way to do it.

Adam


-- 
Adam Gerson
Assistant Director of Technology
Apple Certified Technical Coordinator
Columbia Grammar and Prep School
phone. 212-749-6200 ex. 321
mobile. 917-679-0234
fax.  212-428-6806
Public key - subkeys.pgp.net



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >Bulk Deleting of User Accounts and Files (From: Adam Gerson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.