Windows Server 2008 AD R2 AD回收站恢复删除用户实战

简介:

一、前期理论准备

默认情况下,Windows server 2008 R2下的活动目录回收站功能是禁用的,如果要启用该功能需要满足下面条件:

  • l 所有域控制器都必须是Windows server 2008 R2

  • l 林功能级别必须是Windows server 2008 R2

注意:一旦开启活动目录回收站功能之后,将无法关闭该功能


二、AD回收站恢复删除用户的优点

   (1)相对授权还原,减少了服务中断时间;减少在系统还原过程中出现意外问题的风险;

    (2)相对LDP恢复的用户,使用AD回收站功能恢复的用户保留删除前的所有属性;(LDP还原已删除用户方法见http://281816327.blog.51cto.com/907015/1393093


三、实战操作步骤:

(1)在Active Directory Module for Windows Powershell中输入“Enable-ADOptionalFeature –Identity ‘cn=recycle bin feature,cn=optional features,cn=directory services,cn=windows nt,cn=services,cn=configuration,dc=contoso,dc=test’ –scope forestorconfigurationset –target ‘contoso.test’”来启用AD回收站功能;(contoso.test是我测试的域名)

image

(2)删除账户;

image

(3)在在Active Directory Module for Windows Powershell中输入“get-ADobject –filter {display –eq “snail”} –includeDeleteobjects | restore-adobject”来恢复刚刚删除的账户;


image

(4)在原OU中刷新一下,便可以看到恢复的账户;





本文转自 bannerpei 51CTO博客,原文链接:http://blog.51cto.com/281816327/1395411,如需转载请自行联系原作者
相关文章
|
18天前
|
安全 Unix 虚拟化
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
42 11
Windows 7 & Windows Server 2008 R2 简体中文版下载 (2025 年 2 月更新)
|
18天前
|
Unix 虚拟化 Windows
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
53 7
Windows Server 2025 中文版、英文版下载 (2025 年 2 月更新)
|
18天前
|
安全 虚拟化 Windows
Windows Server 2019 中文版、英文版下载 (2025 年 2 月更新)
Windows Server 2019 中文版、英文版下载 (2025 年 2 月更新)
58 22
|
25天前
|
安全 网络安全 数据安全/隐私保护
Windows Server 2025 Active Directory 重置用户密码
密码重置是管理员日常任务之一,用户因忘记或多次输错密码导致账户锁定时需进行重置。本文介绍在Active Directory服务器上重置密码的三种方法。
|
4月前
|
网络安全 Windows
Windows server 2012R2系统安装远程桌面服务后无法多用户同时登录是什么原因?
【11月更文挑战第15天】本文介绍了在Windows Server 2012 R2中遇到的多用户无法同时登录远程桌面的问题及其解决方法,包括许可模式限制、组策略配置问题、远程桌面服务配置错误以及网络和防火墙问题四个方面的原因分析及对应的解决方案。
256 4
|
存储 安全 Apache
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
2023-10 适用于基于 x64 的系统的 Windows Server 2012 R2 月度安全质量汇总(KB5031419)
1041 2
|
10月前
|
开发框架 .NET API
在Windows Server 2008 R2上运行.Net 8应用
在Windows Server 2008 R2上成功运行.Net 8程序,需安装三个补丁:Windows Server 2008 R2 SP1 (KB976932)是基础更新;VC_redist.x64提供MSVC库支持;KB3063858解决.NET运行时加载`kernel.dll`的路径问题。KB3063858可能需要KB2533623。详细信息和下载链接在文中给出。
648 4
|
缓存 JavaScript 前端开发
Windows7压缩包安装node.js 报错提示windows Server 2012 R2 和安装React脚手架 最详细教程
对于Windows 7安装node.js 提示“This application is only supported on wWindows 8.1,windows Server 2012 R2, or higher.”类似这种情况的,该问题是因为node.js官方在 x12版本后就不支持win7系统了。
|
10月前
|
关系型数据库 MySQL C++
Windows Server 2012R2 安装mysql 丢失VCRUNTIME140_1.dll------亲测
Windows Server 2012R2 安装mysql 丢失VCRUNTIME140_1.dll------亲测
253 0
|
10月前
|
Ubuntu 安全 Linux
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
【Linux】安装VMWare虚拟机(安装配置)和配置Windows Server 2012 R2(安装配置连接vm虚拟机)以及环境配置(Windows版详细教程)
787 0