Functionalities Provided by Active Directory Connector(ADC) Service Console Run
说明
Below is a list of ADC console commands that can be run to help with troubleshooting ADC issues
解决办法
Cleanup duplicated hosted mailboxes ActiveDirectoryConnectorService.exe -Console -hmbcleanup This command used to cleanup the duplicated hosted mailboxes from Archive Manager data base. Before cleanup, all the related data like the mailbox, mailbox-message relationship will be backup.
Cleanup lync mailboxes & mail servers ActiveDirectoryConnectorService.exe -Console -lynccleanup This command used to cleanup synced lync mailboxes & mail servers from Archive Manager database. Only when there is no LSM feature installed & lync messages synced we can execute this command.
Grant/remove Office 365 proxy credential full-access to/from Office 365 mailboxes ActiveDirectoryConnectorService.exe -console -mspermission ActiveDirectoryConnectorService.exe -console -mspermission -remove This 2 commands used to grant/remove Office 365 proxy credentials full-access permissions to/from Office 365 mail servers. Only the un-processing mailserver-proxy credential record will be processed. You can query table MailServerProxyCredential directly for the records.
ActiveDirectoryConnectorService.exe -console -mbxpermission ActiveDirectoryConnectorService.exe -console -mbxpermission -remove This 2 commands used to grant/remove Office 365 proxy credentials full-access permissions to/from Office 365 mailboxes. Only the un-processing/failed-processing mailbox-proxy credential record will be processed. You can query table FailedMailBoxProxyCredential directly for the records.
ActiveDirectoryConnectorService.exe -console -mbxpermission -new This command used to grant Office proxy credentials full-access permissions to new created Office 365 mailboxes. Only the proxy credentials which are assigned to the new-created mailboxes mail servers will be processed.
Execute ADC service in console mode ActiveDirectoryConnectorService.exe -Console This command used to run the ADC service from console. You can add other parameters like -loop or -loopwaitseconds for more control.