Active Directory Recycle Bin
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Active Directory Recycle Bin相关的知识,希望对你有一定的参考价值。
# Enable Active Directory Recycle Bin
Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=vccware,DC=com’ –Scope ForestOrConfigurationSet –Target ‘vccware.com’
# Restore a single deleted user account
Get-ADObject -Filter {SamAccountName -eq "AlphaBet"} -IncludeDeletedObjects
Get-ADObject -Filter {SamAccountName -eq "AlphaBet"} -IncludeDeletedObjects | Restore-ADObject
# Check the deleted user accounts
Get-ADObject -IncludeDeletedObjects -Filter {IsDeleted -eq $True} -Properties * | Format-table Deleted,DisplayName,SamAccountName,UserPrincipalName
# Windows 2012R2 tombstone lifetime of the domain is 180 days by default
本文出自 “AlphaBook” 博客,请务必保留此出处http://alphabook.blog.51cto.com/232573/1883485
以上是关于Active Directory Recycle Bin的主要内容,如果未能解决你的问题,请参考以下文章
Active Directory 和 Active Directory LDS 中的字段
在 Active Directory 中添加来自本地 Active Directory 的来宾用户
确定当前用户是不是正在登录 Active Directory(或者是有效的 Active Directory 用户)
Azure B2C 来宾(外部 Azure Active Directory)X 成员(联合 Azure Active Directory)