SharePoint 2010 Certificates and Certificate Authority

SharePoint Certificate Authority and Root Certificate To properly understand the out-of-the-box configuration of the SharePoint local Security Token Service and the SharePoint Services host, it’s important to understand the SharePoint certificate authority and collection of certificates created by default in a farm. When connecting to SharePoint 2007 shared Web services via HTTPS (via the Office…

2

Decrypt secure strings in PowerShell

Before I show you how to decrypt a SecureString quickly in PowerShell, let’s explain why this is something an administrator should be aware of and able to do and why this doesn’t constitue a “hack” or circumvention of security. What I’m demonstrating isn’t a magic trick – it’s by design! SecureStrings are meant to be…

3

Modify SharePoint web.config files via PowerShell (on Hey Scripting Guy)

It’s Guest Blogger Week at the Hey, Scripting Guy blog this week, and today they’re featuring an article by me! Check it out at Use PowerShell to script changes to the SharePoint web.config file. Hey, Scripting Guy is a great resource for PowerShell tips and lots of script recipes – a must on the blogroll…

0

HTTP Request Throttling in SharePoint 2010 (Part 2)

In Part 1 of this series on HTTP Request Throttling, we discussed how to retrieve and modify existing monitors. It’s now time to see how you can add your own monitors to the Request Throttling and Monitoring system. As an example, we’ll assume that you’d like to add a monitor for CPU percentage to the…

1

HTTP Request Throttling in SharePoint 2010 (Part 1)

SharePoint Web servers can generate a pretty heavy resource load, consuming processor time, memory, and disk I/O. Usually, a farm will continue to process requests even while under heavy strain, only the performance and response time for end users will gradually degrade, as Web pages take longer to return and AJAX and service requests take…

5

The SharePoint 2010 Health System: A Quick Primer

SharePoint 2010 introduces the SharePoint Health framework, a formalized API and user interface for defining checks to be run against SharePoint farms and services and reports to be returned by these checks. The framework actually has its roots in the STSADM PreUpgradeCheck command introduced in SharePoint 2007 Service Pack 2. Checks performed by both tools…

0

PowerShell Remoting for SharePoint

Well, well, well, if it isn’t our friend the double-hop authentication problem again rearing its ugly head when trying to use PowerShell remoting technologies to manage a SharePoint farm… So you’ve run Set-WSManQuickConfig and/or Enable-PSRemoting on your server, you’ve entered an interactive shell from the client into that server, loaded the SharePoint Snapin however you…

3

Turn Developer Dashboard on/off via PowerShell

I couldn’t find a simple way to turn the developer dashboard on and off via PowerShell – there’s a STSADM property for it, but who wants to use STSADM anymore? So here’s a function to change the setting quickly.   001002003004005006007008009010011012013014015016017018019020 function Set-DevDashboard ( [string] $setting ) {    $dashboardSetting = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings    Write-Host “Setting Developer Dashboard DisplayLevel to $setting.” -ForegroundColor Gray    switch -exact ($setting) {        “On” {             $dashboardSetting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On         }         “OnDemand” {            $dashboardSetting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand        …

0

Double-hop authentication: Why NTLM fails and Kerberos works

A common scenario in SharePoint is the need to retrieve data from back-end data sources – external databases, Web services, reports via SQL Server Reporting Services (SSRS), and data cubes via Analysis Services are some common examples. Often these data sources need to be accessed as the original user so that proper authorization rules can…

15

How SharePoint integrates with the ASP.NET Infrastructure

SharePoint is built on top of ASP.NET. There are several key classes/objects in the SharePoint infrastructure which customize the ASP.NET pipeline; or in the case of SharePoint 2010 the integrated ASP.NET/IIS pipeline. The abstract and base implementations for these classes, as well as important interfaces, are defined in the System.Web namespace. The SharePoint versions are…

2