Command line scripts for AD

Creating an Active Directory Site
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet13.mspx

 

Creating an Active Directory Site Link
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet14.mspx

 

Creating an Active Directory Subnet
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet15.mspx

 

Deleting an Active Directory Subnet
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet16.mspx

 

Listing Active Directory Connections
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet20.mspx

 

Listing Active Directory Sites
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet21.mspx

 

Listing Servers in an Active Directory Site
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet22.mspx

 

Listing the Subnets in all Active Directory Sites
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet24.mspx

 

Listing the Subnets in an Active Directory Site
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet23.mspx

 

Renaming an Active Directory Site
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet26.mspx

 

Retrieving the Domain Controller Site Name
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet17.mspx

 

Retrieving the Site Name for the Local Computer
http://www.microsoft.com/technet/community/scriptcenter/network/scrnet18.mspx