A simple one line PowerShell to get a list of all content DBs, their size, and the number of site collections. # Get All content Databases Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue;…
Tag: powershell
SharePoint PowerShell to restart IIS on all your farm’s servers
This script will loop through the servers on your farm based on the server role , and will execute an IISreset on all servers matching the role. clear $spserver =…
SharePoint 2016: Databases running in compatibility range, upgrade recommended
You may notice the above comment when you create a brand new farm in Central Admin under Central Administration->Upgrade and Migration -> Review database status On a new farm without…
PowerShell Get site collection disk size
#Large amounts of memory are often required when SPWeb, SPSite, or SPSiteAdminsitration objects are used. So the use of these objects, or lists of these objects, #in Windows PowerShell scripts…