Folders within a Document Library in Powershell WSS 3.0 / SP2007
-
11-10-2020 - |
سؤال
I need to write a quick powershell script to do the following agains SP 2007
- Show all the folders within a document library.
- Count the documents within each folder.
- 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;
}
}
لا تنتمي إلى sharepoint.stackexchange