Share via


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 應用程式的身分識別。此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的 Web 應用程式名稱 (例如 WebApplication1212);或有效的名稱 (例如 WebApp2423)。

您必須指定 WebApplication 或使用 HostHeaderIdentity 參數中切換或指定完整的 URL。

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

為能適當處置物件而管理物件。使用 SPWebSPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。使用 SPWebSPSiteSPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

注意

使用 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 應用程式的 SMS 行動裝置帳戶設定 http://sitename,變更為下列值:服務名稱為 SMSLink、服務 URL 為 https://www.adatum.com/Service/MessagingService.asmx、使用者識別碼為 someone@example.com 及密碼為 password1

See Also

Reference

Get-SPMobileMessagingAccount