[英]How to run the PowerShell cmdlet “Disable-ADSyncExportDeletionThreshold”?
我想從Windows Server 2008(x64)中的Active Directory PowerShell中刪除Office 365用戶
有一個閾值,因此您不能刪除500個以上的用戶。
Microsoft具有防止意外刪除的文檔,並且說“只需運行Disable-ADSyncExportDeletionThreshold”命令就可以了。
但是我有一個問題。 當我嘗試禁用閾值時,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”,但模塊無法加載。
有什么辦法嗎?
謝謝。
Disable-ADSyncExportDeletionThreshold
是AAD Connect的命令行開關,您必須安裝並導入AADConnect模塊才能正常工作。 如果不存在,請嘗試Import-Module “C:\\Program Files\\Microsoft Azure AD Sync\\Bin\\ADSync\\ADSync.psd1”
。
另外, 在這里看看。
以上答案很好。
我建議您暫時禁用它,然后再啟用它,因為默認情況下已啟用它,以防止將大量刪除導出到Azure AD。 這有助於防止意外刪除。
首先導入模塊:
如果需要所有刪除,請執行以下操作:
禁用ADSyncExportDeletionThreshold
。 2.提供一個Azure AD Global管理員帳戶和密碼。
3.在仍然選擇Azure Active Directory連接器的情況下,選擇操作“運行”,然后選擇“導出”。
4.要重新啟用保護,請運行PowerShell cmdlet:
Enable-ADSyncExportDeletionThreshold
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.