This post will show you how to delete Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files and it can be viewed without starting server in Directory Services Restore Mode.
To list all available snaphosts on server type:
ntdsutil press Enter
snapshot press Enter
list all press Enter
You will see all available snapshots with specific GUID {…..} . Make sure that snapshot, you are going to delete, is unmounted. If it is mounted unmount it by typing:
unmount {<GUID>}
To delete snapshot type:
delete {<GUID>}
This post will show you how to create Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files. Snapshot can be viewed without starting server in Directory Services Restore Mode.
Before creating snapshot you need to set AD as active instance. To do it open command line and type:
ntdsutil press Enter
activate instance NTDS press Enter
Now you are ready to create snapshot:
snapshot press Enter
create press Enter
You will see in output that snapshot was generated successfully.
This post will show you how to find group in Active Directory using command line on your Windows server 2008.
Lets say you want to list all groups in your domain testdomain.com. To do it open command line and type:
dsquery group domainroot
If you want to find all groups those name starts with “test” type:
dsquery group domainroot -name test*
This post will show you how to install domain controller role on your Windows server 2008 using answer file. Lets say you have answer file “NewDCInstall” which is readied for domain services install. Open command line and type:
dcpromo /answer:NewDCInstall
You have Windows server 2008 and want to install Read Only Domain Controller role on it? First you need to prepare your domain before you can do this operation. For that open command line on your Windows server 2008 and type:
adprep /rodcprep
How to #CMD by Thomas
If you think that your active directory can be corrupted you should perform integrity check. To do that you must boot your Windows server 2003 into Directory Services Restore Mode. How to do that you can can check in article named “Windows server 2003 – How to access Active Directory services restore mode remotely”. After login open command line ant type:
Ntdsutil and press Enter
Files and press Enter
Integrity and press Enter
I think all you know that in order to access active directory services restore mode you must press F8 when booting your server and then select Directory Services restore mode from boot options menu. But how to do that if your server is at remote location and you can reach it only via Remote Dektop connection (Start>Run mstsc /console). Nope, no ILO too…
There is a way! Connect to that Windows server 2003 via rdp and open boot.ini file in notepad. Then add following text to the end of the boot.ini file:
/SAFEBOOT:DSREPAIR
Save boot.ini file and reboot server. After reboot connect with RDC (Start>Run mstsc /console) and login using Local Administrators account.
After you will finish your work with server in Directory Services Restore Mode dont forget to delete that extra line you added to boot.ini.