At the moment I’m busy investigating the installation of SharePoint 2010 through PowerShell scripting. Although I am a newbie to PowerShell I got a long way thanks to several sites on the internet. I shall list all the sources I used in the last post of this series.

In this series of posts I shall describe how install a single server SharePoint 2010 farm on Windows Server 2008 R2. On the same server I have installed SQL Server 2008 R2 CTP (this will not be described). So, I start with a Windows 2008 R2 server with SQL 2008 R2 and Active Directory installed. Nothing Else.

Before you can run a PowerShell script you first have to run a cmdlet to change the PS execution policy. To do so, open PowerShell and run this:

Set-ExecutionPolicy Unrestricted

The first script (copy script below to text file and save as .ps1 file) is executed to set some DC prerequisites:

$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)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
Write-Host “DC prerequisites are set”

The series:

Part 1: DC prerequisites

Part 2: SharePoint 2010 prerequisites

  • Share/Save/Bookmark

Tags: ,

Free wordpress themes | Drupal themes | Joomla templates | Mediawiki skins | Free pligg themes | Web templates" | Customizable Website Templates |

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>