문제

I need to write a quick powershell script to do the following agains SP 2007

  1. Show all the folders within a document library.
  2. Count the documents within each folder.
  3. Show the permissions on each folder within the document library.

Anyone got any ideas on how to do this?

올바른 솔루션이 없습니다

다른 팁

$StartingFolder = "\\sharepointportal\site\subsite"
$FolderList = gci $StartingFolder -recurse | ?{$_.psiscontainer}
foreach ($Folder in $FolderList){

          foreach($item in $folder)
          {
                $count++;
          }
"Folder: $($Folder.fullname) Count: $Count"
$count=0;
     }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top