Eli Hess

Explore articles and content from this author

Eli Hess

3 articles published

2 min read

Use PnP PowerShell to add ContentType for your SharePoint site

You can achieve the task by using SharePoint GUI. However, if your sites collection has tens of hundreds sites and each site has more than one document library, it will become a nightmare for a SharePoint administrator to do the task by using GUI. Luckily, there is PnP Powershell which can help us achieve the goal. The steps will be like below: #Step1: export your login credential to a secure file on your local machine

4 min read

Executing LINQ Queries in PowerShell – Part 2

And we’re back! Ok, so in the last blog we began a conversation about delegates and using LINQ in PowerShell. In today’s post, I’m going to give an example of how it can be incredibly useful. Let’s talk about Joins. Joins In my line of work, I’m constantly running into the need to combine datasets from multiple sources that relate to each other and pull out some specific properties. Say you have two internal services, one which is used to track production status and another which is used to monitor whether machines are online.

4 min read

Executing LINQ Queries in PowerShell – Part 1

Greetings PowerShellers! Lately, I’ve been itching to write something up on Microsoft’s Language-Integrated Query (LINQ). You’ve likely encountered it if you’ve done any development in C#. LINQ is an incredibly powerful querying tool for performing look-ups, joins, ordering, and other common tasks on large data sets. We have a few similar cmdlets built into PowerShell, but other than the ‘.Where()’ method on collection objects nothing that comes close to the speed at which LINQ operates.