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的更多相关文章

  1. SharePoint 服务应用程序管理-PowerShell

    1. 安装所有可用的服务应用程序 Install-SPService -Provision 2. 显示场中所有可用的服务应用程序 Get-SPServiceApplication 3. 获取指定的服务 ...

  2. 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 ...

  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 ...

  4. SharePoint 创建列表并使用Windows Presentation Foundation应用程序管理列表

    SharePoint创建列表并使用程序管理列表         列表是SharePoint开发者输入数据的方式之中的一个.使用Web界面创建一个列表并加入一些数据.过程例如以下: 1. 打开站点. 2 ...

  5. 更改SharePoint 2007/2010/2013 Web 应用程序端口号

    之前创建的Web应用程序端口为80,因为其他需要要将端口更改为85,下面是具体步骤: 第一步:更改IIS绑定. 打开IIS服务管理器,右击需要更改的站点,选择编辑绑定. 在打开的网站绑定窗口,选择端口 ...

  6. [SharePoint 2013 入门教程 2 ] 创建WEB应用程序,网站集,网站

    SharePoint 2013 的 Hello World 由大到小  创建WEB应用程序(老母),网站集(儿子),网站(孙子) 直接确定,其余都默认 填入标题,选好模板.网站集 儿子就有了. 点击页 ...

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

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

  8. SharePoint场管理-PowerShell(二)

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

  9. .Net WebApi开发SharePoint出现System.IO.FileNotFoundException: 找不到位于的 Web 应用程序

    System.IO.FileNotFoundException: 找不到位于 http://xxx/sites/xxxx 的 Web 应用程序.请确认正确键入了此 URL.如果此 URL 需要提供现有 ...

随机推荐

  1. 使用Android-studio开发移动app与weex结合开发详细步骤

    详细步骤如下:   首先,确保机器已经安装了node.js,并且把npm更新到最新版本 下载完毕后,我们可以看到全局目录下的node_modules下面多出一个weex-toolkit 同时,我们留意 ...

  2. SQL 事务(Transaction)

    1.概念 指访问并可能更新数据库中各种数据项的一个程序执行单元(unit)由多个sql语句组成,必须作为一个整体执行这些sql语句作为一个整体一起向系统提交,要么都执行.要么都不执行 语法步骤:开始事 ...

  3. 【Coursera】Fourth Week(1)

    1994: year of the web (1)网景(Netscape)成立. (2)www conference 在CERN 举办. (3)www conference 在芝加哥举办. (4)十月 ...

  4. HDU 2544 最短路(Dijkstra)

    https://vjudge.net/problem/HDU-2544 题意: 输入包括多组数据.每组数据第一行是两个整数N.M(N<=100,M<=10000),N表示成都的大街上有几个 ...

  5. jquery扩展的两个方法与区别 $.extend $.fn.extend

    jQuery.extend:Query本身的扩展方法 jQuery.fn.extent(Object) jquery 所选对象扩展方法 jQuery.extend 我们先把jQuery看成了一个类,这 ...

  6. python 分数的数学四则运算

    import fractions f1 = fractions.Fraction(, ) f2 = fractions.Fraction(, ) print('{} + {} = {}'.format ...

  7. visudo使用笔记

    目录前言一.介绍二.配置文件简介三.实战配置 前言:    su 的确为管理带来方便,通过切换到root下,能完成所有系统管理工具,只要把root的密码交给任何一个普通用户,他都能切换到root来完成 ...

  8. jq 插入结构

    一.插入 1. append $("#div").append('<a href="baidu.com">a</a>') ;   // ...

  9. Grasshopper操作shp

    1 shp文件组件 提示ACE.OLEDB  未注册. 需要安装acess控件,https://www.microsoft.com/zh-CN/download/details.aspx?id=132 ...

  10. RabbitMQ入门_05_多线程消费同一队列

    A. 多线程消费同一队列 参考资料:https://www.rabbitmq.com/tutorials/tutorial-two-java.html 消费一条消息往往比产生一条消息慢很多,为了防止消 ...