Professional Documents
Culture Documents
com
'opens all mailbox store of the given exchange server and change the permissions
default=reviewer for all the mailboxes in it
'dependencies
'register acl.dll, cdo 1.01 or higher
on error resume next
else
wscript.echo "checking the next"
end if
next
startpoint = instr(storename,"=")
endpoint = instr(storename,",")
end function
function updatecal(exsrv,user)
const cdodefaultfoldercalendar = 0
newaccess = role_reviewer
'exsrv = exserver
'username = user
'wscript.echo oace.rights
if (oace.id = "id_acl_default") then
if oace.rights = newaccess then
updatecal = "access already exsists for " & user
else
oace.rights = newaccess
oaclobject.update
updatecal = "updated the permissions for " & user
end if
else
end if
next
osession.logoff
set osession = nothing
end function