Ir al contenido principal

Entradas

Mostrando entradas de septiembre, 2018

Powershell script for SharePoint 2010 & SharePoint 2007 Site Usage report

SharePoint 2010 & SharePoint 2007  – Powershell script for finding site Url, Title,user Count, Primary & Secondary Site collection admins, Usage, Hits, views, Created Date, last modifed date [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”) # get local farm $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local # get web services from local farm $websrvcs = $farm.Services | where -FilterScript {$_.GetType() -eq [Microsoft.SharePoint.Administration.SPWebService]} # format for .csv file output $outputToCSV = @() function CheckedOutItems() {     # get all web services available in the farm       foreach ($websrvc in $websrvcs) {         # retrieve web applications         foreach ($webApp in $websrvc.WebApplications) {             # now get site collections from the web application             foreach ($site in $webApp.Sites) {                 # process each web site                 Try {