A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Set permissions on an Outlook folder with vbscript



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 16th 08, 01:04 PM posted to microsoft.public.outlook.program_vba
Midwest Muskie
external usenet poster
 
Posts: 34
Default Set permissions on an Outlook folder with vbscript

I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also, how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike
  #2  
Old September 16th 08, 03:00 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Set permissions on an Outlook folder with vbscript

The folder permissions are not exposed in the Outlook object model. You
could use ADSI code to do that, or you could use CDO 1.21 code with the
ACL.dll component.

See http://www.outlookcode.com/archive0/d/exstech.htm for more information.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Midwest Muskie" wrote in message
...
I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike


  #3  
Old September 16th 08, 03:33 PM posted to microsoft.public.outlook.program_vba
Midwest Muskie
external usenet poster
 
Posts: 34
Default Set permissions on an Outlook folder with vbscript

Thanks for your quick response, Ken. I visited your web site. It appears
that you have significant programming experience in both Outlook and
Exchange. My company is trying to identify an email archive solution for our
Exchange 2003 system. We may be looking for someone to help us with some
custom programming of Outlook and\or Exchange to integrate with the available
archive solutions out there. Would you be interested in doing some contract
work for us?

"Ken Slovak - [MVP - Outlook]" wrote:

The folder permissions are not exposed in the Outlook object model. You
could use ADSI code to do that, or you could use CDO 1.21 code with the
ACL.dll component.

See http://www.outlookcode.com/archive0/d/exstech.htm for more information.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Midwest Muskie" wrote in message
...
I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike



  #4  
Old September 16th 08, 04:09 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Set permissions on an Outlook folder with vbscript

I do consulting work, but the newsgroup isn't an appropriate place to
discuss that. You can contact me off list about your project requirements.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Midwest Muskie" wrote in message
...
Thanks for your quick response, Ken. I visited your web site. It appears
that you have significant programming experience in both Outlook and
Exchange. My company is trying to identify an email archive solution for
our
Exchange 2003 system. We may be looking for someone to help us with some
custom programming of Outlook and\or Exchange to integrate with the
available
archive solutions out there. Would you be interested in doing some
contract
work for us?


  #5  
Old September 16th 08, 04:40 PM posted to microsoft.public.outlook.program_vba
Midwest Muskie
external usenet poster
 
Posts: 34
Default Set permissions on an Outlook folder with vbscript

I agree, and will be in touch.

Thanks,
Mike

"Ken Slovak - [MVP - Outlook]" wrote:

I do consulting work, but the newsgroup isn't an appropriate place to
discuss that. You can contact me off list about your project requirements.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Midwest Muskie" wrote in message
...
Thanks for your quick response, Ken. I visited your web site. It appears
that you have significant programming experience in both Outlook and
Exchange. My company is trying to identify an email archive solution for
our
Exchange 2003 system. We may be looking for someone to help us with some
custom programming of Outlook and\or Exchange to integrate with the
available
archive solutions out there. Would you be interested in doing some
contract
work for us?



  #6  
Old September 17th 08, 07:13 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Set permissions on an Outlook folder with vbscript

plug
You can also do that with Redemption - RDOFolder.ACL:
http://www.dimastr.com/redemption/rdo/RDOFolder.htm
/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Midwest Muskie" wrote in message
...
I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike



  #7  
Old September 17th 08, 12:40 PM posted to microsoft.public.outlook.program_vba
Midwest Muskie
external usenet poster
 
Posts: 34
Default Set permissions on an Outlook folder with vbscript

Thank you for your reply, Dmitry. Is the redemption.dll file installed by
default with an Outlook install? That is, should all of my Outlook users be
able to run this script? Can I set permissions with Redemption?

When I run the following script:

set Session = CreateObject("Redemption.RDOSession")
Session.Logon
set Folder = Session.GetDefaultFolder(olFolderCalendar)
for each ACE in Folder.ACL
Debug.Print ACE.Name & " - " & ACE.Rights
next

It generates the following error at the set Folder statement:
Unexpected default folder kind: 0

Any thoughts??

Thanks again,
Mike

"Dmitry Streblechenko" wrote:

plug
You can also do that with Redemption - RDOFolder.ACL:
http://www.dimastr.com/redemption/rdo/RDOFolder.htm
/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Midwest Muskie" wrote in message
...
I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike




  #8  
Old September 17th 08, 06:01 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Set permissions on an Outlook folder with vbscript

Where does yopur cod run? Did you add Outlook ior Reemption to the projetc
reefrences? Otherwise olFolderCalendar is not defined and VB defaults it to
0.
  #9  
Old September 17th 08, 12:44 PM posted to microsoft.public.outlook.program_vba
Midwest Muskie
external usenet poster
 
Posts: 34
Default Set permissions on an Outlook folder with vbscript

I just looked a little closer at your web page. It appears that Redemption
is a product that you sell. I have a redemption.dll file in my system32
folder. How is that one different from the one you market?

Thanks,
Mike

"Dmitry Streblechenko" wrote:

plug
You can also do that with Redemption - RDOFolder.ACL:
http://www.dimastr.com/redemption/rdo/RDOFolder.htm
/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Midwest Muskie" wrote in message
...
I am wanting to automatically create mailbox folders and set permissions on
the folders using a script (preferably vbscript). I've figured out how to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have me
select one)?

Thanks for any help you can provilde.

Mike




  #10  
Old September 17th 08, 06:00 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Set permissions on an Outlook folder with vbscript

It might not be. If you have a product installed that uses Redemption, it
will be on your system. Even if System32 is probably not the best folder to
install anything to.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Midwest Muskie" wrote in message
...
I just looked a little closer at your web page. It appears that Redemption
is a product that you sell. I have a redemption.dll file in my system32
folder. How is that one different from the one you market?

Thanks,
Mike

"Dmitry Streblechenko" wrote:

plug
You can also do that with Redemption - RDOFolder.ACL:
http://www.dimastr.com/redemption/rdo/RDOFolder.htm
/plug

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Midwest Muskie" wrote in
message
...
I am wanting to automatically create mailbox folders and set permissions
on
the folders using a script (preferably vbscript). I've figured out how
to
create the folders, but can't figure out how to set permissions. Also,
how
can I direct the script to use a particular Outlook profile (not have
me
select one)?

Thanks for any help you can provilde.

Mike






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 - Granting Folder Permissions DeeW Outlook - General Queries 1 August 23rd 07 04:28 PM
Can I propagate Outlook folder permissions to subfolders? Midwest Muskie Outlook - Installation 0 July 12th 07 03:26 PM
Access permissions on folder. Owner cannot grant permissions lmeyer Outlook - Installation 0 June 14th 06 11:06 AM
Outlook crashes by applying folder view with Vbscript Write_Event [email protected] Outlook - Using Forms 0 June 12th 06 04:57 PM
Outlook automatic folder categorization with shifting of the whole correspondence into the new built subfolder - VBScript needed Michael Bauer Outlook and VBA 0 January 9th 06 07:00 AM


All times are GMT +1. The time now is 10:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.