Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetAllFields($url)
- {
- $sites = Get-SPSite $url
- foreach ($web in $sites.AllWebs)
- {
- $lists = $web.Lists
- foreach ($list in $lists)
- {
- if ($list.Title -like "*Formatbibliotek*")
- {
- Write-Host $web.Name -ForegroundColor Green
- Write-Host " " $list.Title -ForegroundColor Cyan
- foreach ($item in $list.Items)
- {
- Write-Host " " $item.Name
- $file = $item.File
- foreach ($key in $file.Properties.Keys)
- {
- Write-Host " " $key -ForegroundColor Yellow -NoNewline
- Write-Host " " $file.Properties[$key] -ForegroundColor White
- }
- }
- }
- }
- }
- If ($sites -ne $null)
- {
- $sites.Dispose();
- }
- If ($web -ne $null)
- {
- $web.Dispose();
- }
- }
- GetAllFields http://skvkfm-100-1:9899/sites/sitedirectory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement