Set-GraphApplication

摘要

Set-GraphApplication 是一个包装器函数,用于对 AD FS 调用 AD FS Graph cmdlet。

语法

Set-GraphApplication [-ClientCertificates <Object>] [-ClientRedirectUris <Object>]
 [-ApplicationIdentifier <Object>] [-ChangeClientSecret] [-ResetClientSecret] [-AsJob]

说明

对 AD FS 调用 Set-GraphApplicationGroup 可修改 AD FS 计算机上的应用程序。

示例

示例 1

$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2('c:\temp\testcert.cer')
$appId = 'S-1-1-11-2222222222-3333333333-4444444444-5555'
$script = {
    Set-GraphApplication -ApplicationIdentifier $using:appId -ClientCertificates $using:cert
}
Invoke-Command -ComputerName '<ercs01 computer name>' -ScriptBlock $script -ConfigurationName PrivilegedEndpoint

parameters

-ApplicationIdentifier

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ClientRedirectUris

用于在 AD FS 中创建新应用程序的重定向 URI。

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ClientCertificates

用于在 AD FS 中创建新应用程序的证书。

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ResetClientSecret

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ChangeClientSecret

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

后续步骤

有关如何访问和使用特权终结点的信息,请参阅使用 Azure Stack Hub 中的特权终结点