zoukankan      html  css  js  c++  java
  • SharePoint 服务应用程序管理-PowerShell

    1. 安装所有可用的服务应用程序

    Install-SPService -Provision

    2. 显示场中所有可用的服务应用程序

    Get-SPServiceApplication

    3. 获取指定的服务应用程序

    $sApp = Get-SPServiceApplication -Identity bc4399ed-a
    2e0-4397-bf07-cd3d207e630e
    

    4. 配置服务应用程序的IIS设置

    $sApp = Get-SPServiceApplication -Identity bc4399ed-a
    2e0-4397-bf07-cd3d207e630e
    Set-SPServiceApplication $sApp
    -IISWebServiceApplicationPool "ServiceAppPool"

    它的主要参数有:

    -DefaultEndPoint

    -IISWebServiceApplicationPool

    -ServiceApplicationProxyGroup

    使用Get-SPServiceApplicationProxyGroup作为-ServiceApplicationProxyGroup的参数;使用Get-SPServiceApplicationEndPoint作为-DefaultEndPoint的参数

    5. 分享一个服务应用程序

    $sApp = Get-SPServiceApplication -Identity bc4399ed-a
    2e0-4397-bf07-cd3d207e630e
    Publish-SPServiceApplication $sApp

    如果想停止分享,使用UnPublish- SPServiceApplication

    6. 移除一个服务应用程序

    $sApp = Get-SPServiceApplication -Identity bc4399ed-a
    2e0-4397-bf07-cd3d207e630e
    Remove-SPServiceApplication $sApp

    如果不再使用此服务应用程序,使用-RemoveData参数移除其数据库

    7. 显示服务器上的服务实例

    Get-SPServiceInstance –Server sp2010svr01

    8. 获取指定的服务实例

    $serviceInst = Get-SPServiceInstance
    -Identity 5fedc699-7810-4157-9c59-19f7d6e67e38

    9. 启动一个服务实例

    $serviceInst = Get-SPServiceInstance
    -Identity 5fedc699-7810-4157-9c59-19f7d6e67e38
    Start-SPServiceInstance $serviceInst

    10. 停止一个服务实例

    $serviceInst = Get-SPServiceInstance
    -Identity 5fedc699-7810-4157-9c59-19f7d6e67e38
    Stop-SPServiceInstance $serviceInst
  • 相关阅读:
    【转】苹果App Store审核指南中文翻译(更新)
    ios中的coredata的使用
    iOS开发——网络编程OC篇&Socket编程
    [深入浅出Cocoa]iOS网络编程之Socket
    RESTful架构详解
    IOS开发 REST请求 ASIHTTPRequest用法
    iOS 8 AutoLayout与Size Class自悟
    nodejs入门demo
    微信公众号查询账户余额等
    微信公众号token验证失败的一些总结
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961725.html
Copyright © 2011-2022 走看看