New-PartnerApplication

此 cmdlet 仅在本地 Exchange 中有效。

使用 New-PartnerApplication cmdlet 在本地 Exchange 组织中创建合作伙伴应用程序配置。

有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法

语法

ACSTrustApplication

New-PartnerApplication
    [-Name] <String>
    -ApplicationIdentifier <String>
    [-Realm <String>]
    [-AcceptSecurityIdentifierInformation <Boolean>]
    [-AccountType <SupportedAccountType>]
    [-ActAsPermissions <String[]>]
    [-AppOnlyPermissions <String[]>]
    [-Confirm]
    [-DomainController <Fqdn>]
    [-Enabled <Boolean>]
    [-IssuerIdentifier <String>]
    [-LinkedAccount <UserIdParameter>]
    [-WhatIf]
    [<CommonParameters>]

AuthMetadataUrl

New-PartnerApplication
    [-Name] <String>
    -AuthMetadataUrl <String>
    [-TrustAnySSLCertificate]
    [-AcceptSecurityIdentifierInformation <Boolean>]
    [-AccountType <SupportedAccountType>]
    [-ActAsPermissions <String[]>]
    [-AppOnlyPermissions <String[]>]
    [-Confirm]
    [-DomainController <Fqdn>]
    [-Enabled <Boolean>]
    [-IssuerIdentifier <String>]
    [-LinkedAccount <UserIdParameter>]
    [-WhatIf]
    [<CommonParameters>]

说明

可以配置合作伙伴应用程序(如 Microsoft SharePoint)来访问 Exchange 资源。 使用 New-PartnerApplication cmdlet 为需要访问 Exchange 资源的应用程序创建合作伙伴应用程序配置。 有关详细信息,请参阅计划 Exchange 2016 与 SharePoint 的集成和Skype for Business

我们建议您使用 %ExchangeInstallPath%Scripts 文件夹中的 Configure-EnterprisePartnerApplication.ps1 脚本来配置合作伙伴应用程序。

您必须先获得权限,然后才能运行此 cmdlet。 尽管本文列出了 cmdlet 的所有参数,但如果某些参数未包含在分配给你的权限中,则可能无法访问这些参数。 若要查找在贵组织中运行任何 cmdlet 或参数所需的权限,请参阅 Find the permissions required to run any Exchange cmdlet

示例

示例 1

New-PartnerApplication -Name HRApp -ApplicationIdentifier 00000006-0000-0dd1-ac00-000000000000

此示例创建名为 HRApp 的新 HRApp 合作伙伴应用程序。

参数

-AcceptSecurityIdentifierInformation

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

AcceptSecurityIdentifierInformation 参数指定 Exchange 是否应接受安全标识符 (SID) 来自合作伙伴应用程序的另一个受信任的 Active Directory 林。 默认情况下,新的合作伙伴应用程序被配置为不接受来自其他林的 SID。 如果所在部署具有可信林,请将该参数设置为 $true。

参数属性

类型:Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AccountType

适用:Exchange Server 2016、Exchange Server 2019、Exchange Online

AccountType 参数指定合作伙伴应用程序所需的Microsoft帐户的类型。 有效值包含:

  • 组织帐户 (默认值)
  • ConsumerAccount

参数属性

类型:SupportedAccountType
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ActAsPermissions

适用:Exchange Server 2013

此参数仅在 2013 Exchange Server可用。

保留此参数以供 Microsoft 内部使用。

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ApplicationIdentifier

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

ApplicationIdentifier 参数为使用授权服务器的合作伙伴应用程序指定一个唯一应用程序标识符。 指定 ApplicationIdentifier 参数的值时,还必须使用 UseAuthServer 参数。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ACSTrustApplication
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AppOnlyPermissions

适用:Exchange Server 2013

此参数仅在 2013 Exchange Server可用。

保留此参数以供 Microsoft 内部使用。

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AuthMetadataUrl

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019

此参数只在本地 Exchange 中可用。

AuthMetadataUrl 参数指定 Exchange 可以为不使用授权服务器的合作伙伴应用程序检索 AuthMetadata 文档的 URL。 如果为合作伙伴应用程序指定了 AuthMetadataUrl 参数,就不能指定 ApplicationIdentifier 和 UseAuthServer 参数。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

AuthMetadataUrl
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

Confirm 开关指定是否显示确认提示。 此开关对 cmdlet 造成的影响取决于在你继续操作之前 cmdlet 是否需要确认。

  • 破坏性 cmdlet(例如 Remove-* cmdlets)内置有暂停,可强制要求先确认命令,然后再继续操作。 对于这些 cmdlet,您可以使用此确切语法跳过确认提示:-Confirm:$false
  • 其他大多数 cmdlet(例如 New-* 和 Set-* cmdlet)都没有内置暂停。 对于这些 cmdlet,指定不含值的 Confirm 开关会引入暂停,从而强制要求你先确认命令,然后再继续操作。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DomainController

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019

此参数只在本地 Exchange 中可用。

DomainController 参数指定此 cmdlet 从 Active Directory 读取数据或向其写入数据时使用的域控制器。 可以使用完全限定的域名 (FQDN) 来标识域控制器。 例如,dc01.contoso.com。

参数属性

类型:Fqdn
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Enabled

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

Enabled 参数指定是否已启用合作伙伴应用程序。 默认情况下,新的合作伙伴应用程序处于启用状态。 设置参数为 $false,以创建处于禁用状态的合作伙伴应用程序。

参数属性

类型:Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-IssuerIdentifier

适用:Exchange Server 2013

此参数仅在 2013 Exchange Server可用。

保留此参数以供 Microsoft 内部使用。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LinkedAccount

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

LinkedAccount 参数指定应用程序的链接 Active Directory 用户帐户。 Exchange 在授权用于执行任务的令牌时,会评估链接帐户) 基于角色访问控制 (RBAC 权限。

参数属性

类型:UserIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

Name 参数指定合作伙伴应用程序名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Realm

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019

此参数只在本地 Exchange 中可用。

Realm 参数指定合作伙伴应用程序的安全领域。 如果令牌来自非接受域的域,则 Exchange 会检查令牌中指定的领域。 在这种情况下,只有合作伙伴应用程序中指定的领域相同的令牌才能访问 Exchange 资源。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

ACSTrustApplication
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TrustAnySSLCertificate

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019

此参数只在本地 Exchange 中可用。

TrustAnySSLCertificate 开关允许 Exchange 接受来自不受信任的证书颁发机构的证书, (CA) 。 不必为此开关指定值。

我们建议不要在生产环境中使用此开关。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

AuthMetadataUrl
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Online

WhatIf 开关模拟命令操作。 可以使用此开关在不实际应用将会发生的更改的情况下预览这些更改。 不必为此开关指定值。

参数属性

类型: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

输入

Input types

若要了解此 cmdlet 接受的输入类型,请参阅 cmdlet 的输入和输出类型。 如果 cmdlet 的"输入类型"字段为空,则表明此 cmdlet 不接受输入数据。

输出

Output types

若要了解此 cmdlet 接受的返回类型(亦称为"输出类型"),请参阅 cmdlet 的输入和输出类型。 如果"输出类型"字段为空,则表明此 cmdlet 不返回任何数据。