locked
Remove Public folder script RRS feed

  • Question

  • I have some public folders path in an excel\CSV file. I want to remove all client permission from all public folders which are in excel sheet.

    e.g.-

    folder path-

    Test\Test1

    Test\Test1\Test2

    Coming Test\Coming Test1

    Coming Test\Coming Test1\Coming

     

     

     

     I tried to use Remove-PublicFolderClientPermission -Identity "\Get-Content E:\PF\folders.csv" but it is asking user , identity, access rights every time. But I want that a command will run and get all the public folder's client permission set to None.

    Do any one have any script\command which one can complete my above task?

    Monday, July 27, 2015 6:11 PM

All replies

  • Identity and User are required parameters.  You'll have to write a script that gets all the permissions and removes each of them.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    Tuesday, July 28, 2015 5:05 AM
    Moderator
  • thnx, and do u have such script?
    Tuesday, July 28, 2015 5:55 PM
  • Sorry, I do not.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    Wednesday, July 29, 2015 12:22 AM
    Moderator