随笔分类 -  SharePoint PowerShell Script

SharePoint PowerShell Script
SharePoint 2010 Provisioning A New Farm with PowerShell
摘要:Resource URL:http://blogs.msdn.com/b/ekraus/archive/2009/11/06/sharepoint-2010-provisioning-a-new-farm-with-powershell.aspx 阅读全文

posted @ 2011-11-18 10:46 张大明 阅读(137) 评论(0) 推荐(0)

使用stsadm.exe命令行删除,创建站点
摘要:在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 阅读全文

posted @ 2011-09-19 17:29 张大明 阅读(336) 评论(0) 推荐(0)

SharePoint Custom Action Identifiers
摘要:IDGroupLocationSequenceRegistrationTypeRegistrationIDTrustedPersLinksUAPOffice.Server.ServiceProvider.Administration15SspSearchAnalyticsSearchOffice.Server.ServiceProvider.Administration30SearchSettingsSearchOffice.Server.ServiceProvider.Administration10ManagePubLinksUAPOffice.Server.ServiceProvider 阅读全文

posted @ 2011-09-08 11:41 张大明 阅读(350) 评论(0) 推荐(0)

SharePoint PowerShell 修改站点为From认证
摘要:$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.UseClaimsAuthentication = 1; $webApp.Update() $webApp.ProvisionGlobally()$webApp = Get-SPWebApplication "http://cd-isbunet:82" $webApp.MigrateUsers($True) 阅读全文

posted @ 2011-03-07 10:15 张大明 阅读(186) 评论(0) 推荐(0)

SharePoint PowerShell Script Set Custom MasterPage Url
摘要:在SharePoint 项目中使用自定义母版页,在部署或者发布项目版本的时候需要设置母版页,使用该脚本可以进行初始化设置。$site = get-spsite(http://server);$web = $site.RootWeb;$web.Files[0].delete();$web.CustomerMasterUrl = "/_catalogs/masterpage/custom.master";$web.update(); 阅读全文

posted @ 2011-01-17 23:28 张大明 阅读(244) 评论(0) 推荐(0)

SharePoint PowerShell Script Use List,Add Field To List ,Create Discussion
摘要://得到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"] 阅读全文

posted @ 2011-01-17 23:17 张大明 阅读(385) 评论(0) 推荐(0)

SharePoint PowerShell Script Create Document Library,Upload File
摘要://创建文档库$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 = 阅读全文

posted @ 2011-01-17 22:41 张大明 阅读(705) 评论(0) 推荐(0)

导航