Update-SPHelp
汇报 SharePoint cmdlet 帮助。
语法
Default (默认值)
Update-SPHelp
[-AssignmentCollection <SPAssignmentCollection>]
[-Force]
[<CommonParameters>]
说明
Update-SPHelp cmdlet 根据本地计算机上的帮助文件版本检查 Windows 下载中心是否有 SharePoint 命令行管理程序帮助文件的更新。 如果有可用更新,则 cmdlet 将下载并安装这些更新。 默认情况下,该 cmdlet 仅允许每 24 小时检查一次更新。 若要覆盖此次检查,请使用 Force 参数。
运行了 cmdlet 的计算机必须连接至 Internet。
注意:此 cmdlet 当前不更新 cmdlet 帮助。
示例
示例 1
Update-SPHelp
汇报 SharePoint cmdlet 帮助。
示例 2
Update-SPHelp -Force
本示例覆盖了限制逻辑,并检查帮助文件的更新(即使过去 24 小时内已进行检查)。
示例 3
Update-SPHelp -Verbose
本示例检查帮助文件的更新,并提供过程中每个步骤的详细反馈。
参数
-AssignmentCollection
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。
注意:使用 Global 参数时,所有对象都包含在全局存储中。 If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.
参数属性
| 类型: | SPAssignmentCollection |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Force
适用:SharePoint Server 2013、SharePoint Server 2016 SharePoint Server 2019
即使在过去 24 小时内进行了检查,也会越过限制逻辑并检查帮助文件的更新。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。