Ir al contenido principal

Entradas

Mostrando entradas de septiembre, 2017

PowerShell - USING MERGE-SPLOGFILE TO FIND CORRELATION ID

When you are hit with a problem in SharePoint 2010 - 2013  you get notified to use a correlation id to check for further details in the trace logs (ULS logs). So you hopefully start up ULS Viewer and open up the relevant logs and search like a mad man after this specified correlation id. Sometimes you don’t find the provided correlation id in the log file you opened. Is there a easier way? Yes and that is to use the SharePoint PowerShell command Merge-SPLogFile. According to the description of Merge-SPLogFile on Microsoft TechNet: “Combines trace log entries from all farm computers into a single log file on the local computer.” Let me explain how you can use this powerful command. Basic Usage Lets visualise a simple farm. As the example Farm image above we have two frontend servers, application server and database server. If I wanted to consolidated the last hour of SharePoint log entries from the front-end server and application server I would open up SharePoint M

SharePoint: User Permissions detail report for a Web Application

fuente:  http://mstechtalk.com/sharepoint-user-permissions-detail-report-for-a-web-application/ Overview: A site administrator can easily verify and check user permissions from site settings page, steps are quite simple: Go to  Site Settings  –>  Site Permissions  –> Click on Check  Permissions Button  and enter user name, this will list the user rights for a single user. But what if it is required to list access permission details for all the users in a SharePoint site, this is not possible Out of the Box. The below listed script methods are helpful is this scenario, it will list  all users with their permissions and security group detail. The script will generate a detail drill down report for a Web Application which include all sites, sub sites, lists/libraries and items (if inheritance is break). PowerShell #Script written and modified by Adnan Amin #Blog: http://mstechtalk.com #twitter: @adnan_amin #facebook: https://www.facebook.com/groups/SharePoint.Pakistan/ #

Get SharePoint List Inventory using PowerShell

FUENTE: http://mstechtalk.com/get-sharepoint-list-inventory-using-powershell/  PowerShell scripts are very useful to generate some amazing reports, recently I have written a PowerShell script which retrieves all lists and libraries for a  SharePoint  site collection under all sub sites with item count and versioning enabled. This is a report which can be very useful when you are going to the delta/cutover migration and you can get the details for list and libraries recently modified and also item count. Use this report to compare list count including item count in each list for different sites (useful in migrations). You can download the script directly from GitHub repository. Include the reference SharePoint PowerShell. if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin “Microsoft.SharePoint.PowerShell” } I am going to create a function name “ GetListInventory ” which will take one site Url as parameter.