Skip to main content
added 44 characters in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

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

$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;
     }
}

"Folder: $($Folder.fullname) Count: $Count" $count=0; } } `

` $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; } } `

$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;
     }
}
Source Link
Red
  • 514
  • 1
  • 5
  • 19

` $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; } } `