Setting default location for computer creation in 2003AD

  • Thread starter Thread starter crittend
  • Start date Start date
C

crittend

We are running a 2003 AD. we have several locations throughout the
world so we have several Ou's for each location. within these ou's we
have a container for the computers in that location.

What I would like to be able to do is produce a script that I can set
the default location for computer creation. but have this change upon
the office I am running it in.


I have found the following

http://support.microsoft.com/default.aspx?scid=kb;en-us;315273

And withing this link is a script that has a line

Const ADS_GUID_COMPUTRS_CONTAINER = "aa312825768811d1aded00c04fd8d5cd"

This is the guid for the default computer container.

How do I find the guid for different containers. If I could work out
how to find that i would be able to work the script to do as I require.

I have tried with adsi edit but not sure how to obtain this identifier.
Any help would be much appreciated.
 
See if tip 7702 » How do I alter the default container that 'net computer \\ComputerName /add' uses?
in the 'Tips & Tricks' at http://www.jsifaq.com meets your needs.



We are running a 2003 AD. we have several locations throughout the
world so we have several Ou's for each location. within these ou's we
have a container for the computers in that location.

What I would like to be able to do is produce a script that I can set
the default location for computer creation. but have this change upon
the office I am running it in.


I have found the following

http://support.microsoft.com/default.aspx?scid=kb;en-us;315273

And withing this link is a script that has a line

Const ADS_GUID_COMPUTRS_CONTAINER = "aa312825768811d1aded00c04fd8d5cd"

This is the guid for the default computer container.

How do I find the guid for different containers. If I could work out
how to find that i would be able to work the script to do as I require.

I have tried with adsi edit but not sure how to obtain this identifier.
Any help would be much appreciated.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top