Windows PowerShell Command Builder for SharePoint

Hi,

The Windows PowerShell for SharePoint Command Builder enables IT pros and power users to visually assemble commands in the browser and then take those commands to their respective products.

The Windows PowerShell Command Builder for Microsoft SharePoint 2010, Microsoft SharePoint 2013, SharePoint Online, and Microsoft Office 365 is an HTML5 application that is designed to help IT professionals and power users learn how to use Windows PowerShell for administrative tasks.

Windows PowerShell Command Builder for SharePoint

 

 

 

 

For Details Click here…..

For additional information, see the Getting Started Guide.

 

 

 

Iterating through all Document Libraries, Folder and Item using Powershell

Hi,

In order to retrieve all document libraries, get list of folder and nested folder and list document within library and folder, following script generate list. Add site name and file name to save result.

Here is the PowerShell script which can get you Files-Folders-Libraries:

#Get all lists in farm
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the Site collection
$Site= Get-SPSite http://sharepointsite

$outputPath = “c:\Portallist.csv”

Function GetMyFiles($Folder)
{

Write-Host “+in : “$Folder.Name
foreach($file in $Folder.Files)
{
Write-Host “`t” $file.Name
Add-Content -Path $outputPath -Value  ”                     File Name : $($file.Name)”

}

#Loop through all subfolders and call the function recursively
foreach ($SubFolder in $Folder.SubFolders)
{
if($SubFolder.Name -ne “Forms”)
{
Write-Host “`t” -NoNewline
Add-Content -Path $outputPath -Value  ”           Folder Name : $($SubFolder.Name)”
GetMyFiles($Subfolder)

}
}

}
#Loop throuh all Sub Sites
foreach($Web in $Site.AllWebs)
{
Write-Host “—————————————————–”
Write-Host “Site Name: ‘$($web.Title)’ at $($web.URL)”
Add-Content -Path $outputPath -Value  “Website : $($web.Title)”
foreach($list in $Web.Lists)
{
#Filter Doc Libs, Eliminate Hidden ones
if(($List.BaseType -eq “DocumentLibrary”) -and ($List.Hidden -eq $false) )
{
Write-Host “——————————————-” “+” $List.RootFolder
Add-Content -Path $outputPath -Value  ”         Library : $($List.RootFolder)”
GetMyFiles($List.RootFolder)

}
}
}

Set the maximum storage size of a Site Collection

To control the maximum storage size of a Site Collection by using the Set-SPSiteAdministration cmdlet.
You can type if you want to limit the Site storage to 500MB: Open Powershell

PS > Set-SPSiteAdministration -Identity http://SharePointsite `

>> -MaxSize 1500MB