Command |
Purpose |
Example |
Where to Get It |
Active Directory Management |
|||
Adfind |
Search AD |
Adfind –b dc=deuby,dc=com –f “objectcategory=computer” dNSHostName |
|
Admod |
Modify any AD object |
Admod –b cn=joe,ou=users,dc=deuby,dc=com “description::Command line guru” |
|
Dsadd |
Add AD objects |
Dsadd group “ou=Admins,dc=deuby,dc=com” |
Built-In |
Dsget |
List AD object attributes |
Dsquery server –domain deubynet | dsget server –dnsname |
Built-In |
Dsmod |
Modify AD objects |
Dsquery user –name “Sean Deuby” | dsmod user –desc “Command line guru” |
Built-in |
Dsmove |
Move AD objects |
Dsquery user –name “Sean Deuby” |
dsmove –newparent “OU= |
Built-in |
Dsquery |
List AD objects |
Dsquery server –domain deubynet |
Built-In |
Dsrm |
Delete AD objects |
Dsrm –subtree “ou=Admins,dc=deuby,dc=com” |
Built-in |
Active Directory Replication |
|||
ADLB |
Rebalance AD inter-site replication load balancing. |
Adlb /server:DcName /site:SIteName |
Resource Kit |
Repadmin |
View and control AD replication |
Repadmin /showrepl /errorsonly |
|
Active Directory Troubleshooting |
|||
Dcdiag |
Test for common DC problems |
Dcdiag /s:dcName |
CD:\Support Tools |
DNSLint |
Test AD DNS configuration |
dnslint /ad 192.168.1.51 /s 192.168.1.51 |
CD:\Support Tools |
Dsrevoke |
Reverse Delegation of Control |
dsrevoke /report deubynet\sdeuby |
|
Group Policy Troubleshooting |
|||
Dcgpofix |
Recreate default domain group policy objects in Windows 2003 |
Dcgpofix /target:DC |
|
Gpotool |
Checks GPO consistency |
Gpotool /domain:deuby.com |
Resource Kit |
Recreatedefpol |
Recreate default domain group policy objects in Windows 2000 |
Recreatedefpol |
|
Miscellaneous |
|||
Command Prompt Here |
Launch a command prompt from any folder in Explorer |
N/A |
|
Pslist |
List processes |
Pslist "\\computer" |
|
Psexec |
Run a command on a remote machine. |
psexec "\\computer" cmd.exe |
|
Where |
Find the location of an executable, like `which` in unix |
Where dsquery |
Built-in |
Any questions or problem links please email |