Advertisement
private775

SP: Enable Document Id

May 16th, 2017
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # We opened a case with Microsoft and finally fixed this same issue using this:
  2. # Verify if web application / site has document ID enabled
  3.  
  4. $web=get-spweb URL
  5.  
  6. $web.properties
  7.  
  8. # How to fix if documentID_enabled is set to 0:
  9.  
  10. $web=get-spweb URL
  11.  
  12. $web.properties[“docid_enabled”]=1
  13.  
  14. $web.properties.update()
  15.  
  16. # https://serverfault.com/questions/208829/unable-to-see-document-ids-in-a-sharepoint-2010-site-collection
  17.  
  18. $s = get-spsite http://team/workgroups/DEMO
  19. $s.AllWebs|%{$_.properties['docid_enabled']='1'; $_.properties.Update()}
  20. $s.AllWebs|%{$_.properties['docid_enabled']}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement