Re: Moving workstations/servers OU to OU



Or why not go with the new?
Learn Powershell.. With the Quest ActiveRoles AD cmdlets it's as easy as:

Get-QADComputer -Searchroot 'CN=computers,DC=Example,DC=Com' | where {($_.name -match "NN*")} | Move-QADObject -NewParentContainer 'OU=NN_OU,DC=Example,DC=Com'

Regards,

Austin

www.microsoft.com/powershell
http://www.quest.com/activeroles-server/arms.aspx




"Jorge Silva" <jorgesilva_pt@xxxxxxxxxxx> wrote in message news:OV3EgSkGIHA.5980@xxxxxxxxxxxxxxxxxxxxxxx
Hi
Check at Technet script center, they have many sample scripts that do similar process, you just need to adapt them to your needs.

--

===================================
I hope that the information above helps you.
Have a Nice day.

Jorge Silva
MCSE, MVP Directory Services
===================================

"kickballmvp2006" <kickballmvp2006.2z80zg@xxxxxxxxxxxxx> wrote in message news:kickballmvp2006.2z80zg@xxxxxxxxxxxxxxxx

In AD, when you add a computer or server to the domain, it goes to the
Computers OU. I would like to set up a script (on the domain
controller) that would run every now and then (possibly every hour)
that would look to see if there is any new workstations in the
Computers OU and if there is, look at the first two letters of the
workstation. If it's equal to YH then, put it in the YH OU, if equal to
NN then put in the NN OU and so on.

Does anybody have something similar?


--
kickballmvp2006
------------------------------------------------------------------------
kickballmvp2006's Profile: http://forums.techarena.in/member.php?userid=29383
View this thread: http://forums.techarena.in/showthread.php?t=842952

http://forums.techarena.in




.



Relevant Pages

  • Re: Easy question on the local admin passwords
    ... computers with read/list/execute instead. ... problem in that the startup script will not be run until the computer is ... password on the laptops than the workstations. ... operated by knowledgeable users with administrative rights) I would ...
    (microsoft.public.win2000.security)
  • Re: Easy question on the local admin passwords
    ... computers with read/list/execute instead. ... problem in that the startup script will not be run until the computer is ... password on the laptops than the workstations. ... operated by knowledgeable users with administrative rights) I would ...
    (microsoft.public.win2000.security)
  • RE: Auto shutdown of workstations
    ... The script would read a text file (which contained computer ... to you stating which computers where left on. ... > I have a Windows SBS 2003 server. ... I have about fifty workstations - most are ...
    (microsoft.public.windows.server.scripting)
  • Re: Easy question on the local admin passwords
    ... computers with read/list/execute instead. ... problem in that the startup script will not be run until the computer is ... password on the laptops than the workstations. ... reason) can acces the administrator password in clear text. ...
    (microsoft.public.win2000.security)
  • Re: Finding users in local admin groups
    ... > Here is a vbscript that you can run against a remote computer that moves ... > *local* users except 'Administrator) from the Administrators group to the ... You should also add to the script logging to a file of the ... > you moved on what computers. ...
    (microsoft.public.win2000.security)