SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 Apr 16 '12 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 Jan 9 '14 at 11:17


$webApp.RightsMask = $webApp.RightsMask -bor [Microsoft.SharePoint.SPBasePermissions]::ViewListItems;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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