View all Crawled Properties for a given SharePoint Document

96

View all Crawled Properties for a SharePoint Document I often need to examine all the properties of a document. This is most useful for researching issues relating to the crawl property values. In this little PowerShell function I grab the SPItem, and split the internal XML with line feeds. Here’s the function: #To use, simply […]

Save a SharePoint Library as a Site Collection List Template

102

Save a SharePoint Library as a Site Collection List Template SharePoint has the capability to create list templates for future library creation. This is very useful, but the methods to do this programatically are not obvious. Here’s a script I wrote to loop through a specific set of Site Collections off a managed path, and […]

Adding a SharePoint View to every library

103

How to add a SharePoint View to every library Sometimes one has to create a custom view and deploy it to every library. This example walks through a set of explicitly named site collections within a given Managed Path, and adds a custom view. To enable running it multiple times, the script first deletes every […]

Adding one field to a SharePoint View in every library in every site

104

Adding a field every SharePoint View Sometimes one needs to change a SharePoint library view across all libraries and sites. Here’s how to do it. First loop through sites/webs/libraries and find the target libraries. In this example, I use Content Types enabled as one of the criteria. Next, I delete the field I want to […]

Propagating legacy Document IDs into SharePoint

105

Document IDs in SharePoint Document IDs are generated automatically by SharePoint when configured, but what if you have your own legacy Document IDs that you want to use? There is a way to push them in. The first trick is recognizing there are two internal fields created when Document IDs are enabled. ows__dlc_DocId : The […]

Generating automatic emails with embedded reports and link to uploaded CSV

106

Generating automatic emails with the embedded content There’s often a need to automate the generation of reports on SharePoint. I typically need to generate such a report based on: 1. Content using search: acquired via a Search Query 2. Content via manual crawl: walking through libraries, even sites, site collections and farms 3. Based on […]

Quick Inventory of SharePoint Databases

107

Inventory SharePoint Databases Often I have to quickly analyze SharePoint databases; both Content DBs as well as the full set of existing databases. This could be to see which of the databases are still a part of the farm. Here’s how to quickly see which Content DBs are mounted in the Farm: For the more […]