首页 > 代码库 > Protect object from accidental deletion

Protect object from accidental deletion

We may need to enable the feature for OU and Account

  • Protect object from accidental deletion

# Using powershell

Set-ADObject -Identity "OU=User Accounts,DC=vccware,DC=com" -ProtectedFromAccidentalDeletion $true
Set-ADObject -Identity "CN=Terry Shen,OU=User Accounts,DC=vccware,DC=com" -ProtectedFromAccidentalDeletion $true

In Active Directory User and Computer, we may need to click View->Advanced Features, in order to check this setting


本文出自 “AlphaBook” 博客,请务必保留此出处http://alphabook.blog.51cto.com/232573/1883486

Protect object from accidental deletion