Skip to main content

Posts

Showing posts from April, 2020

Retrieve SharePoint last modified details using Powershell

Below is a simple script to retrieve the SharePoint webapplication last modified details along with the site/subsite URL and folder size. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $siteInfo = @(); Get-SPWebApplication http://yourwebapplication/ | Get-SPSite -Limit All | Get-SPWeb -Limit All|%{ $web = $_; $listInfo = "" $versionCount = "" $strHomePage = $web.RootFolder.WelcomePage        $WebSize = CalculateFolderSize($Web.RootFolder)        $row = New-Object -TypeName PSObject        $row | Add-Member -Name 'Site' -MemberType Noteproperty -Value $web.Title        $row | Add-Member -Name 'URL' -MemberType Noteproperty -Value $web.Url        $row | Add-Member -Name 'LastModifiedDate' -MemberType Noteproperty -Value $web.LastItemModifiedDate.tostring('dd/MMM/yyyy')        $row | Add-Member -Name 'Size' -MemberType Notepr...

SharePoint Site Permissions page throws "Something Went wrong" error

Thought of  sharing my experience on an issue which I encountered recently that took me 10 hrs! to resolve. To be frank, it consumed an entire day just to understand the issue! Here it goes, We all know that the Pages, Lists, Libraries can be shared with other users using the so called "Site Permissions" settings from the "Site Settings" tab or by directly clicking on the "Share" button. The "Site Permissions" settings can be found under the Site Settings->Users and Permissions. To my surprise, the "Site Permissions" page started showing "Something went wrong" along with a correlation id. It has to be noted that, there was no issue in accessing the "Site Permissions" of the root site and all other subsites. The issue was only with this particular subsite. Following are the workaround tried to resolve the issue. 1. Extract the error message from the correlation id either by searching for it in the UL...