เคล็ดลับของระบบThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
หมายเหตุ::บทความ KB นี้ไม่รวมรายละเอียดของคุณลักษณะ AD ถังรีไซเคิลที่รวมอยู่ใน Windows Server 2008 R2 โปรดตรวจสอบในส่วนการอ้างอิงสำหรับรายละเอียดเพิ่มเติมในลักษณะการทำงานนี้
ถ้าคุณไม่ได้รับการสำรองข้อมูลที่ถูกต้องของสถานะของระบบ และโดเมนที่เกิดขึ้นในการลบประกอบด้วยตัวควบคุมโดเมนที่ใช้ Windows Server 2003 คุณสามารถด้วยตนเอง หรือโดยทางโปรแกรมแก้ไขวัตถุที่ถูกลบ คุณยังสามารถใช้โปรแกรมอรรถประโยชน์ Repadmin เพื่อกำหนดว่าเมื่อใด และโดยที่ผู้ใช้ที่ถูกลบ
การลบที่ large-scale มากที่สุดโดยไม่ตั้งใจได้ Microsoft แนะนำว่า คุณดำเนินการขั้นตอนต่าง ๆ เพื่อป้องกันไม่ให้บุคคลอื่นลบวัตถุที่มีขนาดใหญ่
หมายเหตุ:เมื่อต้องการป้องกันการลบโดยไม่ตั้งใจหรือความเคลื่อนไหวของวัตถุ (หน่วยองค์กรโดยเฉพาะอย่างยิ่ง), สองปฏิเสธการเข้าถึงตัวควบคุมรายการ (ACEs) ที่สามารถเพิ่มลงในตัวบอกเกี่ยวกับความปลอดภัยของแต่ละวัตถุ (DENY "ลบ" & "ลบทรี") และหนึ่งปฏิเสธการเข้าถึงตัวควบคุมรายการ (ACEs) ที่สามารถเพิ่มลงในตัวบอกเกี่ยวกับความปลอดภัยของพาเรนต์ของแต่ละวัตถุ (DENY "DELETE ลูก") เมื่อต้องการทำเช่นนี้ ใน Windows 2000 Server และ ใน Windows Server 2003 ใช้ผู้ ใช้ของไดเรกทอรีที่ใช้งานอยู่ และคอมพิวเตอร์ ADSIEdit, LDP หรือเครื่องมือบรรทัดคำสั่ง DSACLS คุณยังสามารถเปลี่ยนสิทธิ์เริ่มต้นใน AD schema สำหรับหน่วยงานเพื่อให้ ACEs เหล่านี้จะรวมอยู่ โดยค่าเริ่มต้น
ตัวอย่างเช่น การป้องกันหน่วยงานที่เรียกว่าผู้ใช้ในโดเมน AD ที่เรียกว่า CONTOSO.COM จากโดยไม่ตั้งใจถูกย้าย หรือถูกลบออกจากนั้นแม่หน่วยองค์กรที่เรียกว่าเว็บไซต์ MyCompany ทำการกำหนดค่าต่อไปนี้:
สำหรับการ MyCompany หน่วยองค์กร เพิ่ม ACE ปฏิเสธสำหรับEveryoneเมื่อต้องการลบลูกด้วยการวัตถุนี้เท่านั้นขอบเขต:: DSACLS " OU = MyCompany, DC = CONTOSO, DC = COM " /D "EVERYONE: DC"
สำหรับผู้ใช้งานหน่วย เพิ่ม ACE ปฏิเสธสำหรับEveryoneเมื่อต้องการลบและการลบแผนภูมิด้วยการวัตถุนี้เท่านั้นขอบเขต:: DSACLS " OU = Users, OU = MyCompany, DC = CONTOSO, DC = COM " /D "EVERYONE: SDDT"
ผู้ใช้ของไดเรกทอรีที่ใช้งานอยู่และคอมพิวเตอร์สแนปอินใน Windows Server 2008 รวมคำป้องกันวัตถุจากการลบโดยไม่ตั้งใจกล่องกาเครื่องหมายที่อยู่ในนั้นวัตถุแท็บ
เมื่อคุณสร้างการเพิ่มหน่วยองค์กร โดยผู้ใช้ของไดเรกทอรีที่ใช้งานอยู่และคอมพิวเตอร์ใน Windows Server 2008,ป้องกันการลบโดยไม่ตั้งใจคอนเทนเนอร์กล่องกาเครื่องหมายปรากฏขึ้น โดยค่าเริ่มต้น กล่องกาเครื่องหมายถูกเลือก และสามารถ deselected
Although you can configure every object in Active Directory by using these ACEs, this is best suited for organizational units. Deletion or movements of all leaf objects can have a major effect. This configuration prevents such deletions or movements. To really delete or move an object by using such a configuration, the Deny ACEs must be removed first.
This step-by-step article discusses how to restore user
accounts, computer accounts, and their group memberships after they have been
deleted from Active Directory. In variations of this scenario, user accounts,
computer accounts, or security groups may have been deleted individually or in
some combination. In all these cases, the same initial steps apply--you
authoritatively restore, orauth restore, those objects that were inadvertently deleted. Some deleted
objects require more work to be restored. These objects include objects such as
user accounts that contain attributes that are back links of the attributes of
other objects. Two of these attributes aremanagedByและmemberOf.
When you add security principals such as a user
account, a security group, or a computer account to a security group, you make
the following changes in Active Directory:
The name of the security principal is added to thememberattribute of each security group.
For each security group that the user, the computer, or the
security group is a member of, a back link is added to the security principal'smemberOfแอตทริบิวต์
Similarly, when a user, a computer, or a group is deleted from
Active Directory, the following actions occur:
The deleted security principal is moved into the deleted
objects container.
A number of attribute values, including thememberOfattribute, are stripped from the deleted security
principal.
Deleted security principals are removed from any security
groups that they were a member of. In other words, the deleted security
principals are removed from each security group'smemberแอตทริบิวต์
When you recover deleted security principals and restore their
group memberships, the key point to remember is that each security principal
must exist in Active Directory before you restore its group membership. (The
member may be a user, a computer, or another security group.) To restate this
rule more broadly, an object that contains attributes whose values are back
links must exist in Active Directory before the object that contains that
forward link can be restored or modified.
Although this article
focuses on how to recover deleted user accounts and their memberships in
security groups, its concepts apply equally to other object deletions. This
article's concepts apply equally to deleted objects whose attribute values use
forward links and back links to other objects in Active Directory.
You
can use either of the three methods to recover security principals. When you
use method 1, you leave in place all security principals that were added to any
security group across the forest, and you add only security principals that
were deleted from their respective domains back to their security groups. For
example, you make a system state backup, add a user to a security group, and
then restore the system state backup. When you use methods 1 or 2, you preserve
any users who were added to security groups that contain deleted users between
the dates that the system state backup was created and the date that the backup
was restored. When you use method 3, you roll back security group memberships
for all the security groups that contain deleted users to their state at the
time that the system state backup was made.
Method 1: Restore the deleted user accounts, and then add the restored users back to their groups by using the Ntdsutil.exe command-line tool (Microsoft Windows Server 2003 with Service Pack 1 [SP1] only)
หมายเหตุ:This method is valid only on domain controllers that are running
Windows Server 2003 with SP1. If Windows Server 2003 SP1 has not been installed
on the domain controllers that you use for recovery, use Method 2.
In
Windows Server 2003 SP1, functionality was added to the Ntdsutil.exe
command-line tool to help administrators more easily restore the backlinks of
deleted objects. Two files are generated for each authoritative restore
operation. One file contains a list of authoritatively restored objects. The
other file is an .ldf file that is used with the Ldifde.exe utility. This file
is used to restore the backlinks for the objects that are authoritatively
restored. In Windows Server 2003 SP1, an authoritative restoration of a user
object also generates LDIF files with the group membership. This method avoids a
double restoration.
When you use this method, you perform the following
high-level steps:
ถ้าคุณทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ เริ่มต้นตัวควบคุมโดเมนการกู้คืนในโหมด Dsrepair ถ้าคุณไม่ทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ ตั้งค่าใหม่รหัสผ่านในขณะที่ตัวควบคุมโดเมนการกู้คืนจะยังคงอยู่ใน Active Directory ปกติโหมด
คุณสามารถใช้ได้setpwdcommand-line tool to reset the password on domain controllers
that are running Microsoft Windows 2000 Service Pack 2 (SP2) and later while
they are in online Active Directory mode.
หมายเหตุ:Microsoft no longer supports Windows 2000.
For more information
about changing the Recovery Console administrator password, click the following
article number to view the article in the Microsoft Knowledge Base:
239803
(http://support.microsoft.com/kb/239803/
)
How to change the Recovery Console administrator password on a domain controller
Administrators of Windows Server 2003 domain
controllers can use theset dsrm passwordคำสั่งในการNtdsutilcommand-line tool to reset the password for the offline
administrator account.
For more information about how to reset the
Directory Services Restore Mode administrator account, click the following
article number to view the article in the Microsoft Knowledge Base:
322672
(http://support.microsoft.com/kb/322672/
)
How to reset the Directory Services Restore Mode administrator account password in Windows Server 2003
Press F8 during the startup process to start the recovery
domain controller in Dsrepair mode. Log on to the console of the recovery
domain controller with the offline administrator account. If you reset the
password in step 5, use the new password.
If the recovery domain
controller is a latent global catalog domain controller, do not restore the
system state. Go to step 7.
If you are creating the recovery domain
controller by using a system state backup, restore the most current system
state backup that was made on the recovery domain controller now.
Auth restore the deleted user accounts, the deleted
computer accounts, or the deleted security groups.
หมายเหตุ:The termsauth restoreและauthoritative restorerefer to the process of using theauthoritative restoreคำสั่งในการNtdsutilcommand-line tool to increment the version numbers of specific
objects or of specific containers and all their subordinate objects. As soon as
end-to-end replication occurs, the targeted objects in the recovery domain
controller's local copy of Active Directory become authoritative on all the
domain controllers that share that partition. An authoritative restoration is
different from a system state restoration. A system state restoration populates
the restored domain controller's local copy of Active Directory with the
versions of the objects at the time that the system state backup was
made.
For more information
about auth restoring a domain controller, click the following article number to
view the article in the Microsoft Knowledge Base:
241594
(http://support.microsoft.com/kb/241594/
)
How to perform an authoritative restore to a domain controller in Windows 2000
Authoritative restorations are performed
with theNtdsutilcommand-line tool and refer to the domain name (dn) path of the
deleted users or of the containers that host the deleted users.
When
you auth restore, use domain name (dn) paths that are as low in the domain tree
as they have to be to avoid reverting objects that are not related to the
deletion. These objects may include objects that were modified after the system
state backup was made.
Auth restore deleted users in the following
order:
Auth restore the domain name (dn) path for each deleted
user account, computer account, or security group.
Authoritative
restorations of specific objects take longer but are less destructive than
authoritative restorations of a whole subtree. Auth restore the lowest common
parent container that holds the deleted objects.
รับรองความถูกต้องคืนค่าเฉพาะใน ou ชื่อหรือชื่อทั่วไป (CN) คอนเทนเนอร์ที่โฮสต์บัญชีผู้ใช้ที่ถูกลบหรือกลุ่ม
restorations ที่มีสิทธิ์ของทรีย่อยทั้งหมดที่ถูกต้องเมื่อ OU ที่อยู่สำหรับโดยntdsutil "การคืนค่าที่มีสิทธิ์"คำสั่งประกอบด้วยส่วนใหญ่ overwhelming ออปเจ็กต์ที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง ideally, OU ที่เป็นเป้าหมายประกอบด้วยออปเจ็กต์ทั้งหมดที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง
หมายเหตุ:If one or more of the following statements is not true, go to
step 12.
Your forest is running at the Windows Server 2003
forest functional level or at the Windows Server 2003 Interim forest functional
level.
Only user accounts or computer accounts were deleted,
and not security groups.
The deleted users were added to security groups in all
the domains in the forest after the forest was transitioned to Windows Server
2003 forest functional level.
On the console of the recovery domain controller, use the
Ldifde.exe utility and the
ar_YYYYMMDD-HHMMSS_links_usn.loc.ldf file to
restore the user's group memberships. โดยให้ทำตามขั้นตอนต่อไปนี้::
At the command prompt, type the following command, and
then press ENTER:
ldifde -i -f ar_YYYYMMDD-HHMMSS_links_usn.loc.ldf
The LDIFDE import may fail and you may receive the following error message:
Add error on linexxx>: Invalid Syntax
The server side error is "The parameter is incorrect."
If the problematic line number in the LINKS.LDF file refers to one of three credential roaming attributes, msPKIDPAPIMasterKeys, msPKIAccountCredentials or msPKIRoamingTimeStamp, see the following Microsoft Knowledge Base (KB) article:
2014074
(http://support.microsoft.com/kb/2014074/
)
Error "The parameter is incorrect" Attempting to Import LDF File for Authoritative Restore
หมายเหตุ:This article describes the changes that are required to successfully import the LINKS LDF file.
Enable inbound replication to the recovery domain
controller by using the following command:
If deleted users were added to local groups in external
domains, do one of the following:
Manually add the deleted users back to those
groups.
Restore the system state and auth restore each of the
local security groups that contains the deleted users.
Verify group membership in the recovery domain controller's
domain and in global catalogs in other domains.
Make a new system state backup of domain controllers in the
recovery domain controller's domain.
Notify all the forest administrators, delegated
administrators, help desk administrators in the forest, and users in the domain
that the user restore is complete.
Help desk administrators may have
to reset the passwords of auth-restored user accounts and computer accounts
whose domain password changed after the restored system was
made.
Users who changed their passwords after the system state backup
was made will find that their most recent password no longer works. Have such
users try to log on by using their previous passwords if they know them.
Otherwise, help desk administrators must reset the password and select theuser must change password at next logonกล่องกาเครื่องหมาย preferably บนตัวควบคุมโดเมนใน Active Directory ไซต์เดียวกันเป็นผู้ใช้ที่อยู่ใน
ถ้าคุณทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ เริ่มต้นตัวควบคุมโดเมนการกู้คืนในโหมด Dsrepair ถ้าคุณไม่ทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ ตั้งค่าใหม่รหัสผ่านในขณะที่ตัวควบคุมโดเมนการกู้คืนจะยังคงอยู่ใน Active Directory ปกติโหมด
คุณสามารถใช้ได้setpwdเครื่องมือบรรทัดคำสั่งเพื่อรีเซ็ตรหัสผ่านบนตัวควบคุมโดเมนที่กำลังเรียกใช้ Microsoft Windows 2000 Service Pack 2 (SP2) และในภายหลังขณะที่ อยู่ในโหมดออนไลน์ของ Active Directory
ผู้ดูแลของตัวควบคุมโดเมน Windows Server 2003 สามารถใช้ได้รหัสผ่าน dsrm ชุดคำสั่งในการNtdsutilเครื่องมือบรรทัดคำสั่งเพื่อรีเซ็ตรหัสผ่านสำหรับบัญชีผู้ดูแลแบบออฟไลน์
หมายเหตุ:หากสคริปต์การแสดงพร้อมท์สำหรับใบยืนยันบนแต่ละวัตถุที่ถูกกู้คืน คุณสามารถปิดการแสดงกล่องโต้ตอบได้ ไวยากรณ์การปิดการพร้อมท์ให้เป็น: ntdsutil " popups ปิดคืน""มีสิทธิ์ค่า" "การคืนค่าวัตถุ \"CN=John Doe, OU = Mayberry NC, DC = contoso, DC = com\ "verinc 150000\" " q q
รับรองความถูกต้องคืนค่าเฉพาะใน ou ชื่อหรือชื่อทั่วไป (CN) คอนเทนเนอร์ที่โฮสต์บัญชีผู้ใช้ที่ถูกลบหรือกลุ่ม
restorations ที่มีสิทธิ์ของทรีย่อยทั้งหมดที่ถูกต้องเมื่อ OU ที่อยู่สำหรับโดยntdsutil "การคืนค่าที่มีสิทธิ์"คำสั่งประกอบด้วยส่วนใหญ่ overwhelming ออปเจ็กต์ที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง ideally, OU ที่เป็นเป้าหมายประกอบด้วยออปเจ็กต์ทั้งหมดที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง
การทำหากคุณไม่มีโปรแกรมอรรถประโยชน์เช่น เครื่องมือบรรทัดคำสั่ง Ldifde.exe และ Groupadd.exe บรรทัดคำสั่ง เครื่องมือสามารถให้งานนี้ให้คุณเมื่อกำลังเรียกใช้บนตัวควบคุมโดเมนการกู้คืน เครื่องมือเหล่านี้พร้อมใช้งานจากผลิตภัณฑ์ Microsoft ฝ่ายบริการสนับสนุน ในสถานการณ์สมมตินี้ Ldifde.exe สร้างแฟ้มข้อมูลการ LDAP ข้อมูล Interchange รูปแบบ (LDIF) ที่ประกอบด้วยชื่อของบัญชีผู้ใช้และกลุ่มการรักษาความปลอดภัย เริ่มต้นที่เป็นคอนเทนเนอร์ OU ที่ระบุผู้ดูแล อ่าน Groupadd.exe แล้วนี้memberOfแอตทริบิวต์สำหรับแต่ละบัญชีผู้ใช้ที่แสดงอยู่ในแฟ้ม.ldf และจากนั้น สร้างแยกต่างหาก และเฉพาะข้อมูล LDIF สำหรับแต่ละโดเมนในฟอเรสต์ This LDIF information contains the names of the security groups that
the deleted users have to be added back to so that their group memberships can
be restored. Follow these steps for this phase of the recovery.
หากผู้ใช้ที่ถูกลบ สมาชิกของกลุ่มรักษาความปลอดภัยในโดเมนอื่น authoritatively คืนกลุ่มความปลอดภัยทั้งหมดที่ผู้ใช้ที่ถูกลบ สมาชิกของในโดเมนเหล่านั้น Or, if system state backups are
current, authoritatively restore all the security groups in those
domains.
To satisfy the requirement that deleted group members must be
restored before security groups to fix up group membership links, you restore
both object types two times in this method. The first restoration puts all the
user accounts and group accounts in place, and the second restoration restores
deleted groups and repairs the group membership information, including
membership information for nested groups.
To use method 3, follow this
procedure:
Check to see whether a global catalog domain controller
exists in the deleted users home domain and has not replicated in any part of
the deletion.
หมายเหตุ:Focus on global catalogs in the domain that has the least
frequent replication schedules. If these domain controllers exist, use the
Repadmin.exe command-line tool to immediately disable inbound replication. โดยให้ทำตามขั้นตอนต่อไปนี้::
คลิกเริ่มการทำงานแล้ว คลิกเรียกใช้.
ประเภท:คำสั่งในการOPENกล่อง แล้วคลิกตกลง.
ประเภท:repadmin /options<recovery dc="" name=""></recovery>+ disable_inbound_replat the command prompt, and then press
ENTER.
หมายเหตุ:If you cannot issue the Repadmin command immediately, remove all
network connectivity from the domain controller until you can use Repadmin to
disable inbound replication, and then immediately return network connectivity.
Avoid making additions, deletions, and changes to the
following items until all the recovery steps have been completed. Changes
include password resets by domain users, help desk administrators, and
administrators in the domain where the deletion occurred, in addition to group
membership changes in the deleted users' groups.
บัญชีผู้ใช้และคุณลักษณะบนบัญชีผู้ใช้
บัญชีคอมพิวเตอร์และแอตทริบิวต์ในบัญชีคอมพิวเตอร์
บัญชีบริการ
กลุ่มความปลอดภัย
หมายเหตุ:Especially avoid changes to group membership for users, computers,
groups, and service accounts in the forest where the deletion
occurred.
Notify all the forest administrators, the delegated
administrators, and the help desk administrators in the forest of the temporary
stand-down.
This stand-down is required in method 2 because you are
authoritatively restoring all the deleted users' security groups. Therefore,
any changes that are made to groups after the date of system state backup are
lost.
หมายเหตุ:If your system state backups are current up to the time that the
deletion occurred, skip this step and go to step 4.
If you identified
a recovery domain controller in step 1, back up its system state
now.
If all the global catalogs that are located in the domain where
the deletion occurred replicated the deletion, back up the system state of a
global catalog in the domain where the deletion occurred.
When you
create a backup, you can return the recovery domain controller back to its
current state and perform your recovery plan again if your first try is not
successful.
ถ้าคุณทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ เริ่มต้นตัวควบคุมโดเมนการกู้คืนในโหมด Dsrepair ถ้าคุณไม่ทราบรหัสผ่านสำหรับบัญชีผู้ดูแลออฟไลน์ ตั้งค่าใหม่รหัสผ่านในขณะที่ตัวควบคุมโดเมนการกู้คืนจะยังคงอยู่ใน Active Directory ปกติโหมด
คุณสามารถใช้ได้setpwdเครื่องมือบรรทัดคำสั่งเพื่อรีเซ็ตรหัสผ่านบนตัวควบคุมโดเมนที่กำลังเรียกใช้ Microsoft Windows 2000 Service Pack 2 (SP2) และในภายหลังขณะที่ อยู่ในโหมดออนไลน์ของ Active Directory
ผู้ดูแลของตัวควบคุมโดเมน Windows Server 2003 สามารถใช้ได้รหัสผ่าน dsrm ชุดคำสั่งในการNtdsutilเครื่องมือบรรทัดคำสั่งเพื่อรีเซ็ตรหัสผ่านสำหรับบัญชีผู้ดูแลแบบออฟไลน์
322672
(http://support.microsoft.com/kb/322672/
)
วิธีการตั้งค่ารหัสการบริการไดเรกทอรีคืนค่าโหมดการดูแลบัญชีผ่านใน Windows Server 2003
กดแป้น F8 ในระหว่างกระบวนการเริ่มต้นระบบเพื่อเริ่มการทำงานของตัวควบคุมโดเมนการกู้คืนใน mode.Log Dsrepair สู่คอนโซลของตัวควบคุมโดเมนการกู้คืนโดยใช้บัญชีผู้ดูแลแบบออฟไลน์ If you reset the password in
step 5, use the new password.
If the recovery domain controller is a
latent global catalog domain controller, do not restore the system state. Go
directly to step 7.
If you are creating the recovery domain controller
by using a system state backup, restore the most current system state backup
that was made on the recovery domain controller that contains the deleted
objects now.
241594
(http://support.microsoft.com/kb/241594/
)
วิธีการดำเนินการคืนค่าที่มีสิทธิ์ไปยังตัวควบคุมโดเมนใน Windows 2000
restorations ที่มีสิทธิ์ดำเนินการกับNtdsutilcommand-line tool by referencing the domain name (dn) path of the
deleted users or of the containers that host the deleted users.
Auth restore the domain name (dn) path for each deleted
user account, computer account, or deleted security
group.
Authoritative restorations of specific objects take longer but
are less destructive than authoritative restorations of a whole subtree. Auth
restore the lowest common parent container that holds the deleted
objects.
ntdsutil "การคืนค่าที่มีสิทธิ์" "การคืนค่าวัตถุ cn = ContosoPrintAccess, ou = Mayberry, dc = contoso, dc = com " q q
สิ่งสำคัญจำเป็นต้องมีการใช้ใบเสนอราคา
By using this Ntdsutil
format, you can also automate the authoritative restoration of many objects in
a batch file or a script. หมายเหตุ:ไวยากรณ์นี้ไม่พร้อมใช้งานเฉพาะใน Windows Server 2003 The only
syntax in Windows 2000 is to use: ntdsutil "authoritative restore" "restore
subtreeเส้นทางของวัตถุ DN".
รับรองความถูกต้องคืนค่าเฉพาะใน ou ชื่อหรือชื่อทั่วไป (CN) คอนเทนเนอร์ที่โฮสต์บัญชีผู้ใช้ที่ถูกลบหรือกลุ่ม
restorations ที่มีสิทธิ์ของทรีย่อยทั้งหมดที่ถูกต้องเมื่อ OU ที่อยู่สำหรับโดยNtdsutil Authoritative restoreคำสั่งประกอบด้วยส่วนใหญ่ overwhelming ออปเจ็กต์ที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง ideally, OU ที่เป็นเป้าหมายประกอบด้วยออปเจ็กต์ทั้งหมดที่คุณกำลังพยายามที่จะคืนค่าการรับรองความถูกต้อง
An authoritative restore
on an OU subtree restores all the attributes and objects that reside in the
container. Any changes that were made up to the time that a system state backup
is restored are rolled back to their values at the time of the backup. With
user accounts, computer accounts, and security groups, this rollback may mean
the loss of the most recent changes to passwords, to the home directory, to the
profile path, to location and to contact info, to group membership, and to any
security descriptors that are defined on those objects and
attributes.
หมายเหตุ:ทำซ้ำขั้นตอนนี้สำหรับแต่ละเพียร์ ou ชื่อผู้ใช้ของโฮสต์ที่ถูกลบหรือกลุ่มนั้น
สิ่งสำคัญWhen you restore a subordinate object of an OU, all the parent
containers of the deleted subordinate objects must be explicitly auth
restored.
การเริ่มระบบใหม่ของตัวควบคุมโดเมนการกู้คืนในปกติโหมด Active Directory
Outbound-replicate the authoritatively restored objects
from the recovery domain controller to the domain controllers in the domain and
in the forest.
While inbound replication to the recovery domain
controller remains disabled, type the following command to push the
authoritatively restored objects to all the cross-site replica domain
controllers in the domain and to global catalogs in the forest:
Your forest is running at the Windows Server 2003
forest functional level or at the Windows Server 2003 interim forest functional
level.
Only security groups were not deleted.
All the deleted users were added to all the security
groups in all the domains in the forest.
Consider using the Repadmin command to accelerate the
outbound replication of users from the restored domain controller.
If
groups were also deleted, or if you cannot guarantee that all the deleted users
were added to all the security groups after the transition to the Windows
Server 2003 interim or forest functional level, go to step 12.
Repeat steps 7, 8, and 9 without restoring the system
state, and then go to step 11.
Use the following command to enable inbound replication to
the recovery domain controller:
repadmin /optionsrecovery dc name-DISABLE_INBOUND_REPL
Make a new system state backup of domain controllers in the
recovery domain controller's domain and global catalogs in other domains in the
forest.
Notify all the forest administrators, the delegated
administrators, the help desk administrators in the forest, and the users in
the domain that the user restore is complete.
Help desk administrators
may have to reset the passwords of auth restored user accounts and computer
accounts whose domain password changed after the restored system was
made.
ผู้ใช้เปลี่ยนรหัสผ่านของตนเองหลังจากที่ทำการสำรองข้อมูลสถานะระบบจะค้นหาทำให้รหัสผ่านล่าสุดอีกงาน มีผู้ใช้เช่นความพยายามที่เข้าสู่ระบบ โดยใช้รหัสผ่านก่อนหน้าถ้าพวกเขาทราบ
Otherwise, help desk administrators must reset the password with theผู้ใช้ต้องเปลี่ยนรหัสผ่านเมื่อเข้าสู่ระบบถัดไปcheck box checked,
preferably on a domain controller in the same Active Directory site as the user
is located in.
How to recover deleted users on a Windows Server 2003 domain controller when you do not have a valid system state backup
If you lack current system state backups in a domain where user
accounts or security groups were deleted, and the deletion occurred in domains
that contain Windows Server 2003 domain controllers, follow these steps to
manually reanimate deleted objects from the deleted objects container:
Follow the steps in the "How to manually undelete objects
in the deleted objects container" section to reanimate deleted users,
computers, groups, or all of these.
Use Active Directory Users and Computers to change the
account from disabled to enabled. (The account appears in the original
OU.)
Use the bulk reset features in the Windows Server 2003
version of Active Directory Users and Computers to perform bulk resets on the
"password must change at next logon" policy setting, on the home directory, on
the profile path, and on group membership for the deleted account as required.
You can also use a programmatic equivalent of these features.
If Microsoft Exchange 2000 or later was used, repair the
Exchange mailbox for the deleted user.
If Exchange 2000 or later was used, reassociate the deleted
user with the Exchange mailbox.
Verify that the recovered user can log on and access local
directories, shared directories, and files.
You can automate some or all of these recovery steps by using
the following methods:
Write a script that automates the manual recovery steps
that are listed in step 1. When you write such a script, consider scoping the
deleted object by date, time, and last known parent container, and then
automating the reanimation of the deleted object. To automate the reanimation,
change theisDeletedattribute from TRUE to FALSE, and change the relative
distinguished name to the value that is defined either in thelastKnownParentattribute or in a new OU or common name (CN) container that is
specified by the administrator. (The relative distinguished name is also known
as the RDN.)
Obtain a non-Microsoft program that supports the
reanimation of deleted objects on Windows Server 2003 domain controllers. One
such utility is AdRestore. AdRestore uses the Windows Server 2003 undelete
primitives to undelete objects individually. Aelita Software Corporation and
Commvault Systems also offer products that support undelete functionality on
Windows Server 2003-based domain controllers.
To obtain AdRestore,
visit the following Web site:
Microsoft จะให้ข้อมูลติดต่อของบริษัทอื่น เพื่อช่วยให้คุณสามารถขอรับการสนับสนุนทางเทคนิคได้
ข้อมูลติดต่อนี้อาจเปลี่ยนแปลงโดยไม่ต้องแจ้งให้ทราบล่วงหน้า Microsoft ไม่รับประกันความถูกต้องของข้อมูลการติดต่อกับบริษัทอื่นๆ เหล่านี้
หมายเหตุ:กระบวนการ1.2.840.113556.1.4.417control moves to theActive Controlsหน้าต่าง
ภายใต้Control Typeคลิกเซิร์ฟเวอร์:และคลิกตกลง.
ในการมุมมองเมนู คลิกแผนภูมิ, type the distinguished name path of the deleted objects
container in the domain where the deletion occurred, and then clickตกลง.
หมายเหตุ:The distinguished name path is also known as the DN path. For
example, if the deletion occurred in the contoso.com domain, the DN path would
be the following path:
cn=deleted Objects,dc=contoso,dc=com
In the left pane of the window, double click theDeleted Object Container.
หมายเหตุ:As a search result of Idap query, only 1000 objects are returned by default. Fot example, if more than 1000 objects exist in the Deleted Objects container, not all objects appear in this container. If your target object does not appear, usentdsutil, and then set the maximum number by usingmaxpagesizeto get the search results .
Double-click the object that you want to undelete or to
reanimate.
Right-click the object that you want to reanimate, and then
click Modify.
Change the value for theisDeletedattribute and the DN path in a single Lightweight Directory
Access Protocol (LDAP) modify operation. การกำหนดค่านี้ปรับเปลี่ยนdialog, follow these steps:
ในการEdit Entry Attributeกล่อง ชนิดisDeleted.
ปล่อยให้ค่าbox
blank.
คลิกการลบoption button, and
then clickป้อนto make the first of two entries in theEntry Listdialog.
สิ่งสำคัญDo not clickเรียกใช้.
ในการAttributeกล่อง ชนิดdistinguishedName.
ในการValuesbox, type the new DN
path of the reanimated object.
For example, to reanimate the JohnDoe
user account to the Mayberry OU, use the following DN path:
หมายเหตุ:วัตถุ reanimated มี SID หลักที่เหมือนกัน ตามที่มันได้ก่อนที่จะลบ แต่วัตถุต้องเพิ่มอีกครั้งไปยังกลุ่มรักษาความปลอดภัยเดียวกันเพื่อให้ระดับการเข้าถึงทรัพยากรเดียวกัน ไม่มีรักษา Windows Server 2003 รุ่นแรกSIDHistoryแอตทริบิวต์ในบัญชีผู้ใช้ reanimated บัญชีคอมพิวเตอร์ และกลุ่มความปลอดภัย Windows Server 2003 Service Pack 1 มีการเก็บไว้SIDHistoryแอตทริบิวต์บนวัตถุที่ถูกลบ
ลบแอตทริบิวต์ของ Microsoft Exchange และการเชื่อมต่อผู้ใช้ไปยังกล่องจดหมายของ Exchange
หมายเหตุ:มีสนับสนุน reanimation ของวัตถุที่ถูกลบเมื่อการลบการเกิดขึ้นในตัวควบคุมโดเมน Windows Server 2003 ไม่สนับสนุน reanimation ของวัตถุที่ถูกลบเมื่อการลบการเกิดขึ้นในตัวควบคุมโดเมน Windows 2000 ที่มีในภายหลังได้มีการปรับรุ่นเป็น Windows Server 2003
หมายเหตุ:หากมีการลบในตัวควบคุมโดเมน Windows 2000 ในโดเมน การlastParentOfแอตทริบิวต์ไม่ได้ถูกบรรจุตัวควบคุมโดเมน Windows Server 2003
ถ้ามีการตรวจสอบได้ถูกกำหนดอย่างถูกต้องค่าการติดตามการลบ ของคอนเทนเนอร์หน่วยองค์กร (OU) หรือวัตถุรอง ใช้โปรแกรมอรรถประโยชน์ที่ค้นหาล็อกเหตุการณ์การรักษาความปลอดภัยของตัวควบคุมโดเมนในโดเมนที่เกิดขึ้นในการลบ One such utility that searches event logs
on a scoped set of domain controllers is the EventCombMT utility. EventCombMT
is part of the Windows Server 2003 Resource Kit Tools tool set.
For
more information about how to obtain the Windows Server 2003 Resource Kit Tools
tools set, visit the following Microsoft Web page:
Follow steps 1 to 7 in the "How to manually undelete
objects in a deleted object's container" section to locate deleted security
principals. If a tree was deleted, follow these steps to locate a parent
container of the deleted object.
Copy the value of theobjectGUIDattribute to the Windows clipboard.
You can paste this
value when you enter the Repadmin command in step 4.
พิมพ์คำสั่งต่อไปนี้:
repadmin /showmeta GUID=objectGUID>FQDN>
For example, if the objectGUID of the deleted object or container
is 791273b2-eba7-4285-a117-aa804ea76e95 and the fully qualified domain name
(FQDN) is dc.contoso.com, type the following command:
The syntax of this command must include the GUID of the deleted
object or container and the FQDN of the server that you want to source from.
In the Repadmin command output, find the originating date,
time and domain controller for theisDeletedแอตทริบิวต์ For example, information for theisDeletedattribute appears in the fifth line of the following sample
output:
If the name of the originating domain controller in the
second column of the output appears as a 32-character alpha-numeric GUID, use
the Ping command to resolve the GUID to the IP address and the name of the
domain controller that originated the deletion. The Ping command uses the
following syntax:
หมายเหตุ:The "-a" option is case sensitive. Use the fully qualified domain
name of the forest root domain regardless of the domain that the originating
domain controller resides in.
For example, if the originating domain
controller resided in any domain in the Contoso.com forest and had a GUID of
644eb7e7-1566-4f29-a778-4b487637564b, type the following command:
The output returned by this command is similar to the following:
Pinging na-dc1.contoso.com [65.53.65.101] with 32 bytes of data:
Reply from 65.53.65.101: bytes=32 time<1ms TTL=128
Reply from 65.53.65.101: bytes=32 time<1ms TTL=128
Reply from 65.53.65.101: bytes=32 time<1ms TTL=128
Reply from 65.53.65.101: bytes=32 time<1ms TTL=128
View the security log of the domain controller that
originated the deletion on or about the time that was indicated in the output
of the Repadmin command in step 5.
Give consideration to time skews
and time zone changes between the computers that were used to arrive at this
point. If delete auditing is enabled for OU containers or for the deleted
objects, pay attention to the relevant audit events. If auditing is not
enabled, pay attention to users who had the permissions to delete OU containers
or the subordinate objects in them, and that also had authenticated against the
originating domain controller in the time before the deletion.
How to minimize the impact of bulk deletions in the future
The keys to minimizing the impact of the bulk deletion of users,
of computers, and of security groups are to make sure that you have up-to-date
system state backups, to tightly control access to privileged user accounts, to
tightly control what those accounts can do, and finally, to practice recovery
from bulk deletions.
System state changes occur every day. These
changes may include password resets on user accounts and on computer accounts
in addition to group membership changes and other attribute changes on user
accounts, on computer accounts, and on security groups. If your hardware fails,
your software fails, or your site experiences another disaster, you will want
to restore the backups that were made after each significant set of changes in
each Active Directory domain and site in the forest. If you do not maintain
current backups, you may lose data or may have to roll back restored objects.
Microsoft recommends that you take the following steps to prevent
bulk deletions:
Do not share the password for the built-in administrator
accounts or permit common administrative user accounts to be shared. If the
password for the built-in administrator account is known, change the password
and define an internal process that discourages its use. Audit events for
shared user accounts make it impossible to determine the identity of the user
who is making changes in Active Directory. Therefore, the use of shared user
accounts must be discouraged.
It is very rare that user accounts, computer accounts, and
security groups are intentionally deleted. This is especially true of tree
deletions. Disassociate the ability of service and delegated administrators to
delete these objects from the ability to create and to manage user accounts,
computer accounts, security groups, OU containers, and their attributes. Grant
only the most privileged user accounts or security groups the right to perform
tree deletes. These privileged user accounts may include enterprise
administrators.
Grant delegated administrators access only to the class of
object that those administrators are permitted to manage. For example, it is
better if a help desk administrator whose primary job is to modify properties
on user accounts does not have permissions to create and to delete computer
accounts, security groups, or OU containers. This restriction also applies to
delete permissions for the administrators of other specific object
classes.
Experiment with audit settings to track delete operations
in a lab domain. After you are comfortable with the results, apply your best
solution to the production domain.
การลบที่เป็นกลุ่ม ของบัญชีผู้ใช้ บัญชีคอมพิวเตอร์ และกลุ่มการรักษาความปลอดภัยที่ Microsoft เห็นส่วนใหญ่ได้โดยไม่ตั้งใจ กล่าวถึงสถานการณ์สมมตินี้กับพนักงาน IT ของคุณ และพัฒนาแผนการดำเนินการภายใน At
first, focus on early detection and on returning functionality to your domain
users and to your business as quickly as possible. You can also take steps to prevent accidental bulk deletions from occurring by editing the access control lists (ACLs) of organizational units. For more information about how to use Windows interface tools to prevent accidental bulk deletions, visit the following Microsoft Web site to view "Guarding Against Accidental Bulk Deletions in Active Directory":
For more information about how to prevent accidental bulk deletions by using Dsacls.exe at the command line or by using a script, visit the following Microsoft Web site to view " Script to Protect Organizational Units (OUs) from Accidental Deletion":
Tools and scripts that may help you recover from bulk deletions
The Groupadd.exe command-line utility reads thememberOfattribute on a collection of users in an OU and builds an .ldf
file that adds each restored user account to the security groups in each domain
in the forest.
Groupadd.exe automatically discovers the domains and
security groups that deleted users were members of and adds them back to those
groups. This process is explained in more detail in step 11 of method
1.
Groupadd.exe runs on the following domain controllers:
Windows Server 2003 domain controllers
Windows 2000 domain controllers that have the .NET 1.1
framework installed
Here,ldf_filerepresents the name of
the .ldf file to be used with the previous argument,after_restorerepresents the user file data source,
andbefore_restorerepresents the user data from the
production environment. (The user file data source is the good user
data.)
To obtain Groupadd.exe, contact Microsoft Product Support
Services.
ผลิตภัณฑ์ของบุคคลที่สามที่กล่าวถึงในบทความนี้ ผลิตขึ้นโดยบริษัทที่ไม่ขึ้นอยู่กับ Microsoft Microsoft makes no warranty, implied or
otherwise, about the performance or reliability of these
products.
For more information about how to restore an object that contains extended characters, click the following article numbers to view the articles in the Microsoft Knowledge Base:
886689
(http://support.microsoft.com/kb/886689/
)
The Ntdsutil authoritative restore operation is not successful if the distinguished name path contains extended characters in Windows Server 2003 and in Windows 2000
หากต้องการทราบข้อมูลเพิ่มเติม โปรดคลิกที่หมายเลขบทความต่อไปนี้เพื่อดูบทความใน Microsoft Knowledge Base::
824684
(http://support.microsoft.com/kb/824684/
)
คำอธิบายของคำศัพท์มาตรฐานที่ใช้เพื่ออธิบายปรับปรุงซอฟต์แวร์ของ Microsoft
910823
(http://support.microsoft.com/kb/910823/
)
Error message when you try to import .ldf files on a computer that is running Windows Server 2003 with Service Pack 1: "Add error on line LineNumber: No such object"
937855
(http://support.microsoft.com/kb/937855/
)
After you restore deleted objects by performing an authoritative restoration on a Windows Server 2003-based domain controller, the linked attributes of some objects are not replicated to the other domain controllers
For more information on how to use the AD Recycle Bin feature included in Windows Server 2008 R2, please reference the Active Directory Recycle Bin Step-by-Step Guide available from this Microsoft Web site:http://technet.microsoft.com/en-us/library/dd392261(WS.10).aspx
(http://technet.microsoft.com/en-us/library/dd392261(WS.10).aspx)
ข้อมูลสำคัญ: บทความนี้แปลโดยซอฟต์แวร์การแปลด้วยคอมพิวเตอร์ของ Microsoft แทนที่จะเป็นนักแปลที่เป็นบุคคล Microsoft มีบทความที่แปลโดยนักแปลและบทความที่แปลด้วยคอมพิวเตอร์ เพื่อให้คุณสามารถเข้าถึงบทความทั้งหมดในฐานความรู้ของเรา ในภาษาของคุณเอง อย่างไรก็ตาม บทความที่แปลด้วยคอมพิวเตอร์นั้นอาจมีข้อบกพร่อง โดยอาจมีข้อผิดพลาดในคำศัพท์ รูปแบบการใช้ภาษาและไวยากรณ์ เช่นเดียวกับกรณีที่ชาวต่างชาติพูดผิดเมื่อพูดภาษาของคุณ Microsoft ไม่มีส่วนรับผิดชอบต่อความคลาดเคลื่อน ความผิดพลาดหรือความเสียหายที่เกิดจากการแปลเนื้อหาผิดพลาด หรือการใช้บทแปลของลูกค้า และ Microsoft มีการปรับปรุงซอฟต์แวร์การแปลด้วยคอมพิวเตอร์อยู่เป็นประจำ