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?
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:Originally Posted by preston
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
There are currently 1 users browsing this thread. (0 members and 1 guests)