SharePoint 2010 User Profile Service vs. NETBIOS

Recently I’ve had a niggling problem with SharePoint 2010 UPS – My user profiles were appearing with the wrong domain prefix and it was throwing out the people pickers and org charts in my sites.

It boiled down to the fact that our company NETBIOS name for the domain doesn’t match the first part of our fully qualified domain name.

E.g. NETBIOS name is DanCorp but FQDN is corp.dan.com

The problem here is that SharePoint has a setting called NetBIOSDomainNamesEnabled which by default is set to False.

The solution is to set this to True (see below), then delete your AD connection in Central Admin, recreate it and run a full sync.

BEWARE – Our tech support guys tried this with deleting the AD connection and it made our domain controllers VERY upset, we had user authentication issues all over the place.  If you follow the steps below you should be fine but be sure to delete and recreate the connection to AD in Central Admin before running a synchronisation.

Step by step

1) set NetBIOSDomainNamesEnabled to True through Powershell (script below)

2) Delete the sync connection in Central Admin (‘Configure Synchronisation Connections’ on the manage user profile service screen).

3) Recreate the connection.

4) Run a full synchronisation.

Powershell script (save this as a .PS1 file and run it using ‘SharePoint 2010 Management Shell’)

$ServiceApps = Get-SPServiceApplication

$UserProfileServiceApp = “”

foreach ($sa in $ServiceApps)

{if ($sa.DisplayName -eq “User Profile Service”)

{$UserProfileServiceApp = $sa}

}

$UserProfileServiceApp.NetBIOSDomainNamesEnabled = 1

$UserProfileServiceApp.Update()

Annoying prompt opening PDFs in SharePoint 2010

Today I came across an issue where I created a doc library and uploaded some PDFs to it – When you click on a PDF it popped up a prompt saying open read only or edit.

When would I want to edit a pdf? (not very often in my case) – So I wanted to get rid of this.

Jess Collicot gave the answer (http://www.deliveron.com/blog/post/Fixing-Prompts-When-Opening-PDFs-in-SharePoint-2010.aspx)

Basically you have to edit an XML document in the 14 hive of your sharepoint server(s) – The document is called DOCICON.XML and can be found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML (or your equivalent 14 hive location)

Find the node starting <Mapping Key=”pdf” Value….

and add OpenControl=”” to the end (inside the triangular brackets) – Mine now looks like this…

<Mapping Key=”pdf” Value=”pdficon.gif” OpenControl=”” />

Then a quick IIS reset and the prompt is gone – PDFs now open straight in the browser nice and quick. 🙂