2016-12-12 11 views
0

Windows Server 2008(x64)のActive Directory PowerShellからOffice 365ユーザーを削除したいPowerShellコマンドレット「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を実行するにはコマンドレット:

Disable-ADSy ncExportDeletionThreshold

。 2. Azure ADグローバル管理者のアカウントとパスワードを入力します。

enter image description here 3. Azure Active Directoryコネクタが選択された状態で、[実行]を選択して[エクスポート]を選択します。
enter image description here 4.保護を再度有効にPowerShellコマンドレットを実行するには、次の

を有効-ADSyncExportDeletionThreshold

を。 enter image description here

+0

はちょうどこのありがとう助けたか:) –

+0

かどうかを確認します。 このソリューションは便利です。私たちは問題を解決しました。 ** adsessions **モジュールをインポートし、**しきい値を無効にします** これまで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をご覧ください。

関連する問題