2016-12-12 1 views
0

Windows Server 2008 (x64)의 Active Directory PowerShell에서 Office 365 사용자를 삭제하려고합니다.PowerShell cmdlet "Disable-ADSyncExportDeletionThreshold"를 실행하는 방법?

500 명이 넘는 사용자를 삭제할 수없는 임계 값이 있습니다.

Microsoft는 부주의로 인한 삭제를 방지하기위한 문서를 가지고 있으며 "Disable-ADSyncExportDeletionThreshold"명령을 실행해도 문제가 없습니다.

하지만 문제가 있습니다. 내가 treshold을 해제하려고 할 때, PowerShell은 말한다 :

The term 'Disable-ADSyncExportDeletionThreshold' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try aga 
in. 
At line:1 char:38 
+ Disable-ADSyncExportDeletionThreshold <<<< 
    + CategoryInfo   : ObjectNotFound: (Disable-ADSyncExportDeletionThreshold:String) [], CommandNotFoundExcept 
    ion 
    + FullyQualifiedErrorId : CommandNotFoundException 

이 또한 내가 "ADSync"을 가져올 시도했지만 모듈이로드 없습니다.

모든 솔루션?

감사합니다.

답변

0

위의 답변은 훌륭합니다.

삭제를 일시적으로 사용 중지하고 나중에 기본적으로 사용하도록 설정하여 많은 삭제가 Azure AD로 내보내지지 않도록하는 것이 좋습니다. 이렇게하면 실수로 삭제하는 것을 방지 할 수 있습니다. 첫째

가져 오기 모듈 :

모두 삭제하고 싶은 경우는, 다음을 수행

enter image description here

:

  1. 일시적으로 PowerShell을 실행이 보호를 해제하고 그 삭제가 통과하게하려면 cmdlet :

Disable-ADSy ncExportDeletionThreshold

. 2. Azure AD 글로벌 관리자 계정과 암호를 제공하십시오.

enter image description here 3. 여전히 Azure Active Directory Connector를 선택하고 실행을 선택하고 내보내기를 선택하십시오.
enter image description here 4. 보호 기능을 다시 활성화 PowerShell을 cmdlet을 실행하려면 :

사용-ADSyncExportDeletionThreshold

합니다. enter image description here

+0

그냥 도움이되는지 확인하고 싶습니다. –

+0

감사합니다. 이 솔루션은 유용합니다. 우리는 우리의 문제를 해결했습니다. 앞에서 말씀 드린대로 ** adsync ** 모듈을 가져오고 ** threshold를 사용하지 않습니다 ** ** 이전에 AD 서버에서이 작업을 시도했습니다. 이제 Azure Server Powershell을 사용하여 임계 값을 사용하지 않도록 설정했습니다. :) 다시 한 번 감사드립니다. –

+0

도움이되었습니다. 친애하는. –

1

Disable-ADSyncExportDeletionThreshold은 AAD Connect의 커맨드 릿이며, 작동하려면 AADConnect 모듈을 설치하고 가져와야합니다. Import-Module “C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1”이 없으면 설치하십시오.

here도 참조하십시오.

관련 문제