Script to join workstation in specific OU

  • Thread starter Thread starter oscarmok
  • Start date Start date
O

oscarmok

We have about 12 regional sites. Our head office is the only site
with DNS and DHCP servers. Each regional sites has its own ip address
range. Our AD is base on geographic location (for example
ou=vancouver, ou=calgary, ou=toronto, ou=halifax). In each ou, we
create an ou called 'workstations'.

I wonder is it possible during sysprep (we are deploying XP pro),
there is some sort of program that can run inside cmdline.txt and
detect what ip address range the pc currently register so it can join
the proper ou. For example, Vancouver ou is 10.10.x.x, Calgary ou is
10.11.x.x. During the sysprep, the script (program) reads off the
assign ip address and join the computer to proper ou (if it's
10.10.1.100, then the workstation will join under
workstations.vancouver.msft.ca)

Thanks in advance
 
oscarmok said:
We have about 12 regional sites. Our head office is the only site
with DNS and DHCP servers. Each regional sites has its own ip address
range. Our AD is base on geographic location (for example
ou=vancouver, ou=calgary, ou=toronto, ou=halifax). In each ou, we
create an ou called 'workstations'.

I wonder is it possible during sysprep (we are deploying XP pro),
there is some sort of program that can run inside cmdline.txt and
detect what ip address range the pc currently register so it can join
the proper ou. For example, Vancouver ou is 10.10.x.x, Calgary ou is
10.11.x.x. During the sysprep, the script (program) reads off the
assign ip address and join the computer to proper ou (if it's
10.10.1.100, then the workstation will join under
workstations.vancouver.msft.ca)

You could do it from a batch script using NETDOM..
 
Shenan

How do I create a batch script to check for ip address range? I am
new to batch script programming.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top