Set-SPMobileMessagingAccount

适用于: SharePoint Foundation 2010, SharePoint Server 2010

上一次修改主题: 2015-03-09

配置指定的移动消息帐户。

Syntax

Set-SPMobileMessagingAccount [-Identity] <SPMobileMessagingAccountPipeBind> -WebApplication <SPWebApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Password <String>] [-ServiceName <String>] [-ServiceUrl <String>] [-UserId <String>]

详细说明

Set-SPMobileMessagingAccount cmdlet 配置指定的移动消息帐户。

有关 Windows PowerShell for SharePoint 产品的权限和最新信息,请参阅联机文档 (https://go.microsoft.com/fwlink/?LinkId=163185)。

Parameters

参数 必需 类型 说明

Identity

必需

Microsoft.SharePoint.PowerShell.SPMobileMessagingAccountPipeBind

指定是返回短信服务 (SMS) 帐户信息还是返回彩信服务 (MMS) 帐户信息。有效值为 SMSMMS。如果未指定此参数帐户,则同时返回 SMS 和 MMS 信息。

WebApplication

必需

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

指定用于承载要删除的管理路径的 Web 应用程序的标识。类型必须是有效的 GUID(格式为 12345678-90ab-cdef-1234-567890bcdefgh);或是有效的 Web 应用程序名称(例如,WebApplication1212)或有效名称(例如,WebApp2423)。

必须指定 WebApplication,或者必须使用 HostHeader 开关,并在 Identity 参数中指定完整 URL。

AssignmentCollection

可选

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

管理对象以便正确进行处理。使用 SPWebSPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。在使用 SPWebSPSiteSPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。

注意Note
在使用 Global 参数时,所有对象均包含在全局存储中。如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。

Password

可选

System.String

如果帐户需要凭据,则指定密码。

ServiceName

可选

System.String

指定 SMS 服务的名称。

ServiceUrl

可选

System.String

指定 SMS 服务的 URL。

UserId

可选

System.String

如果帐户需要凭据,则指定用户名。

输入类型

返回类型

Example

------------------示例-----------------------

Set-SPMobileMessagingAccount -WebApplication http://sitename -Identity SMS -ServiceName SMSLink -ServiceUrl https://www.adatum.com/Service/MessagingService.asmx-UserId someone@example.com -Password password1

此示例将 Web 应用程序 http://sitename 的 SMS 移动帐户设置更改为下列值:服务名称:SMSLink;服务 URL:https://www.adatum.com/Service/MessagingService.asmx;用户 ID:someone@example.com;以及密码:password1

See Also

Reference

Get-SPMobileMessagingAccount