SharePoint Web应用程序管理-PowerShell
1. 显示场中的Web应用程序
Get-SPWebApplication
2. 获取指定的Web应用程序
$webApp = Get-SPWebApplication -Identity "PSWebApp"
3. 移除一个Web应用程序
$webApp = Get-SPWebApplication -Identity "PSWebApp"
Remove-SPWebApplication $webApp
或者
Remove-SPWebApplication –Identity "PSWebApp"
当不再使用此Web应用程序时,可以增加-RemoveContentDatabases参数
4. 新建一个Web应用程序
New-SPWebApplication –applicationpool NewWebApp -name NewWebApp
-applicationpoolaccount SP\AppPoolAccount -port 80
5. 配置Web应用程序
Set-SPWebApplication
可以使用
Set-SPWebApplication -?
查看该命令的三个参数集:使用第一组参数配置默认的定额模版、默认的时区、服务应用程序代理组;使用第二组参数配置Web应用程序的区域连同关联的认证设置;最后一组参数配置邮件设置。
6. 扩展一个Web应用程序
New-SPWebApplicationExtension –Identity "SharePoint – 80"
–Name "SP Internet Site" –Zone Internet –Url "http://internet"
–HostHeader http://internet.sp2010.com
7. 创建一个备用访问映射URL
New-SPAlternateURL –URL "http://intranet.sp2010.com"
–WebApplication "SharePoint - 80" –Internal –Zone Intranet
8. 显示所有的备用访问映射
Get-SPAlternateURL
9. 获取指定的备用访问映射
$altURL = Get-SPAlternateURL -Identity http://intranet.sp2010.com
10. 更改备用访问映射的区域
Set-SPAlternateURL –Identity "http://intranet.sp2010.com"
–Zone Intranet
11. 移除一个备用访问映射
Remove-SPAlternateURL –Identity http://intranet.sp2010.com
SharePoint Web应用程序管理-PowerShell的更多相关文章
- SharePoint 服务应用程序管理-PowerShell
1. 安装所有可用的服务应用程序 Install-SPService -Provision 2. 显示场中所有可用的服务应用程序 Get-SPServiceApplication 3. 获取指定的服务 ...
- SharePoint 2013 创建web应用程序报错"This page can’t be displayed"
错误描述 This page can’t be displayed •Make sure the web address http://centeradmin is correct. •Look fo ...
- SharePoint 2013 创建web应用程序报错"This page can’t be displayed"
错误描写叙述 This page can't be displayed •Make sure the web address http://centeradmin is correct. •Look ...
- SharePoint 创建列表并使用Windows Presentation Foundation应用程序管理列表
SharePoint创建列表并使用程序管理列表 列表是SharePoint开发者输入数据的方式之中的一个.使用Web界面创建一个列表并加入一些数据.过程例如以下: 1. 打开站点. 2 ...
- 更改SharePoint 2007/2010/2013 Web 应用程序端口号
之前创建的Web应用程序端口为80,因为其他需要要将端口更改为85,下面是具体步骤: 第一步:更改IIS绑定. 打开IIS服务管理器,右击需要更改的站点,选择编辑绑定. 在打开的网站绑定窗口,选择端口 ...
- [SharePoint 2013 入门教程 2 ] 创建WEB应用程序,网站集,网站
SharePoint 2013 的 Hello World 由大到小 创建WEB应用程序(老母),网站集(儿子),网站(孙子) 直接确定,其余都默认 填入标题,选好模板.网站集 儿子就有了. 点击页 ...
- [转载]SharePoint 网站管理-PowerShell
1. 显示场中所有可用的网站集 Get-SPSite Get-SPSite 2. 显示某一Web应用程序下可用的网站集 Get-SPSite –WebApplication "SharePo ...
- SharePoint场管理-PowerShell(二)
1. 合并Log文件 Merge-SPLogFile –Path E:\Logs\MergedLog.log –StartTime "1/19/2010" –Overwrite 2 ...
- .Net WebApi开发SharePoint出现System.IO.FileNotFoundException: 找不到位于的 Web 应用程序
System.IO.FileNotFoundException: 找不到位于 http://xxx/sites/xxxx 的 Web 应用程序.请确认正确键入了此 URL.如果此 URL 需要提供现有 ...
随机推荐
- 【TCP/IP详解 卷一:协议】第十二章 广播与多播 ping实验
我手机连接到wifi上所分配到的IP地址:192.168.1.116 子网掩码:255.255.255.0 路由器:192.168.1.1 ping 192.168.1.116 (ping 一台主机的 ...
- 进制转换 hdoj-2031
进制转换,原题目:hdoj-2031 题目描述: 输入两个整数,十进制数n(32位整数)和进制r(2<=r<=16 r!=10),求转换后的数. 输入: 7 2 23 12 -4 3 输出 ...
- 实现简单的ORM
介绍 本篇将介绍实现简单的ORM,即:对数据表的通用操作:增.删.改.查 数据访问层 数据访问层类图 类说明: 1.DbProvider(供应):为数据操作提供基本对象,如:连接.操作对象.事务... ...
- jenkins 工作空间的目录
/usr/share/tomcat7/.jenkins/workspace/
- Springboot 学习笔记 之 Day 1
SpringBoot快速入门 https://spring.io/ 1. SpringBoot简介Spring Boot来简化Spring应用开发,约定大于配置,去繁从简,just run就能创建一个 ...
- disable某种警告
消除警告: #pragma warning(disable:4786) ZC: 需要消除哪种警告,就在上面填写相应的编号 1. 在 VC6中使用vector<string>时,报类似下面的 ...
- C++STL2--map
C++STL2--map 一.心得 本质上就是数组,关联数组,map就是键到值得一个映射,并且重载了[]符号,所以可以像数组一样用. map<string,int> cnt;//前键后值, ...
- Python的url解析库--urlparse
一.urlparse解析url的query并构建字典 下面的方法主要的功能: 解析url的各个部分,并能够获取url的query部分,并把query部分构建成dict. 具体的代码实现: >&g ...
- python-day68--模型层基础(model)
一.ORM : object relationship mapping 对象映射关系 映射关系: 表名 <-------> 类名 字段 <-------> 属性 表记录 & ...
- c++中的引用详解
什么是引用? 引用是C++语言的一个特殊的数据类型描述,用于在程序的不同的部分使用两个以上的变量名指向同一块地址,使得对其中任何一个变量的操作实际上都是对同一地址单元进行的. 使用时的注意事项: 引用 ...