1. 显示场中所有可用的网站集

Get-SPSite

2. 显示某一Web应用程序下可用的网站集

Get-SPSite –WebApplication "SharePoint – 80"

3. 显示某一内容数据库中可用的网站集

Get-SPSite –ContentDatabase "WSS_CONTENT1"

4. 获取指定的网站集

$webApp = Get-SPSite -Identity http://sp2010

5. 移除一个网站集

使用变量:

$siteCol = Get-SPSite -Identity "http://sp2010/sites/sitecol"
Remove-SPSite $siteCol

直接移除:

Remove-SPSite –Identity http://sp2010/sites/sitecol

6. 创建网站集

New-SPSite –url http://sp2010/sites/sitecol -name Home
-owneralias SP\SiteAdmin -template STS#0

7. 设置网站集的锁定状态

Set-SPSite –Identity http://sp2010/sites/sitecol -LockState NoAdditions

8. 设置网站集的存储限制

Set-SPSite –Identity http://sp2010/sites/sitecol -MaxSize 1024
-WarningSize 768

9. 在网站集下创建一个网站

New-SPWeb –url http://sp2010/sites/sitecol/newsubsite
-name "New Sub Site" -template STS#0 –AddToTopNav –UniquePermissions
-UseParentTopNav

10. 显示某一个网站集下的所有子网站

Get-SPWeb –Identity http://sp2010/sites/sitecol/*

Get-SPWeb –Site http://sp2010/sites/sitecol

11. 获取指定的网站

$web = Get-SPWeb -Identity http://sp2010/sites/sitecol/subsite

12. 从网站集中移除一个网站

使用变量:

$web = Get-SPWeb -Identity "http://sp2010/sites/sitecol/subsite"
Remove-SPWeb $web

直接移除:

Remove-SPWeb –Identity http://sp2010/sites/sitecol/subsite

13. 修改网站的URL

Set-SPWeb –Identity "http://sp2010/sites/sitecol/newsubsite"
–RelativeURL teamsites

14. 移动网站集到另一个内容数据库

Move-SPSite –Identity "http://sp2010/sites/sitecol"
–DestinationDatabase "WSS_CONTENT_TEAMSITES"

15. 将所有网站集从一个内容数据库移动到另一个内容数据库

Get-SPSite –ContentDatabase "WSS_CONTENT_MAIN" | Move-SPSite
–DestinationDatabase "WSS_CONTENT_TEAMSITES"

SharePoint 网站管理-PowerShell的更多相关文章

  1. [转载]SharePoint 网站管理-PowerShell

    1. 显示场中所有可用的网站集 Get-SPSite Get-SPSite 2. 显示某一Web应用程序下可用的网站集 Get-SPSite –WebApplication "SharePo ...

  2. SharePoint场管理-PowerShell(一)

    1. 查看场配置信息 Get-SPFarmConfig 2. 设置场配置信息 Set-SPFarmConfig –ASPScriptOptimizationEnabled:$true –DataFor ...

  3. SharePoint场管理-PowerShell(二)

    1. 合并Log文件 Merge-SPLogFile –Path E:\Logs\MergedLog.log –StartTime "1/19/2010" –Overwrite 2 ...

  4. 如何对SharePoint网站进行预热(warmup)以提高响应速度

    问题描述 SharePoint Server是一个易于使用的协作平台,目前在越来越多的企业中被应用开来.SharePoint Server是通过网站的形式向最终用户提供服务的,而这个网站是基于ASP. ...

  5. SharePoint 网站登录不上,3次输入用户名/密码白页

    新搭建的SharePoint 2013环境,第一次干的这么憋屈的慌,先是接了一个Ghost的服务器,装好的服务器.Sql.SharePoint.VS等一系列,却发现怎么都登陆不上去,输入账号3次以后白 ...

  6. 我们无法找到服务器加载工作簿的数据模型"的 SharePoint 网站,当您刷新 Excel 2013 工作簿中的数据透视表时出错

    假定您使用 Analysis Services 源在 Microsoft Excel 2013 中创建数据透视表.将 Excel 工作簿上载到 Microsoft SharePoint 网站中.当您尝 ...

  7. SharePoint安全 - SharePoint网站常用页面URL索引

    博客地址 http://blog.csdn.net/foxdave 一. 主要网站内容 首页 /default.aspx /Pages/default.aspx 网站设置 /_layouts/sett ...

  8. Sharepoint网站创建自定义导航全记录

    转:http://tech.it168.com/a2009/1207/820/000000820524_all.shtml [IT168 技术文档]在一个Sharepoint网站中可以创建子网站,页面 ...

  9. 为SharePoint网站创建自定义导航菜单

    转:http://kaneboy.blog.51cto.com/1308893/397779 相信不少人都希望把SharePoint网站内置的那个顶部导航菜单,换成自己希望的样式.由于SharePoi ...

随机推荐

  1. python闭包closure

    在讨论闭包之前,先总结一下python的命名空间namespace,一般的语言都是通过namespace来识别名字标识,无论是变量,对象,函数等等.python划分3个名字空间层次,local:局部, ...

  2. shell 求幂

    $ let i=** $ echo $i $ ((i=**)) $ echo $i $ echo "5^2" | bc

  3. Python定位SVG元素

    svgelementXpath = "//div[12]/*[name()='svg']/*[name()='g']/*[name()='g'][2]/*[name()='g'][1]/*[ ...

  4. JSON自定义排序

    var json=[{ Name:'张三', Addr:'重庆', Age:'20' },{ Name:'张三3', Addr:'重庆2', Age:'25' },{ Name:'张三2', Addr ...

  5. ContentPresenter

    这是2年前写了一篇文章 http://www.cnblogs.com/Clingingboy/archive/2008/07/03/wpfcustomcontrolpart-1.html 我们先来看M ...

  6. English trip -- Review Unit3 Family 家人

    Words daughter grandfather grandmother husband wife uncle aunt brother sister Who is ...? Loki's ... ...

  7. codeforces 55d//Beautiful numbers// Codeforces Beta Round #51

    题意:一个数能整除它所有的位上的数字(除了0),统计这样数的个数. 注意离散化,为了速度更快需存入数组查找. 不要每次memset,记录下已有的长度下符合条件的个数. 数位dp肯定是从高位到低位. 记 ...

  8. dubbo监控报错Error creating bean with name 'uriBrokerService'

    在jdk1.8下面会出现此错误 解决方法: 1.更换服务器jdk版本.(会影响其他项目环境) 2.修改dubbo-admin tomcat默认jdk版本. 3.修改dubbo-admin项目依赖(de ...

  9. splay训练

    1, CF 455D 2, CF 420D 3, CF 414E

  10. Ciel the Commander CodeForces - 321C (树, 思维)

    链接 大意: 给定n结点树, 求构造一种染色方案, 使得每个点颜色在[A,Z], 且端点同色的链中至少存在一点颜色大于端点 (A为最大颜色) 直接点分治即可, 因为最坏可以涂$2^{26}-1$个节点 ...