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: Code
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 =…