Maintain Active Directory Flashcards
What are two ways to take AD offline?
- Directory Services Restore Mode
2. Restartable AD DS Service
How do you take AD offline using DSRM?
- Open command prompt, type:
bcdedit /set safeboot dsrepair - shutdown -t 0 -r
Within Safe Mode, how do you bring AD back online?
- Log in as local admin
- Open cmd prompt
- bcdedit /deletevalue safeboot
How do you perform a defrag of an AD Database?
- Open cmd prompt
- ntdsutil > activate instance ntds
- files > compact to c:\
- integrity
- quit > quit
- copy c:\ntds.dit c:\windows\ntds\ntds.dit
- del c:\windows\ntds*.log
What is the classic method of taking AD offline?
DSRM
How do you clean up metadata?
Within ADUC, delete the DC from the Domain Controllers OU.
Within ADSS, delete the DC from the Servers container within Sites
How do you backup Active Directory?
- Install Windows Server Backup feature
- Create backup partition utilizing Disk Management
- Within Windows Server Backup, set schedule or run Backup Once, System State
What is the difference between an authoritative and non-authoritative restore?
An authoritative restore performs the restore without receiving any updates from any DCs.
A non-authoritative restore performs the restore as well as accepts any updates from any DCs.
How do you perform a restore of AD?
1. Reboot the server in DSRM by typing: bcdedit /set safeboot dsrepair shutdown -t 0 -r 2. Within Safe Mode, open Windows Server Backup and select Recover and walk through Recovery Wizard 3. bcdedit /deletevalue safeboot
How do you restore objects in AD Recycle Bin?
- Enable AD Recycle Bin by going to AD Admin Center.
2. The objects can be restored within the Deleted Objects folder in AD Admin Center.
How long can objects last in the Deleted Objects folder in AD Admin Center?
180 days.
What tool is used to configure snapshots?
ntdsutil
How do you access the ntds snapshot utility?
- Open a command prompt
2. ntdsutil > activate ntds > snapshot
Within the ntds snapshot utility, what command lists all available snapshots?
List all
Within the ntds snapshot utility, what command is used to create a new snapshot?
Create