We have a problem in our project templates as somewhere in time someone accidentally added extra project participants so now in bulk we need to update the projects created from these templates to remove those extra participants.
What is the best way to do this?
Take a look at the Remove-PWFolderSecurity cmdlet. This should do what you need.
Get-Help Remove-PWFolderSecurity -Full
This does remove the security of folders and documents but does not remove the participants.
Which version of the PWPS_DAB module are you using? This should work. Do you get the same results if you toggle of the Include Engineering Component Access Rights?
Answer Verified By: Elahe Burns
I am using version 220.127.116.11
Thanks Brain toggling include engineering access right helped. I also added -IncludeWorkflows parameter as I noticed project has a workflow attached.
get-pwfolders -FolderPath 'RailCAD\Groups\Cad_man\TEST AREA\ILL_0891_Illy\' -JustOne -slow| Reset-PWFolderSecurity -AllSecurity -IncludeWorkflows