適用於:設定管理員 (目前的分支)
設定管理員 用戶端可以同步到 Microsoft Intune 管理中心。 部分用戶端操作可從同步用戶端的 Microsoft Intune 管理中心執行。
可用的動作如下:
- 同步處理電腦原則
- 同步處理使用者原則
- 應用程式評估週期
當管理員從 Microsoft Intune 管理中心執行動作時,通知請求會轉發至 設定管理員 站點,然後從站點轉發到用戶端。
記錄檔
使用位於服務連接點上的下列記錄檔:
- CMGatewaySyncUploadWorker.log
- CMGatewayNotificationWorker.log
使用位於管理點上的下列記錄檔:
- BgbServer.log
使用位於用戶端上的下列記錄檔:
- CcmNotificationAgent.log
檢閱您的上傳
- 從安裝目錄>\Logs ConfigMgr開啟CMGatewaySyncUploadWorker.log<。
- 下一個同步時間會以類似於
Next run time will be at approximately: 02/28/2020 16:35:31的記錄檔項目來表示。 - 針對裝置上傳,尋找類似於
Batching N records的記錄檔項目。 N 是自上次上傳以來所上傳的已變更裝置數目。 - 每隔 15 分鐘就會上傳一次,以進行變更。 變更上傳後,客戶端變更可能會額外 5 到 10 分鐘才會出現在 Microsoft Intune 管理中心。
設定管理員 元件和記錄流程
- SMS_SERVICE_CONNECTOR:使用閘道通知工作者處理來自Microsoft Intune管理中心的通知。
- SMS_NOTIFICATION_SERVER:取得通知以及建立用戶端通知。
- BgbAgent:用戶端取得工作並執行要求的動作。
SMS_SERVICE_CONNECTOR
當Microsoft Intune管理中心發起動作時,CMGatewayNotificationWorker.log會處理該請求。
Received new notification. Validating basic notification details...
Validating device action message content...
Authorized to perform client action. TemplateID: RequestMachinePolicy TenantId: aaaabbbb-0000-cccc-1111-dddd2222eeee AADUserID: aaaabbbb-0000-cccc-1111-dddd2222eeee
Forwarded BGB remote task. TemplateID: 1 TaskGuid: a43dd1b3-a006-4604-b012-5529380b3b6f TaskParam: TargetDeviceIDs: 1
收到來自 Microsoft Intune 管理中心的通知。
Received new notification. Validating basic notification details..使用者和裝置動作會經過驗證。
Validating device action message content... Authorized to perform client action. TemplateID: RequestMachinePolicy TenantId: aaaabbbb-0000-cccc-1111-dddd2222eeee AADUserID: aaaabbbb-0000-cccc-1111-dddd2222eeee遠端工作會轉送至 SMS_NOTIFICATION_SERVER。
Forwarded BGB remote task. TemplateID: 1 TaskGuid: a43dd1b3-a006-4604-b012-5529380b3b6f TaskParam: TargetDeviceIDs: 1
SMS_NOTIFICATION_SERVER
訊息傳送至 SMS_NOTIFICATION_SERVER 後,系統會將工作從管理點傳送至對應的用戶端。 您將在 BgbServer (位於管理點) 上看到下列項目:
Get one push message from database.
Starting to send push task (PushID: 7 TaskID: 8 TaskGUID: A43DD1B3-A006-4604-B012-5529380B3B6F TaskType: 1 TaskParam: ) to 1 clients with throttling (strategy: 1 param: 42)
BgbAgent
最後一個步驟會在用戶端上進行,並可在 CcmNotificationAgent.log 中看到。 收到工作之後,它將會要求排程者執行動作。 執行動作時,您會看到確認訊息:
Receive task from server with pushid=7, taskid=8, taskguid=A43DD1B3-A006-4604-B012-5529380B3B6F, tasktype=1 and taskParam=
Send Task response message <BgbResponseMessage TimeStamp="2020-01-21T15:43:43Z"><PushID>8</PushID><TaskID>9</TaskID><ReturnCode>1</ReturnCode></BgbResponseMessage> successfully.
常見問題
未獲授權,無法執行用戶端動作
如果登入 Microsoft Intune 管理員 Center 的帳號在 設定管理員 沒有所需的權限,你會在 CMGatewayNotificationWorker.log 看到Unauthorized回覆。
Received new notification. Validating basic notification details..
Validating device action message content...
Unauthorized to perform client action. TemplateID: RequestMachinePolicy TenantId: aaaabbbb-0000-cccc-1111-dddd2222eeee AADUserID: bbbbcccc-1111-dddd-2222-eeee3333ffff
確保從 Microsoft Intune 管理中心執行動作的使用者擁有 設定管理員 站點所需的權限。 欲了解更多資訊,請參閱 Microsoft Intune 租戶附加前置條件。
已知問題
資料同步處理失敗
如果你在 Microsoft Intune 管理中心無法看到租戶附加細節,可能是因為階層式入職設定出了問題。 此問題可能是由於上架已上架的階層所造成。
您也可以從 GenericUploadWorker.log 及 CMGatewayNotificationWorker.log 檔案中的項目,偵測到此問題。 如需詳細資訊,請參閱需要重設租用戶附加設定的記錄檔中的範例錯誤。
資料同步處理失敗的因應措施
若要重設租用戶附加設定:
需要重設租用戶附加設定的記錄檔中的範例錯誤
GenericUploadWorker.log 中的 AccountOnboardingInfo 和 DevicePost 要求錯誤
[OnboardScenario] Creating web request to: https://us.gateway.configmgr.manage.microsoft.com/api/gateway/AccountOnboardingInfo Method: POST Activity ID: ccccdddd-2222-eeee-3333-ffff4444aaaa Timeout: 00:02:00
[OnboardScenario] Response from https://us.gateway.configmgr.manage.microsoft.com/api/gateway/AccountOnboardingInfo is: 400 (Bad Request)
Response status code: 400 (BadRequest) Activity ID: a579728b-eca0-4144-80ac-eea25ee5bcf6
Unexpected exception for worker GenericUploadWorker
Exception details:
[Critical][GenericUploadWorker][0][System.Net.WebException][0x80131509]
The remote server returned an error: (400) Bad Request. at Microsoft.ConfigurationManager.ServiceConnector.ExtensionMethods.<GetResponseAsync>d__13.MoveNext()
[UploadDelta_HelpdeskUpload] Response from https://us.gateway.configmgr.manage.microsoft.com/api/gateway/DevicePost is: 401 (Unauthorized)
Response status code: 401 (Unauthorized) Activity ID: 6daac983-5f94-464e-b1bd-9b634a051d1d
[WebException]: Failed to upload data to 'https://us.gateway.configmgr.manage.microsoft.com/api/gateway/DevicePost'
Exception details:
[Warning][GenericUploadWorker][0][System.Net.WebException][0x80131509]
The remote server returned an error: (401) Unauthorized. at Microsoft.ConfigurationManager.ServiceConnector.ExtensionMethods.<GetResponseAsync>d__13.MoveNext()
CMGatewayNotificationWorker.log 中的裝置動作錯誤
[GetNotifications] Response from https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification is: 401 (Unauthorized)
Response status code: 401 (Unauthorized) Activity ID: 4c536a72-fd7f-4d08-948a-3e65d2129e44
Web exception when getting new notification
Exception details:
[Warning][CMGatewayNotificationWorker][0][System.Net.WebException][0x80131509]
The remote server returned an error: (401) Unauthorized. at Microsoft.ConfigurationManager.ServiceConnector.ExtensionMethods.<GetResponseAsync>d__13.MoveNext()
Response in the web exception: {"Message":"An error has occurred."}
特定裝置未同步處理
特定裝置 (也就是 設定管理員 用戶端) 可能不會上傳至服務。
受影響的裝置:如果裝置是對發佈點功能及其用戶端代理程式使用相同 PKI 憑證的發佈點,則該裝置將不會包含在租用戶附加裝置同步處理中。
行為:在上架階段執行租用戶附加時,第一次會執行完整的同步處理。 後續的同步處理週期為差異同步處理。 對受影響裝置的任何更新都會導致裝置從同步處理中移除。
當 設定管理員 站點被設定為需要多重身份驗證時,大多數租戶附加功能無法運作
情境:如果與服務連接點通訊的 SMS 提供者機器被設定為多重身份驗證,你就無法安裝應用程式、執行 CMPivot 查詢,或從管理控制台執行其他操作。 您收到錯誤代碼403,禁止。
解決方法:目前的解決方法是將本地層級設定為 Windows 驗證的預設認證層級。 更多資訊請參閱 簡訊提供者文章中的認證章節。
後續步驟
- 針對 ConfigMgr 用戶端詳細資料進行疑難排解
- 啟用共同管理 ,以獲得額外的雲端功能,如條件存取。