Set public folder permissions?



Hi,

I'm trying to set permissions on a public folder in my exchange setup.
I have come up with this code, inspired by the code on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/exchserv/html/comclasses_1stv.asp

set session = CreateObject("MAPI.session") session.logon "", "", false,
true, true, true, "EXCHBE01" & vbLF & "alias"
wscript.echo "Logged in"

Set store = session.infostores.item("Public Folders") wscript.echo "Got
infostore 2"

Set allfolders =
session.getFolder(store.fields(&h66310102),store.id).Folders
wscript.echo "Got folders"

The problem is that the session.getFolder line fails with:

[Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]]

Right after it echos "Got infostore 2"


Any ideas?

Stefan


.



Relevant Pages

  • RE: no access to public folder but want to delete
    ... "Teo Gomez" wrote: ... > Use Exchange System Manager to delete the public folder and set permissions. ...
    (microsoft.public.exchange.admin)
  • RE: no access to public folder but want to delete
    ... Use Exchange System Manager to delete the public folder and set permissions. ... > with the company and his user account has been deleted had the owner ...
    (microsoft.public.exchange.admin)
  • Re: Contact list for all to see
    ... Create the new Contacts in the Public folder and set permissions if you want ... the tree of your mailbox and the public, go to the mailbox contacts, select ... Outlook, right click, properties, Outlook Address Book on the contact list ...
    (microsoft.public.windows.server.sbs)
  • Re: public folders
    ... requests etc and click on set permissions. ... permissions allow users to see the calendar. ... > A user has been assigned to book meetings on a public folder called " ... > meeting room bookings". ...
    (microsoft.public.outlook)

Loading