Setting default location for computer creation in 2003AD



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.

.



Relevant Pages

  • Re: Setting default location for computer creation in 2003AD
    ... What I would like to be able to do is produce a script that I can set ... This is the guid for the default computer container. ... Windows Server MVP ...
    (microsoft.public.win2000.active_directory)
  • Re: Playing Sounds
    ... Files have to be in QuickTime format for FileMaker to play them.. ... can double-click an empty container field to record sound directly to it. ... I don't know if the script will wait for the sound to end before moving ...
    (comp.databases.filemaker)
  • Re: Prestaging RIS - produces wrong GUID
    ... retrieves the GUID it forced me to try pasting in the GUID - so I ... So I have forced the read script to use the MAC address as the source ... > ore refer to this article for the step by step if you are using ADSI to ... >> But if you look at the computer account properties on the RIS tab it says ...
    (microsoft.public.windows.server.active_directory)
  • Re: Create mutiple PCs in the Domain using vbScripts
    ... You must bind to the OU or container where the object is to be created. ... script to put on the sub OUs of the "Sample" OU? ... either the sAMAccountName or userAccountControl attribute could not be ... Dim objContainer, strComputerName, objComputer ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with script needed
    ... I really love the reflection and could this script be ... Jim was on the right track about the popup being sized to the original image ... But keep in mind that the Width of the Container is determined by the image ... choose to use a different background image for the Popup. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)