Results 1 to 2 of 2

Thread: batch closed accounts

  1. #1
    preston is offline Intermediate Member
    Join Date
    May 2006
    Location
    Philadelphia
    Posts
    18
    Rep Power
    8

    Default batch closed accounts

    If I have 2 domains on a system, it there a way to close or make inactive all accounts on one of the domains?

    A command line type of thing?

  2. #2
    andreychek is offline Special Member & Volunteer
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    9

    Default

    Quote Originally Posted by preston
    If I have 2 domains on a system, it there a way to close or make inactive all accounts on one of the domains?

    A command line type of thing?
    You could probably use something like this:

    su - zimbra
    zmprov GetAllAccounts YOURDOMAIN|xargs -n 1 echo zmprov DeleteAccount

    That will loop through all the accounts in the domain 'YOURDOMAIN', and simply echo the output "zmprov DeleteAccount ACCOUNTNAME".

    If you actually want it to delete the accounts, remove the echo statement.

    For additional options, you can run "zmprov help".

    Good luck!
    -Eric

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  2. Replies: 42
    Last Post: 08-11-2006, 09:50 AM
  3. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM
  4. Deleting Accounts using Command Line Batch File
    By kurt2 in forum Administrators
    Replies: 7
    Last Post: 04-04-2006, 11:54 AM
  5. Migration from Exchange 2003
    By goetzi in forum Administrators
    Replies: 13
    Last Post: 11-22-2005, 10:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •