Hello,
Sorry for delay.
I think role is already assigned so you don't need to assigned again in second BOLD row. So you may delete "$role = $web.RoleDefinitions.[$newRoleDef]" line then execute your code.
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help
No comments:
Post a Comment