Forum Discussion

Thatch's avatar
Thatch
Level 2
13 years ago

EVPM Script to Change Bill usage for all users in a active directory OU

Hi,

I need a script to change the bill usage on users in a specific OU Group on a nightly basis.

 

below is my current script and i beleave all i need is to change the line under [Mailbox], can anyone help?

 

[Directory]

DirectoryComputerName = *******

SiteName = *****

 

[Mailbox]

DistinguishedName = /o=First Organization/ou=First Administrative Group/cn=Recipients/cn=tatkins

 

[Folder]

 

BillingOwner = DOMAIN\Vault

VaultStoreName = MailboxStore

IndexingServiceComputerName = Local

 

Many thanks

Jamie

 

  • Yup, just change the DN to be an ldap query to select the OU and then change the billing account to the user you want to change it to Can I ask why though?
  • Yup, just change the DN to be an ldap query to select the OU and then change the billing account to the user you want to change it to Can I ask why though?
  • Thanks.

    So would that be something like this:

    LDAPquery = /o=First Organization/ou=First Administrative Group/cn=Recipients

    It’s to automate our leavers process, for example, at the moment we have a group in AD called 'staff leavers' which we put staff in that have left. we have a rule in EV that automatically starts archiving there whole mailbox once a user is placed in this OU(a process that takes two days). We then change the bill usage to our 'vault' service account before deleting the users account from AD (because otherwise it becomes difficulty to make changes to the user vault’s emails). This script will automate the need to change the bill usage.