Re: Set public folder permissions?



The .vb script is run on the desktop logged in as a administrator with
Remote Desktop. If you have an example script, on how to set permissions on
a public folder this would also help.

"Tom Rizzo [MSFT]" <thomriz@xxxxxxxxxxxxx> skrev i en meddelelse
news:OgtwXeTUFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
> How are you authenticating against the server in your app? Is this a
> windows app, web app, service app, something else?
>
> Tom
>
> --
> Looking for a good book on programming Exchange, Outlook, ADSI and
> SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
> "Stefan Nielsen" <stef@xxxxxxxxxxxxx> wrote in message
> news:Oabj9a8TFHA.3188@xxxxxxxxxxxxxxxxxxxxxxx
>> 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: Creating Secure Standalone Binaries for 9/X
    ... I can't figure out how to lock down the app ... so the IP of the script is unprotected. ... does is copy the text of your script into the resource: ... Of course, as Andreas said, it's probably just a matter that the file type ...
    (comp.lang.tcl)
  • Re: WebBrowser Control (VB5, VB6) & window.external. Possible?
    ... VB app for this information. ... <SCRIPT Language=JavaScript> ... app has to know something about the webpage objects, ... code has to know something about the hosting application. ...
    (microsoft.public.vb.general.discussion)
  • Re: Java at startup
    ... You also sent me something stating that "When you restart the app it ... I originally had this script run from the ... >> Dave Stewart ...
    (AIX-L)
  • Re: Checking for running process
    ... > I've created a simple WSH script for the Win2000 computers in my kid's ... classroom that attempts to solve the problem of the kids launching multiple ... get impatient and click multiple times and launch the app a bunch of times. ... its own PID. ...
    (microsoft.public.scripting.wsh)
  • Re: why write a script when u can write a vb6 app
    ... >> Ofcourse writing a script is easier and faster, ... Because I have to assume that only I will modify a VB app, ... With a script, I ... VBScript can deal with byte arrays, but cannot declare or modify them. ...
    (microsoft.public.scripting.vbscript)