01-25-2010 01:25 PM
Solved! Go to Solution.
01-25-2010 02:33 PM
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
01-25-2010 01:29 PM
01-25-2010 02:12 PM
01-25-2010 02:33 PM
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
01-26-2010 07:45 AM