Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $TTNExcludeLists = "Solution Gallery",
  2. "Workflow Tasks",
  3. "Master Page Gallery"
  4.  
  5. Get-SPSite -Limit All | Get-SPWeb -Limit All |
  6. Select -ExpandProperty Lists |
  7. Where { -Not ($TTNExcludeLists -Contains $_.Title) } |
  8. Select -ExpandProperty Fields |
  9. Where { $_.TypeDisplayName -eq "Lookup" -and
  10. $_.Hidden -eq $false -and
  11. $_.FromBaseType -eq $false } |
  12. Select {$_.ParentList.ParentWebUrl},
  13. {$_.ParentList},
  14. Title | Sort-Object Title | Format-table -AutoSize -wrap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement