每次有新客戶端出現時,我需要在ADFS中添加依賴方。我想通過指定聯合元數據的URL或管理員的文件選擇器加載聯合元數據文件來自動執行此操作。使用C#或Powershell在ADFS中添加依賴方
我一直在關注這個網站Adding a New Relying Party Trust
說明書但是我收到以下錯誤
ADMIN0120: The client is not authorized to access the endpoint
net.tcp://localhost:1500/policy.
The client process must be run with elevated administrative privileges.
不知道我做錯了。我想更大的問題是:這是使用代碼設置依賴方和聲明的最佳方式,還是應該使用PowerShell命令?