Re: Setting default location for computer creation in 2003AD




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.



On 22 Mar 2006 16:46:24 -0800, crittend@xxxxxxxxxxxxxx wrote:

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
.



Relevant Pages

  • 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)
  • 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. ... I have tried with adsi edit but not sure how to obtain this identifier. ...
    (microsoft.public.win2000.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)
  • running script that creates AD users from another workstation
    ... I have the following script that creates users on AD and it runs fine on the ... 'security group container ... 'Create an instance of the container, turn on error handling ...
    (microsoft.public.windows.server.scripting)