Solved

Programmatically set Public Folder Permissions

Posted on 2006-11-07
6
1,065 Views
Last Modified: 2012-06-21
I would like to automate part of the process of creating public folders.  Specifically, I would like to remove "Owner" permissions and add "Publishing Author" permissions for specific users/folders using a script of some sort.

Any thoughts?
0
Comment
Question by:RPPreacher
  • 2
6 Comments
 
LVL 3

Expert Comment

by:rugu_16
ID: 17899345
The following code allows you to create a folder using code. It uses the System.IO namespace.


string FolderName = "testFolder";
DirectoryInfo thisFolder = new DirectoryInfo(Server.MapPath("/files/" + FolderName));
           
if (!thisFolder.Exists)
{
    thisFolder.Create();
}
 
0
 
LVL 3

Expert Comment

by:rugu_16
ID: 17899370
check this article as well...it explains How to programmatically set NTFS file system folder permissions by using Active Directory Service Interfaces in Microsoft Visual C#

http://www.kbalertz.com/kb_899553.aspx

0
 
LVL 20

Author Comment

by:RPPreacher
ID: 17906113
I wasn't clear... these are public folders in Exchange.  My bad.
0
 
LVL 39

Accepted Solution

by:
redseatechnologies earned 500 total points
ID: 17909149
Hi RPPreacher,

Have a look at PFDavAdmin, it is a more powerful way to control public folder permissions (although, scripting may not be possible) however that would be the place to start looking.

http://www.microsoft.com/downloads/details.aspx?FamilyID=635BE792-D8AD-49E3-ADA4-E2422C0AB424&displaylang=en

-red
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question