Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 at 11:17
add comment

1 Answer

Try

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

Your Answer

 
discard

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.