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. MapReduce程序(一)——wordCount

    写在前面:WordCount的功能是统计输入文件中每个单词出现的次数.基本解决思路就是将文本内容切分成单词,将其中相同的单词聚集在一起,统计其数量作为该单词的出现次数输出. 1.MapReduce之w ...

  2. Web前端代码规范

    新增:http://materliu.github.io/code-guide/#project-naming HTML 原则1.规范 .保证您的代码规范,保证结构表现行为相互分离.2.简洁.保证代码 ...

  3. UVa 147 Dollars(完全背包)

    https://vjudge.net/problem/UVA-147 题意: 换零钱,计算方案数. 思路: 完全背包,UVa674的加强版. #include<iostream> #inc ...

  4. Linux Shell学习笔记(一)

    Shell,见名知意,就是一个作为用户与Linux OS间接口的程序,允许用户向OS输入需要执行的命令.Shell众多,这里只介绍Bash. 0)实验的Shell版本 显示shell版本: /bin/ ...

  5. python ros 回充demo

    #!/usr/bin/env python #coding=utf- import rospy from std_msgs.msg import String i= def talker(): glo ...

  6. NetCat教程

    NetCat by Jian Lee 简介 使用 隐藏命令行参数 正/反向域名解析 参数详解 案例 监听端口(制作蜜罐) 端口扫描 ftp 服务器 两台服务器文件校验 使用注意 简介 使用 最简单的使 ...

  7. js插件---在线类似excel生成图表插件解决方案

    js插件---在线类似excel生成图表插件解决方案 一.总结 一句话总结:google比百度好用多了,多用google google js editable table jquery 双向绑定 这种 ...

  8. C++STL3--queue

    C++STL3--queue 一.心得 STL的这些东西用法都差不多 二.介绍 queue数据结构中的队列 priority_queue优先队列,插入进去的元素都会从大到小排好序 PS:在priori ...

  9. English trip M1 - PC12 I'd Like a Room Please Teacher:Taalan

    In this lesson you will learn to say what you need. 在本课中,您将学习如何说出您的需求. Words list elevator  电梯      ...

  10. Filters: before, after, around, 常用到before_action,执行顺序是从外到内。

    Filters是继承的,所以可以在ApplicationControlooer中设置filters. 如果有多个过滤,它们执行的顺序 先父类,然后往下推倒到子类 同一个类,按照代码上下顺序执行.