cancel
Showing results for 
Search instead for 
Did you mean: 

Script to assign Rights to a Vault

Batescr
Level 3
I am looking to create an automated way to assign rights to a Vault and then remove them after a period of time (say 24 hours).

1 ACCEPTED SOLUTION

Accepted Solutions

JesusWept3
Level 6
Partner Accredited Certified

Yeah i suppose you could.....i'm not much of an ASP programmer though (i do coldfusion)

But i guess you would do the following

1. Start the script by doing a query against the EnterpriseVaultDirectory.dbo.Archive table
2. Output putting checkboxes next to each user that you wanted to run the script against
3. Have the form submit to a page which writes a temporary INI file with the ArchiveName and such
4. Have it then execute EVPM in one way or another utilizing the command switch
    EVPM -e yourExchServer.domain.com -m EVSysMailbox -f C:\YourTempEVPMFile.ini

then if you really really wanted to, i suppose you could create a small sql database that has something like

ArchiveName, DateTimeApplied

Then do a scheduled script that does something like

SELECT ArchiveName
FROM yourTable
WHERE DateTimeApplied < DateAdd(day, -1, getDate())

this would then give you the ArchiveName needed to undo your changes, and would also return results one users that had the permissions applied 1 day ago
otherwise you might give the permissions at 8pm, but if the script runs at midnight without that check, it would remove them after only having 4 hours  of access

Really could be overkill though

If you wanted CF examples i can do that, but ASP/PHP really are not my strong points unfortunately

https://www.linkedin.com/in/alex-allen-turl-07370146

View solution in original post

4 REPLIES 4

JesusWept3
Level 6
Partner Accredited Certified
To set the permissions:
http://seer.entsupport.symantec.com/docs/321592.htm

Then after your 24 hour period you would need to run this and re-sync the mailbox:
http://seer.entsupport.symantec.com/docs/280196.htm

that should give you what you need
https://www.linkedin.com/in/alex-allen-turl-07370146

Batescr
Level 3
Thank you for the quick reply.

Do you know if could create a script and place it in a webpage to do this?

JesusWept3
Level 6
Partner Accredited Certified

Yeah i suppose you could.....i'm not much of an ASP programmer though (i do coldfusion)

But i guess you would do the following

1. Start the script by doing a query against the EnterpriseVaultDirectory.dbo.Archive table
2. Output putting checkboxes next to each user that you wanted to run the script against
3. Have the form submit to a page which writes a temporary INI file with the ArchiveName and such
4. Have it then execute EVPM in one way or another utilizing the command switch
    EVPM -e yourExchServer.domain.com -m EVSysMailbox -f C:\YourTempEVPMFile.ini

then if you really really wanted to, i suppose you could create a small sql database that has something like

ArchiveName, DateTimeApplied

Then do a scheduled script that does something like

SELECT ArchiveName
FROM yourTable
WHERE DateTimeApplied < DateAdd(day, -1, getDate())

this would then give you the ArchiveName needed to undo your changes, and would also return results one users that had the permissions applied 1 day ago
otherwise you might give the permissions at 8pm, but if the script runs at midnight without that check, it would remove them after only having 4 hours  of access

Really could be overkill though

If you wanted CF examples i can do that, but ASP/PHP really are not my strong points unfortunately

https://www.linkedin.com/in/alex-allen-turl-07370146

Batescr
Level 3
Thank you very much...

That would be awesome if you could you provide me with some CF examples..