How to delete events from a SharePoint calendar without messing up the...
Recently we detected that a lot of deleted calendar entries appeared in the Recycle Bin of a SharePoint site. They were all originated from a specific calendar instance, and deleted by a custom...
View ArticleA specific case of "The file name you specified is not valid or too long"...
Recently I found a document library in one of our SharePoint 2013 environments, that produced an odd behavior. I describe the symptoms and the solution below. Symptoms Problem with uploading file into...
View ArticleRemoving the password protection from an Excel sheet using PowerShell
Today I received an Excel sheet that I should have to edit, although some cells whose value I had to change was protected by a password I did not know (Note: I’m using Excel 2013). I’m quite familiar...
View ArticleChecking user properties in Active Directory using PowerShell to identify...
While supporting a SharePoint environment having several thousands of users from multiple Active Directory domains, we have quite often complains, that one can not access the site. Beyond trivial...
View Article‘This site is read-only at the moment’ message in PWA
A few words about the ‘This site is read-only at the moment.‘ banner, more details about what that means can be found here and there. Recently I had the message in a new Project Server 2016...
View ArticleAutomating the Provisioning of a PWA-Instance in Project Server 2016
Yet in 2015 I wrote a post about the automatic provisioning of a PWA instance. That time, it discussed the process in the context of Project Server 2013, now I updated the description to the version...
View ArticleHttpRequest.Url contains always the full URL of the current request, doesn’t it?
Recently we had to create a Wellcome menu extension in SharePoint to make a custom application page available from all of the web site context, like standard lists and pages as well as standard and...
View ArticleThe sub-webs delivered to you are dirty
Recently I had to perform a simple administrative task: a SharePoint website had several sub-webs, each of them having unique permissions. Our goal was to reset the permissions to be inherited from the...
View ArticleFaking feature activation properties
Assume you have a feature receiver in your SharePoint project. You would like to perform multiple actions if the feature is activated, so you organize your code according to the actions into static...
View ArticleCreating statistics about web part usage from the SharePoint content database
Recently I had to create some statistics about SharePoint web site customizations, like on which pages are there Script Editor Web Parts, or Content Editor Web Parts, etc. I knew I could and probably...
View ArticleQuerying SharePoint list items including their attachment in a single request...
Assume there is a SharePoint list including a few hundreds of items, each item might have a few attachments, but there might be items without attachments as well. We need to display only some of the...
View ArticleHow to check if a specific file exists in a folder structure of a SharePoint...
Recently we had to create a utility function that makes it us possible to check if a file having a specific name exists anywhere within a folder structure of a SharePoint document library. As long as...
View ArticleChanging SharePoint Search Preferences from Code
In my recent post I’ve illustrated with C# and PowerShell examples, how to read search preferences info from code, both for the current user as well as for other users. In this post we will see, how to...
View ArticleQuerying SharePoint Search Preferences from Code
Recently a user complained, that he is not able to open office documents from the SharePoint portal of the company when working at home. He attached a screenshot of the error message in the browser to...
View ArticleCopy an XsltListViewWebPart from another SharePoint Site via PowerShell – The...
In my recent post I’ve illustrated, how to display SharePoint lists from other sites via PowerShell. As I told you, that solution does work only if you have direct access to the SharePoint server....
View ArticlePaging through the Entities returned by the ProjectData OData Interface of...
About a year ago I wrote about how you can use PowerShell and Project Server REST interfaces (ProjectServer and ProjectData) to generate reports. However, at the end of last year we had a problem with...
View ArticleCopy an XsltListViewWebPart from another SharePoint Site via PowerShell
It’s a common request, that the user would like to display a SharePoint List / Document library from another site. Unfortunately, that is not so easy. Users see only the lists exist on the current site...
View ArticleHow to detect if your DbConext is already disposed
A little background (or let’s say context) to the story. Recently I had to create a tool (of course it was SharePoint-related) that needs to import a quite large number of entries into a SQL database...
View ArticleDisplaying Filtered or Sorted SharePoint Web Properties from PowerShell
Specific SharePoint applications and services as well as tools, like SharePoint Designer tend to store their own settings in the property bag of web sites. Especially root webs of site collection have...
View ArticleEditing the PWS Site Address does not work if the URL is very long
As part of our daily jobs, we should rename projects on our Project Server occasionally. For this kind of change, we have already a “human workflow” or a check list: tasks, we should perform one after...
View Article