3

You could use DefaultViewUrl property. (get-spsite -identity http://sp13).allwebs.lists | select title, DefaultViewUrl , LastItemModifiedDate, itemcount Update: (get-spsite -identity http://sp13).allwebs.lists | select {$_.ParentWeb.Url}, title, DefaultViewUrl , LastItemModifiedDate, itemcount


3

You could optimize the code by getting all the items that you need before the for loop, instead of requesting every item and going to the server to get it from within the loop. So, basically, you need to create a query object, get all items in one call to the server, and then loop through items and do whatever you need to do. This way you will save both the ...


2

Indeed the 5.0 had some issues with Exchange and SharePoint. I am using 5.1 for about year and half now on 8 farms environment and we haven't hit any issues. We even automated the CU process using PS. We use PS very extensively for admin and release deployment. Main reason to move to 5.1 were improvements in the DSC. The release notes for 5.1 do not ...


1

The following PowerShell script for your reference. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Get the Web $web=Get-SPWeb "http://sp2013/sites/team" #Get the List/Library $list=$web.Lists.TryGetList("Library") [System.Array]$Words = 'Project Overview','Project from pervious Years' foreach($folder in $list.RootFolder....


1

Your second example is for a "basic" function. It uses the same syntax that we have used in many other languages: the word "function", a name for the function, a left paren, a list of parameters, a right paren, and a code block enclosed in curly brackets. They are quick and easy to write. Your first example is for an "advanced" function that uses a formal ...


1

Appreciate this is a few months old but I had a similar problem today. When adding a new node with CSOM, using the NavigationNodeCreationInformation class, you can specify the previous node. If you need to reorder existing nodes programmatically, I think you would have to delete and recreate them (haven't found a way to reorder existing nodes). ...


1

You can refer to the two articles below: 1.Step by steps on how to display Most Visited Sites with number of view count in SharePoint 2013 Web Analytics. https://www.sharepointpals.com/post/step-by-steps-on-how-to-display-most-visited-sites-with-number-of-view-count-in-sharepoint-2013-web-analytics/ 2.SharePoint 2013: Showing Page Views within a ...


1

You cannot grant a permission on a file before uploading it as there is nothing to set the permission on before the file has been uploaded, unless you have a container (folder). In any case, if you upload the file and then set the permission, the file would only be visible for a second or so, and probably just a fraction of a second. If you use folders, you ...


1

Use the script below to find content type by name: #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Config ...


1

I Ultimately was able to take some code from "Knowledge - Craft - Truthful 2017" I found using SharePoint PnPPowerShell for SharePoint 2013 proved to be simple and easy in installing the module and deploying a solution. I'll post the script below in case anyone in the future will find this Script or at least the Module used helpful. Many Thanks for Jaloplo ...


1

Please check if below helps... Ref link $siteUrl = "http://sandbox0391" $resultSourceName = "Local SharePoint Results" $web = Get-SPWeb $siteUrl $ssa = Get-SPEnterpriseSearchServiceApplication "SBX Search Service Application 2" $queryRuleManager = New-Object Microsoft.Office.Server.Search.Query.Rules.QueryRuleManager($ssa) $site = Get-SPSite $siteUrl $...


Only top voted, non community-wiki answers of a minimum length are eligible