摘要:Resource URL:http://blogs.msdn.com/b/ekraus/archive/2009/11/06/sharepoint-2010-provisioning-a-new-farm-with-powershell.aspx
阅读全文
摘要:在SharePoint中,如何做到创建站点集后,在第一次进入站点的时候选择站点模板?答案是用命令行进行创建,不需要指定站点模板。备份站点:stsadm.exe –o backup –url <site url> -filename <storage path.dat> -nositelock删除站点:stsadm.exe –o deletesite –url <site url>创建站点:stsadm.exe -o createsite -url <host auth/pub url> -owneremail <someone@xyz.co
阅读全文
摘要:IDGroupLocationSequenceRegistrationTypeRegistrationIDTrustedPersLinksUAPOffice.Server.ServiceProvider.Administration15SspSearchAnalyticsSearchOffice.Server.ServiceProvider.Administration30SearchSettingsSearchOffice.Server.ServiceProvider.Administration10ManagePubLinksUAPOffice.Server.ServiceProvider
阅读全文
摘要:$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.UseClaimsAuthentication = 1; $webApp.Update() $webApp.ProvisionGlobally()$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.MigrateUsers($True)
阅读全文
摘要:在SharePoint 项目中使用自定义母版页,在部署或者发布项目版本的时候需要设置母版页,使用该脚本可以进行初始化设置。$site = get-spsite(http://server);$web = $site.RootWeb;$web.Files[0].delete();$web.CustomerMasterUrl = "/_catalogs/masterpage/custom.master";$web.update();
阅读全文
摘要://得到List$web = get-spweb(http://dexter-pc:90s);$CustomerList = $web.Lists["Customer"];//给List添加字段$CustomerList.Fields.Add("Customer_Name","Text","false");$CustomerList.update();//给List 添加Item$CustomerItem = $CustomerList.AddItem();$CustomerItem["Customer_Id"] = "10000";$CustomerItem["Customer_Name"]
阅读全文
摘要://创建文档库$web = get-spweb -Identity http://dexter-pc:90;$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary;$web.Lists.Add("Document Name","Document Desc",$listTemplate);//得到文档库$spDocumentLibrary = $web.GetList("Document Name");//更该文档库的Description$spDocumentLibrary.Description =
阅读全文