SharePoint 网站管理-PowerShell
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的更多相关文章
- [转载]SharePoint 网站管理-PowerShell
1. 显示场中所有可用的网站集 Get-SPSite Get-SPSite 2. 显示某一Web应用程序下可用的网站集 Get-SPSite –WebApplication "SharePo ...
- SharePoint场管理-PowerShell(一)
1. 查看场配置信息 Get-SPFarmConfig 2. 设置场配置信息 Set-SPFarmConfig –ASPScriptOptimizationEnabled:$true –DataFor ...
- SharePoint场管理-PowerShell(二)
1. 合并Log文件 Merge-SPLogFile –Path E:\Logs\MergedLog.log –StartTime "1/19/2010" –Overwrite 2 ...
- 如何对SharePoint网站进行预热(warmup)以提高响应速度
问题描述 SharePoint Server是一个易于使用的协作平台,目前在越来越多的企业中被应用开来.SharePoint Server是通过网站的形式向最终用户提供服务的,而这个网站是基于ASP. ...
- SharePoint 网站登录不上,3次输入用户名/密码白页
新搭建的SharePoint 2013环境,第一次干的这么憋屈的慌,先是接了一个Ghost的服务器,装好的服务器.Sql.SharePoint.VS等一系列,却发现怎么都登陆不上去,输入账号3次以后白 ...
- 我们无法找到服务器加载工作簿的数据模型"的 SharePoint 网站,当您刷新 Excel 2013 工作簿中的数据透视表时出错
假定您使用 Analysis Services 源在 Microsoft Excel 2013 中创建数据透视表.将 Excel 工作簿上载到 Microsoft SharePoint 网站中.当您尝 ...
- SharePoint安全 - SharePoint网站常用页面URL索引
博客地址 http://blog.csdn.net/foxdave 一. 主要网站内容 首页 /default.aspx /Pages/default.aspx 网站设置 /_layouts/sett ...
- Sharepoint网站创建自定义导航全记录
转:http://tech.it168.com/a2009/1207/820/000000820524_all.shtml [IT168 技术文档]在一个Sharepoint网站中可以创建子网站,页面 ...
- 为SharePoint网站创建自定义导航菜单
转:http://kaneboy.blog.51cto.com/1308893/397779 相信不少人都希望把SharePoint网站内置的那个顶部导航菜单,换成自己希望的样式.由于SharePoi ...
随机推荐
- JavaScript紧凑学习
JavaScript紧凑学习 windows本地,调用命令行: win键+R 键入cmd , (cmd是Command 命令行 简称) 目录是C盘下的 C:\Users\Administrator&g ...
- Spring编译AOP项目报错
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springfram ...
- Vim简本
参考链接:http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/ 本文将更简化,只保留其中的精华部分. Level One — ...
- python ros 重新设置机器人的位置
#!/usr/bin/env python import rospy import math from tf import transformations from geometry_msgs.msg ...
- js焦点事件:onfocus、onblur、focus()、blur()、select()
焦点:使浏览器能够区分用户输入的对象,当一个元素有焦点的时候,那么他就可以接收用户的输入只有能够响应用户操作额元素才可以接收焦点事件,比如:a button input... onfocus:当元素获 ...
- Codeforces 855B - Marvolo Gaunt's Ring
855B - Marvolo Gaunt's Ring 思路:①枚举a[j],a[i]和a[k]分别用前缀最小值最大值和后缀最小值和后缀最大值确定. ②dp,dp[i][j]表示到第j为止,前i+1个 ...
- infra 仪表盘效果
private void Gauge2() { // Infragistics.WebUI.UltraWebGauge.UltraGauge ultraGauge2 = //new Infragist ...
- 肠道型(enterotype)简介
An enterotype is a classification of living organisms based on its bacteriological ecosystem in the ...
- android--------Popupwindow的使用
PopupWindow在Android.widget包下,项目中经常会使用到PopupWindow做菜单选项, PopupWindow这个类用来实现一个弹出框,可以使用任意布局的View作为其内容, ...
- thinkphp查询缓存
S()函数的使用: ThinkPHP把各种缓存方式都抽象成统一的缓存类来调用,而且ThinkPHP把所有的缓存机制统一成一个S方法来进行操作,所以在使用 不同的缓存方式的时候并不需要关注具体的缓存 ...