Active Directory snapshot Management
Through the Active Directory snapshot function, we can easily see the information in the original AD before recovering the AD information, such as users, groups, OU and other information. Let's do it.
Environment:
Operating System: Windows Server 2012
Domain Controller: xiaohui.srv.com
Objective: To create a snapshot-delete testOU-create a snapshot-delete Steven, and then use the snapshot to view the different AD statuses and information at different times.
Now let's take a look at the current AD information. Now we have two OU: test and test1, and another user named steven.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image002 "border =" 0 "alt =" clip_image002 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UJ5K-0.jpg "/>
Next we can discuss our theme, and we can open Powershell (CMD is also good, depending on personal habits)
Let's enter the ntdsutil command. Can we enter? Or help to get help, because my system is in English, so it is an English prompt. If your system is in Chinese, it is a Chinese prompt, so don't worry, here we are talking about snapshots, so we use snapshot, and we just need to enter it directly.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image004 "border =" 0 "alt =" clip_image004 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UJ257-1.jpg "/>
Input Snapshot or SN. Similarly, you can use help to obtain it, that is, you can obtain 650 for each level.) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image006 "border =" 0 "alt =" clip_image006 "height =" 151 "src =" http://www.bkjia.com/uploads/allimg/131229/193UGb9-2.jpg "/>
Now let's list all and check whether there are any snapshots. For example, no available snapshots are found.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image008 "border =" 0 "alt =" clip_image008 "height =" 146 "src =" http://www.bkjia.com/uploads/allimg/131229/193UK3C-3.jpg "/>
Now, enter create to create a snapshot of the current time. Similarly, to activate the current instance, the default value is ntds.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image010 "border =" 0 "alt =" clip_image010 "height =" 161 "src =" http://www.bkjia.com/uploads/allimg/131229/193UK235-4.jpg "/>
We enter Activate Instance ntds to Activate the current Instance, and enter create to create a snapshot.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image012 "border =" 0 "alt =" clip_image012 "height =" 148 "src =" http://www.bkjia.com/uploads/allimg/131229/193UM442-5.jpg "/>
Let's list all again. We can see that a snapshot is available.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image014 "border =" 0 "alt =" clip_image014 "height =" 193 "src =" http://www.bkjia.com/uploads/allimg/131229/193UH033-6.jpg "/>
The preceding figure shows how to create a snapshot. Next, we will try to use the snapshot. Now we will delete the test OU. For example, the test OU has been deleted.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image016 "border =" 0 "alt =" clip_image016 "height =" 106 "src =" http://www.bkjia.com/uploads/allimg/131229/193UL1K-7.jpg "/>
Now let's create a snapshot. We already have two snapshots. The first snapshot contains the original one, and the second snapshot does not have the ou test.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image018 "border =" 0 "alt =" clip_image018 "height =" 266 "src =" http://www.bkjia.com/uploads/allimg/131229/193UJ418-8.jpg "/>
Delete the user Steven, and then create a snapshot.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image020 "border =" 0 "alt =" clip_image020 "height =" 144 "src =" http://www.bkjia.com/uploads/allimg/131229/193UKS8-9.jpg "/>
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image022 "border =" 0 "alt =" clip_image022 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UL922-10.jpg "/>
Well, we already have three snapshots. Let's verify them. For example, I want to see the AD information, I want to check whether the ou test is still absent at this time. If the ou test is successful, it should not be. Here we need to use the mount command. For example, if the mount is successful, it is attached to c: \ $ snap _...
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image024 "border =" 0 "alt =" clip_image024 "height =" 144 "src =" http://www.bkjia.com/uploads/allimg/131229/193UK018-11.jpg "/>
We need to use another command, dsamain. Can we use the same command? Take a look at the help
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image026 "border =" 0 "alt =" clip_image026 "height =" 311 "src =" http://www.bkjia.com/uploads/allimg/131229/193UM191-12.jpg "/>
Let's hang up. For example, dbpath indicates the path you are hanging on. If ldapport is not currently using the port number, for example, if my port number is 5555, Microsoft Active Directory Domain Services startup complete appears, version 6.2.9200.16384 indicates that this snapshot has been successfully started.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image028 "border =" 0 "alt =" clip_image028 "height =" 82 "src =" http://www.bkjia.com/uploads/allimg/131229/193UIc6-13.jpg "/>
Now let's verify, open the AD user and computer, right-click on the root node, and choose to replace the domain controller.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image029 "border =" 0 "alt =" clip_image029 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UH3X-14.png "/>
Here we enter the domain controller, and enter our snapshot port number, and then click OK)
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image031 "border =" 0 "alt =" clip_image031 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UK004-15.jpg "/>
We do not have the test ou, but there is another user named Steven, which indicates that this snapshot is valid. We will verify the next snapshot, and the next result should be the Test OU, no Steven
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image033 "border =" 0 "alt =" clip_image033 "height =" 259 "src =" http://www.bkjia.com/uploads/allimg/131229/193UM414-16.jpg "/>
We turn off the active users and computers, and then mount the third snapshot. We need to unmount the snapshot first, and then mount the third snapshot.
For example, in the same location, we continue the above steps and use dsamain to start this snapshot.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image035 "border =" 0 "alt =" clip_image035 "height =" 202 "src =" http://www.bkjia.com/uploads/allimg/131229/193UMD0-17.jpg "/>
For example, the startup is successful.
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image037 "border =" 0 "alt =" clip_image037 "height =" 118 "src =" http://www.bkjia.com/uploads/allimg/131229/193UH927-18.jpg "/>
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image039 "border =" 0 "alt =" clip_image039 "height =" 342 "src =" http://www.bkjia.com/uploads/allimg/131229/193UI216-19.jpg "/>
650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" clip_image041 "border =" 0 "alt =" clip_image041 "height =" 265 "src =" http://www.bkjia.com/uploads/allimg/131229/193UL0c-20.jpg "/>
As shown in, the entire experiment is successful.
This article from the "Sunshine ☆endeavor" blog, please be sure to keep this source http://ucweb.blog.51cto.com/4042188/957016