cancel
Showing results for 
Search instead for 
Did you mean: 

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

Thatch
Level 2

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

JesusWept3
Level 6
Partner Accredited Certified
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?
https://www.linkedin.com/in/alex-allen-turl-07370146

View solution in original post

2 REPLIES 2

JesusWept3
Level 6
Partner Accredited Certified
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?
https://www.linkedin.com/in/alex-allen-turl-07370146

Thatch
Level 2

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.