I’ve been rebuilding our demo Sharepoint Server today and came across an issue which caused installation to fail. If you install Sharepoint 2010 on a Domain Controller, it will fail; luckily, the internet came to my rescue!
A Bing brought up this post by Sharepoint Joel which has 10 troubleshooting tips for this application…and shoot trouble they did! The one I needed was number 8:
If you are using SharePoint on DC, the following Windows PowerShell command would need to be run to enable Sandboxed Solutions.
$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
I ran that and BOOM, Sharepoint Config worked first time 🙂
If you’re experiencing issues with your install and/or want to see common pitfalls before you start the process, definitely check out his entire post here: