0

trying to change one of the rights assigned in RightsMask with Powershell on a SharePoint 2010 server. $webApp=get-spwebapplication http://myWeb $webApp.RightsMask

I want to be able to enable/disable flag: [Microsoft.SharePoint.SPBasePermissions]::ViewListItems but I can't figure out to how change just that one value - this is basically a bitmask field

Any Suggestions? Thanks

2
  • Not sure I'm clear -- by default a web application has the FullMask rights mask which allows all permissions to the web application. Are you trying to remove ViewListItems for all everything in the web application or do you have some other goal?
    – shufler
    Commented Apr 16, 2012 at 22:03
  • If one of the answers solved the problem statet in your question, you should mark this answer as accepted answer to help future visitors.
    – Benny Skogberg
    Commented Jan 9, 2014 at 11:17

1 Answer 1

1

Try

$webApp.RightsMask = $webApp.RightsMask -bor [Microsoft.SharePoint.SPBasePermissions]::ViewListItems;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.