Schuliebug
(Hey THIS is FUN)
2005-03-16 12:35 PM
Create Sites, Subnets & Site-links

Hi,

We are merging about 300 sites (travel agencies) into our 2003 AD domain, and i was wondering: is it possible to create all the nessecary sites, subnets and site-links via KiX or command line?

Each agency is connected via some sort of VPN, with their class C IP subnet and only one DC on location. All agencies have a unique name (000 - 999 range) and as much communication should be local.


maciep
(Korg Regular)
2005-03-16 02:22 PM
Re: Create Sites, Subnets & Site-links

To get started, take a look at the Active Directory Cook Book. Scroll down to the Site Topology section

Schuliebug
(Hey THIS is FUN)
2005-03-16 03:26 PM
Re: Create Sites, Subnets & Site-links

In the sample chapter there's ain't a section sites... Maybe i can get the book somewhere, or does anybody has any sample script to create the Sites, Sitelinks and Subnets ?

maciep
(Korg Regular)
2005-03-16 03:52 PM
Re: Create Sites, Subnets & Site-links

Just scroll down on that page, don't go to the sample chapter. You don't see the site topology section?

Quote:


11. Site Topology
11.1. Creating a site (VBScript) (LDIF) (Perl)
11.2. Listing the sites (VBScript) (Perl)
11.3. Deleting a site (VBScript) (Perl)
11.4. Creating a subnet (VBScript) (LDIF) (Perl)
11.5. Listing the subnets (VBScript) (Perl)
11.7. Creating a site link (VBScript) (LDIF) (Perl)
11.8. Finding the site links for a site (VBScript) (Perl)
11.9. Modifying the sites that are part of a site link (VBScript) (LDIF) (Perl)
11.10. Modifying the cost for a site link (VBScript) (LDIF) (Perl)
11.11. Disabling site link transitivity and site link schedules (VBScript) (Perl)
11.12. Creating a site link bridge (VBScript) (LDIF) (Perl)
11.13. Finding the bridgehead servers for a site (VBScript) (Perl)
11.14. Setting a preferred bridgehead server for a site (VBScript) (LDIF) (Perl)
11.15. Listing the servers (VBScript) (Perl)
11.16. Moving a domain controller to a different site (VBScript) (Perl)
11.17. Configuring a domain controller to be in multiple sites (VBScript) (Perl)
11.19. Disabling automatic site coverage for a domain controller (VBScript) (Perl)
11.20. Finding the site for a client (VBScript) (Perl)
11.21. Forcing a host to a particular site (VBScript) (Perl)
11.23. Listing the connection objects for a domain controller (VBScript) (Perl)
11.25. Finding the ISTG for a site (VBScript) (Perl)
11.26. Transferring the ISTG to another domain controller (VBScript) (Perl)
11.27. Triggering the KCC (VBScript) (Perl)
11.29. Disabling the KCC for a site (VBScript) (LDIF) (Perl)
11.30. Changing the interval at which the KCC runs (VBScript) (Perl)





If you still can't find it let me know, and i can post the vbscript examples they give for anything that you need.


Les
(KiX Master)
2005-03-16 04:25 PM
Re: Create Sites, Subnets & Site-links

If you download The Portable Script Center or access them online from http://www.microsoft.com/technet/scriptcenter you will find a large collection of VBS scripts.


Schuliebug
(Hey THIS is FUN)
2005-03-16 04:27 PM
Re: Create Sites, Subnets & Site-links

Clearly you get chapter 11, as i still get chapter 8 (something about computers and manipulating them)...

Schuliebug
(Hey THIS is FUN)
2005-03-16 04:37 PM
Re: Create Sites, Subnets & Site-links

Les: thankz. I searched the script center and alteady found some usefull pages !!

maciep
(Korg Regular)
2005-03-16 04:54 PM
Re: Create Sites, Subnets & Site-links

well it looks to me like you clicked on the "sample chapter" link again...if i do that i get chapter 8 in pdf format. But on the page from the link i posted, i get sample code from chapters 2-18. Anyway, good luck.

NTDOCAdministrator
(KiX Master)
2005-03-16 05:05 PM
Re: Create Sites, Subnets & Site-links

You see this?

11. Site Topology
11.1. Creating a site (VBScript) (LDIF) (Perl)
11.2. Listing the sites (VBScript) (Perl)
11.3. Deleting a site (VBScript) (Perl)
11.4. Creating a subnet (VBScript) (LDIF) (Perl)
11.5. Listing the subnets (VBScript) (Perl)
11.7. Creating a site link (VBScript) (LDIF) (Perl)
11.8. Finding the site links for a site (VBScript) (Perl)
11.9. Modifying the sites that are part of a site link (VBScript) (LDIF) (Perl)
11.10. Modifying the cost for a site link (VBScript) (LDIF) (Perl)
11.11. Disabling site link transitivity and site link schedules (VBScript) (Perl)
11.12. Creating a site link bridge (VBScript) (LDIF) (Perl)
11.13. Finding the bridgehead servers for a site (VBScript) (Perl)
11.14. Setting a preferred bridgehead server for a site (VBScript) (LDIF) (Perl)
11.15. Listing the servers (VBScript) (Perl)
11.16. Moving a domain controller to a different site (VBScript) (Perl)
11.17. Configuring a domain controller to be in multiple sites (VBScript) (Perl)
11.19. Disabling automatic site coverage for a domain controller (VBScript) (Perl)
11.20. Finding the site for a client (VBScript) (Perl)
11.21. Forcing a host to a particular site (VBScript) (Perl)
11.23. Listing the connection objects for a domain controller (VBScript) (Perl)
11.25. Finding the ISTG for a site (VBScript) (Perl)
11.26. Transferring the ISTG to another domain controller (VBScript) (Perl)
11.27. Triggering the KCC (VBScript) (Perl)
11.29. Disabling the KCC for a site (VBScript) (LDIF) (Perl)
11.30. Changing the interval at which the KCC runs (VBScript) (Perl)



maciep
(Korg Regular)
2005-03-16 05:14 PM
Re: Create Sites, Subnets & Site-links

Yep, along with the same format for chapters 2-18. I've had the page bookmarked for quite a while and it's the first resource i check when i'm writing any AD scripts - extremely helpful.

But i guess nobody else sees it...


Schuliebug
(Hey THIS is FUN)
2005-03-17 10:00 AM
Re: Create Sites, Subnets & Site-links

I'm stuped.. Say again? Yes, i'm stupid.. Since when you can scroll pages? Nobody told me!

Enough excuses, i looked again an i saw the samples. This is really a great page for me! Thankz again.


NTDOCAdministrator
(KiX Master)
2005-03-17 10:00 AM
Re: Create Sites, Subnets & Site-links

Another one sees the light

LonkeroAdministrator
(KiX Master Guru)
2005-03-17 10:06 AM
Re: Create Sites, Subnets & Site-links

it's good during these dark ages we live in

Schuliebug
(Hey THIS is FUN)
2005-03-17 03:44 PM
Re: Create Sites, Subnets & Site-links

You don't have to rub it in