Set-GraphApplication
概要
Set-GraphApplication 是在 AD FS 上呼叫 ADFS 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
參數
-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 中具有特殊權限的端點。