在Windows 8上架设SharePoint 2010开发环境

准备安装SharePoint环境

  1. 以管理员权限执行Command Line 
    start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;^
    IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;^
    IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;^
    IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;^
    IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;^
    IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;^
    IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;^
    IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;^
    IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivati​​onService;WAS-ProcessModel;^
    WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activati​​on;^
    WCF-NonHTTP-Activati​​on
  2. 启用.NET Framework 3.5及Windows Identity Foundation 3.5
    
    imageSNAGHTML2c825c6
  3. 安装MSChart Control
    
    http://www.microsoft.com/zh-tw/download/details.aspx?id=14422
  4. 设定IIS预设应用程式集区的.NET Framework版本为2.0
    
    image

安装SharePoint 2010

  1. 建立资料夹,将SharePoint安装程式复制到此资料夹
  2. 修改安装目录下的config.xml,加入AllowWindowsClientInstall为true(<Setting Id="AllowWindowsClientInstall" Value="True"/>),路径:[SharePointSetupFiles]\Files\Setup
  3. 接下来就可以照着MSDN的解说安装SharePoint
     http://msdn.microsoft.com/en-us/library/ee554869.aspx
  4. 执行SharePoint设定精灵初始化

SharePoint PowerShell启动方式

Windows 8的PowerShell预设会以CLR 4.0执行,因此SharePoint PowerShell会执行出错,如果要启动SharePoint的PowerShell SnapIn,需要先执行旧版PowerShell再载入SnapIn,

旧版PowerShell执行方式:

PowerShell -version 1

 

可以利用以下的Script来载入SnapIn:

$snapin = Get-PSSnapin | Where-Object {$_.Name -eq  'Microsoft.SharePoint.Powershell' }
 if ($snapin -eq $null)
{
    Write-Host "Loading SharePoint Powershell Snapin" 
    Add-PSSnapin "Microsoft.SharePoint.Powershell" 
}
posted @ 2013-06-19 09:59  Huaen  阅读(293)  评论(0编辑  收藏  举报