zoukankan      html  css  js  c++  java
  • Get SharePoint 2010 version

    Get SharePoint 2010 version with PowerShell

    As part of the summary script I use the following code to get the SharePoint 2010 build version. This identifies which CU or Service Pack has been installed.

    There are a couple of ways for getting the build version:

    1. Using Central Administration

    It is of course possible to get the build version using central administration by going to ‘Central Administration –> System Settings –> Manage servers in this farm’

    image

    2. Using get-spfarm

    You can use the following line of code to get the buildversion

    get-spfarm | select BuildVersion

    image

    3. Using [Microsoft.SharePoint.Administration.SPFarm]::Local

    This command outputs the same values as get-spfarm.

    ([Microsoft.SharePoint.Administration.SPFarm]::Local).buildversion

    image

    Use .tostring() to get the version as string.

    image

  • 相关阅读:
    (31)对象的克隆
    (30)批处理文件.bat
    06.v-on的修饰符
    06.v-on参数问题
    06.2修饰符补充
    06.1v-on基础+-.
    03.data数据对象
    02.el挂载点
    02.5v-pre指令
    02.4v-text指令
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/2998093.html
Copyright © 2011-2022 走看看